e32ef0e004f280b780eee3bd2a41a0c8f1c3db9c
[openssl.git] / crypto / md4 / Makefile
1 #
2 # OpenSSL/crypto/md4/Makefile
3 #
4
5 DIR=    md4
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=
10 CFLAG=-g
11 MAKEFILE=       Makefile
12 AR=             ar r
13
14 CFLAGS= $(INCLUDES) $(CFLAG)
15
16 GENERAL=Makefile
17 TEST=md4test.c
18 APPS=
19
20 LIB=$(TOP)/libcrypto.a
21 LIBSRC=md4_dgst.c md4_one.c
22 LIBOBJ=md4_dgst.o md4_one.o
23
24 SRC= $(LIBSRC)
25
26 EXHEADER= md4.h
27 HEADER= md4_locl.h $(EXHEADER)
28
29 ALL=    $(GENERAL) $(SRC) $(HEADER)
30
31 top:
32         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
33
34 all:    lib
35
36 lib:    $(LIBOBJ)
37         $(ARX) $(LIB) $(LIBOBJ)
38         $(RANLIB) $(LIB) || echo Never mind.
39         @touch lib
40
41 files:
42         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
43
44 links:
45         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
46         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
47         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
48
49 install:
50         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
51         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
52         do  \
53         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
54         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
55         done;
56
57 tags:
58         ctags $(SRC)
59
60 tests:
61
62 lint:
63         lint -DLINT $(INCLUDES) $(SRC)>fluff
64
65 depend:
66         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
67         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
68
69 dclean:
70         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
71         mv -f Makefile.new $(MAKEFILE)
72         rm -f ../../include/openssl/$(EXHEADER) ../../test/$(TEST) ../../apps/$(APPS)
73
74 clean:
75         rm -f asm/mx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
76
77 # DO NOT DELETE THIS LINE -- make depend depends on it.
78
79 md4_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/md4.h
80 md4_dgst.o: ../../include/openssl/opensslconf.h
81 md4_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md4_dgst.c
82 md4_dgst.o: md4_locl.h
83 md4_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
84 md4_one.o: ../../include/openssl/md4.h ../../include/openssl/opensslconf.h
85 md4_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
86 md4_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
87 md4_one.o: ../../include/openssl/symhacks.h md4_one.c