1142425Snectar#
2160814Ssimon# OpenSSL/crypto/md4/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=    md4
6142425SnectarTOP=    ../..
7142425SnectarCC=     cc
8142425SnectarCPP=    $(CC) -E
9142425SnectarINCLUDES=
10142425SnectarCFLAG=-g
11142425SnectarMAKEFILE=       Makefile
12142425SnectarAR=             ar r
13142425Snectar
14142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
15142425Snectar
16142425SnectarGENERAL=Makefile
17142425SnectarTEST=md4test.c
18142425SnectarAPPS=md4.c
19142425Snectar
20142425SnectarLIB=$(TOP)/libcrypto.a
21142425SnectarLIBSRC=md4_dgst.c md4_one.c
22142425SnectarLIBOBJ=md4_dgst.o md4_one.o
23142425Snectar
24142425SnectarSRC= $(LIBSRC)
25142425Snectar
26142425SnectarEXHEADER= md4.h
27142425SnectarHEADER= md4_locl.h $(EXHEADER)
28142425Snectar
29142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
30142425Snectar
31142425Snectartop:
32142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
33142425Snectar
34142425Snectarall:    lib
35142425Snectar
36142425Snectarlib:    $(LIBOBJ)
37238405Sjkim	$(AR) $(LIB) $(LIBOBJ)
38142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
39142425Snectar	@touch lib
40142425Snectar
41142425Snectarfiles:
42142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
43142425Snectar
44142425Snectarlinks:
45142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
46142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
47142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
48142425Snectar
49142425Snectarinstall:
50160814Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
51160814Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
52142425Snectar	do  \
53142425Snectar	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
54142425Snectar	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
55142425Snectar	done;
56142425Snectar
57142425Snectartags:
58142425Snectar	ctags $(SRC)
59142425Snectar
60142425Snectartests:
61142425Snectar
62142425Snectarlint:
63142425Snectar	lint -DLINT $(INCLUDES) $(SRC)>fluff
64142425Snectar
65284285Sjkimupdate: depend
66284285Sjkim
67142425Snectardepend:
68160814Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
69142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
70142425Snectar
71142425Snectardclean:
72142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
73142425Snectar	mv -f Makefile.new $(MAKEFILE)
74238405Sjkim	rm -f ../../include/openssl/$(EXHEADER) ../../test/$(TEST) ../../apps/$(APPS)
75142425Snectar
76142425Snectarclean:
77142425Snectar	rm -f asm/mx86unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
78142425Snectar
79142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
80142425Snectar
81238405Sjkimmd4_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
82194206Ssimonmd4_dgst.o: ../../include/openssl/md4.h ../../include/openssl/opensslconf.h
83194206Ssimonmd4_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
84194206Ssimonmd4_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
85194206Ssimonmd4_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h md4_dgst.c
86160814Ssimonmd4_dgst.o: md4_locl.h
87142425Snectarmd4_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
88142425Snectarmd4_one.o: ../../include/openssl/md4.h ../../include/openssl/opensslconf.h
89160814Ssimonmd4_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
90160814Ssimonmd4_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
91160814Ssimonmd4_one.o: ../../include/openssl/symhacks.h md4_one.c
92