Makefile revision 296341
11541Srgrimes#
21541Srgrimes# OpenSSL/crypto/md4/Makefile
31541Srgrimes#
41541Srgrimes
51541SrgrimesDIR=    md4
61541SrgrimesTOP=    ../..
71541SrgrimesCC=     cc
81541SrgrimesCPP=    $(CC) -E
91541SrgrimesINCLUDES=
101541SrgrimesCFLAG=-g
111541SrgrimesMAKEFILE=       Makefile
121541SrgrimesAR=             ar r
131541Srgrimes
141541SrgrimesCFLAGS= $(INCLUDES) $(CFLAG)
151541Srgrimes
161541SrgrimesGENERAL=Makefile
171541SrgrimesTEST=md4test.c
181541SrgrimesAPPS=md4.c
191541Srgrimes
201541SrgrimesLIB=$(TOP)/libcrypto.a
211541SrgrimesLIBSRC=md4_dgst.c md4_one.c
221541SrgrimesLIBOBJ=md4_dgst.o md4_one.o
231541Srgrimes
241541SrgrimesSRC= $(LIBSRC)
251541Srgrimes
261541SrgrimesEXHEADER= md4.h
271541SrgrimesHEADER= md4_locl.h $(EXHEADER)
281541Srgrimes
291541SrgrimesALL=    $(GENERAL) $(SRC) $(HEADER)
301541Srgrimes
311541Srgrimestop:
321541Srgrimes	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
331541Srgrimes
34116189Sobrienall:    lib
35116189Sobrien
36116189Sobrienlib:    $(LIBOBJ)
3770949Sbenno	$(AR) $(LIB) $(LIBOBJ)
381541Srgrimes	$(RANLIB) $(LIB) || echo Never mind.
391541Srgrimes	@touch lib
401541Srgrimes
411541Srgrimesfiles:
421541Srgrimes	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
431541Srgrimes
441541Srgrimeslinks:
451541Srgrimes	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
461541Srgrimes	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
471541Srgrimes	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
481541Srgrimes
491541Srgrimesinstall:
501541Srgrimes	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
511541Srgrimes	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
521541Srgrimes	do  \
531541Srgrimes	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
541541Srgrimes	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
551541Srgrimes	done;
561541Srgrimes
571541Srgrimestags:
581541Srgrimes	ctags $(SRC)
591541Srgrimes
601541Srgrimestests:
611541Srgrimes
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