Make all configuration macros available for application by making
[openssl.git] / crypto / hmac / Makefile.ssl
1 #
2 # SSLeay/crypto/md/Makefile
3 #
4
5 DIR=    hmac
6 TOP=    ../..
7 CC=     cc
8 INCLUDES=
9 CFLAG=-g
10 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKE=           make -f Makefile.ssl
14 MAKEDEPPROG=    makedepend
15 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16 MAKEFILE=       Makefile.ssl
17 AR=             ar r
18
19 CFLAGS= $(INCLUDES) $(CFLAG)
20
21 GENERAL=Makefile
22 TEST=hmactest.c
23 APPS=
24
25 LIB=$(TOP)/libcrypto.a
26 LIBSRC=hmac.c
27 LIBOBJ=hmac.o
28
29 SRC= $(LIBSRC)
30
31 EXHEADER= hmac.h
32 HEADER= $(EXHEADER)
33
34 ALL=    $(GENERAL) $(SRC) $(HEADER)
35
36 top:
37         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
38
39 all:    lib
40
41 lib:    $(LIBOBJ)
42         $(AR) $(LIB) $(LIBOBJ)
43         @echo You may get an error following this line.  Please ignore.
44         - $(RANLIB) $(LIB)
45         @touch lib
46
47 files:
48         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
49
50 links:
51         @$(TOP)/util/point.sh Makefile.ssl Makefile
52         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
53         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
54         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
55
56 install:
57         @for i in $(EXHEADER) ; \
58         do  \
59         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
60         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
61         done;
62
63 tags:
64         ctags $(SRC)
65
66 tests:
67
68 lint:
69         lint -DLINT $(INCLUDES) $(SRC)>fluff
70
71 depend:
72         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
73
74 dclean:
75         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
76         mv -f Makefile.new $(MAKEFILE)
77
78 clean:
79         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
80
81 # DO NOT DELETE THIS LINE -- make depend depends on it.
82
83 hmac.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
84 hmac.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
85 hmac.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
86 hmac.o: ../../include/openssl/des.h ../../include/openssl/dh.h
87 hmac.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
88 hmac.o: ../../include/openssl/e_os2.h ../../include/openssl/evp.h
89 hmac.o: ../../include/openssl/hmac.h ../../include/openssl/idea.h
90 hmac.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
91 hmac.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
92 hmac.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
93 hmac.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
94 hmac.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
95 hmac.o: ../../include/openssl/rc5.h ../../include/openssl/rd_fst.h
96 hmac.o: ../../include/openssl/rijndael.h ../../include/openssl/ripemd.h
97 hmac.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
98 hmac.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
99 hmac.o: ../../include/openssl/symhacks.h hmac.c