1142425Snectar#
2160814Ssimon# OpenSSL/crypto/md5/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=    md5
6142425SnectarTOP=    ../..
7142425SnectarCC=     cc
8142425SnectarCPP=    $(CC) -E
9142425SnectarINCLUDES=-I.. -I$(TOP) -I../../include
10142425SnectarCFLAG=-g
11142425SnectarMAKEFILE=       Makefile
12142425SnectarAR=             ar r
13142425Snectar
14142425SnectarMD5_ASM_OBJ=
15142425Snectar
16142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
17142425SnectarASFLAGS= $(INCLUDES) $(ASFLAG)
18160814SsimonAFLAGS= $(ASFLAGS)
19142425Snectar
20142425SnectarGENERAL=Makefile
21142425SnectarTEST=md5test.c
22142425SnectarAPPS=
23142425Snectar
24142425SnectarLIB=$(TOP)/libcrypto.a
25142425SnectarLIBSRC=md5_dgst.c md5_one.c
26142425SnectarLIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ)
27142425Snectar
28142425SnectarSRC= $(LIBSRC)
29142425Snectar
30142425SnectarEXHEADER= md5.h
31142425SnectarHEADER= md5_locl.h $(EXHEADER)
32142425Snectar
33142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
34142425Snectar
35142425Snectartop:
36142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
37142425Snectar
38142425Snectarall:    lib
39142425Snectar
40142425Snectarlib:    $(LIBOBJ)
41194206Ssimon	$(ARX) $(LIB) $(LIBOBJ)
42142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
43142425Snectar	@touch lib
44142425Snectar
45160814Ssimon# ELF
46160814Ssimonmx86-elf.s: asm/md5-586.pl ../perlasm/x86asm.pl
47160814Ssimon	(cd asm; $(PERL) md5-586.pl elf $(CFLAGS) > ../$@)
48160814Ssimon# COFF
49160814Ssimonmx86-cof.s: asm/md5-586.pl ../perlasm/x86asm.pl
50160814Ssimon	(cd asm; $(PERL) md5-586.pl coff $(CFLAGS) > ../$@)
51142425Snectar# a.out
52160814Ssimonmx86-out.s: asm/md5-586.pl ../perlasm/x86asm.pl
53160814Ssimon	(cd asm; $(PERL) md5-586.pl a.out $(CFLAGS) > ../$@)
54142425Snectar
55160814Ssimonmd5-x86_64.s:	asm/md5-x86_64.pl;	$(PERL) asm/md5-x86_64.pl $@
56160814Ssimon
57142425Snectarfiles:
58142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
59142425Snectar
60142425Snectarlinks:
61142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
62142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
63142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
64142425Snectar
65142425Snectarinstall:
66160814Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
67160814Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
68142425Snectar	do  \
69142425Snectar	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
70142425Snectar	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
71142425Snectar	done;
72142425Snectar
73142425Snectartags:
74142425Snectar	ctags $(SRC)
75142425Snectar
76142425Snectartests:
77142425Snectar
78142425Snectarlint:
79142425Snectar	lint -DLINT $(INCLUDES) $(SRC)>fluff
80142425Snectar
81142425Snectardepend:
82160814Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
83142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
84142425Snectar
85142425Snectardclean:
86142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
87142425Snectar	mv -f Makefile.new $(MAKEFILE)
88142425Snectar
89142425Snectarclean:
90160814Ssimon	rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
91142425Snectar
92142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
93142425Snectar
94194206Ssimonmd5_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
95194206Ssimonmd5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
96194206Ssimonmd5_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
97194206Ssimonmd5_dgst.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
98194206Ssimonmd5_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
99194206Ssimonmd5_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
100194206Ssimonmd5_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h md5_dgst.c
101160814Ssimonmd5_dgst.o: md5_locl.h
102142425Snectarmd5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
103142425Snectarmd5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
104160814Ssimonmd5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
105160814Ssimonmd5_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
106160814Ssimonmd5_one.o: ../../include/openssl/symhacks.h md5_one.c
107