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