]> git.ipfire.org Git - thirdparty/openssl.git/blob - crypto/md5/Makefile
make depend
[thirdparty/openssl.git] / crypto / md5 / Makefile
1 #
2 # OpenSSL/crypto/md5/Makefile
3 #
4
5 DIR= md5
6 TOP= ../..
7 CC= cc
8 CPP= $(CC) -E
9 INCLUDES=-I.. -I$(TOP) -I../../include
10 CFLAG=-g
11 MAKEFILE= Makefile
12 AR= ar r
13
14 MD5_ASM_OBJ=
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17 ASFLAGS= $(INCLUDES) $(ASFLAG)
18 AFLAGS= $(ASFLAGS)
19
20 GENERAL=Makefile
21
22 LIB=$(TOP)/libcrypto.a
23 LIBSRC=md5_dgst.c md5_one.c
24 LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ)
25
26 SRC= $(LIBSRC)
27
28 HEADER= md5_locl.h
29
30 ALL= $(GENERAL) $(SRC) $(HEADER)
31
32 top:
33 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
34
35 all: lib
36
37 lib: $(LIBOBJ)
38 $(AR) $(LIB) $(LIBOBJ)
39 $(RANLIB) $(LIB) || echo Never mind.
40 @touch lib
41
42 md5-586.s: asm/md5-586.pl ../perlasm/x86asm.pl
43 $(PERL) asm/md5-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
44
45 md5-x86_64.s: asm/md5-x86_64.pl
46 $(PERL) asm/md5-x86_64.pl $(PERLASM_SCHEME) > $@
47
48 md5-ia64.s: asm/md5-ia64.S
49 $(CC) $(CFLAGS) -E asm/md5-ia64.S | \
50 $(PERL) -ne 's/;\s+/;\n/g; print;' > $@
51
52 md5-sparcv9.S: asm/md5-sparcv9.pl
53 $(PERL) asm/md5-sparcv9.pl $@ $(CFLAGS)
54
55 files:
56 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
57
58 tags:
59 ctags $(SRC)
60
61 tests:
62
63 lint:
64 lint -DLINT $(INCLUDES) $(SRC)>fluff
65
66 depend:
67 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
68 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
69
70 dclean:
71 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
72 mv -f Makefile.new $(MAKEFILE)
73
74 clean:
75 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
76
77 # DO NOT DELETE THIS LINE -- make depend depends on it.
78
79 md5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/md5.h
80 md5_dgst.o: ../../include/openssl/opensslconf.h
81 md5_dgst.o: ../../include/openssl/opensslv.h ../include/internal/md32_common.h
82 md5_dgst.o: md5_dgst.c md5_locl.h
83 md5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
84 md5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
85 md5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
86 md5_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
87 md5_one.o: ../../include/openssl/symhacks.h md5_one.c