1142425Snectar#
2160814Ssimon# OpenSSL/crypto/md/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=	hmac
6142425SnectarTOP=	../..
7142425SnectarCC=	cc
8142425SnectarINCLUDES=
9142425SnectarCFLAG=-g
10142425SnectarMAKEFILE=	Makefile
11142425SnectarAR=		ar r
12142425Snectar
13142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
14142425Snectar
15142425SnectarGENERAL=Makefile
16142425SnectarTEST=hmactest.c
17142425SnectarAPPS=
18142425Snectar
19142425SnectarLIB=$(TOP)/libcrypto.a
20238405SjkimLIBSRC=hmac.c hm_ameth.c hm_pmeth.c
21238405SjkimLIBOBJ=hmac.o hm_ameth.o hm_pmeth.o
22142425Snectar
23142425SnectarSRC= $(LIBSRC)
24142425Snectar
25142425SnectarEXHEADER= hmac.h
26142425SnectarHEADER=	$(EXHEADER)
27142425Snectar
28142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
29142425Snectar
30142425Snectartop:
31142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
32142425Snectar
33142425Snectarall:	lib
34142425Snectar
35142425Snectarlib:	$(LIBOBJ)
36238405Sjkim	$(AR) $(LIB) $(LIBOBJ)
37142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
38142425Snectar	@touch lib
39142425Snectar
40142425Snectarfiles:
41142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
42142425Snectar
43142425Snectarlinks:
44142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
45142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
46142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
47142425Snectar
48142425Snectarinstall:
49160814Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
50160814Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
51142425Snectar	do  \
52142425Snectar	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
53142425Snectar	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
54142425Snectar	done;
55142425Snectar
56142425Snectartags:
57142425Snectar	ctags $(SRC)
58142425Snectar
59142425Snectartests:
60142425Snectar
61142425Snectarlint:
62142425Snectar	lint -DLINT $(INCLUDES) $(SRC)>fluff
63142425Snectar
64284285Sjkimupdate: depend
65284285Sjkim
66142425Snectardepend:
67160814Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
68142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
69142425Snectar
70142425Snectardclean:
71142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
72142425Snectar	mv -f Makefile.new $(MAKEFILE)
73142425Snectar
74142425Snectarclean:
75142425Snectar	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
76142425Snectar
77142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
78142425Snectar
79238405Sjkimhm_ameth.o: ../../e_os.h ../../include/openssl/asn1.h
80238405Sjkimhm_ameth.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
81238405Sjkimhm_ameth.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
82238405Sjkimhm_ameth.o: ../../include/openssl/err.h ../../include/openssl/evp.h
83238405Sjkimhm_ameth.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
84238405Sjkimhm_ameth.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
85238405Sjkimhm_ameth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
86238405Sjkimhm_ameth.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
87238405Sjkimhm_ameth.o: ../../include/openssl/symhacks.h ../asn1/asn1_locl.h ../cryptlib.h
88238405Sjkimhm_ameth.o: hm_ameth.c
89238405Sjkimhm_pmeth.o: ../../e_os.h ../../include/openssl/asn1.h
90238405Sjkimhm_pmeth.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
91238405Sjkimhm_pmeth.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
92238405Sjkimhm_pmeth.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
93238405Sjkimhm_pmeth.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
94238405Sjkimhm_pmeth.o: ../../include/openssl/err.h ../../include/openssl/evp.h
95238405Sjkimhm_pmeth.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
96238405Sjkimhm_pmeth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
97238405Sjkimhm_pmeth.o: ../../include/openssl/opensslconf.h
98238405Sjkimhm_pmeth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
99238405Sjkimhm_pmeth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
100238405Sjkimhm_pmeth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
101238405Sjkimhm_pmeth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
102238405Sjkimhm_pmeth.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
103238405Sjkimhm_pmeth.o: ../cryptlib.h ../evp/evp_locl.h hm_pmeth.c
104160814Ssimonhmac.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h
105160814Ssimonhmac.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
106142425Snectarhmac.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
107238405Sjkimhmac.o: ../../include/openssl/evp.h ../../include/openssl/hmac.h
108238405Sjkimhmac.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
109238405Sjkimhmac.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
110238405Sjkimhmac.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
111238405Sjkimhmac.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
112238405Sjkimhmac.o: ../../include/openssl/symhacks.h ../cryptlib.h hmac.c
113