blob: 213ed2932cf41202655d4d1436a43fb31fe2418d [file] [log] [blame]
Ralf S. Engelschall58964a41998-12-21 10:56:39 +00001#
2# SSLeay/crypto/md/Makefile
3#
4
Ben Lauriedbad1692001-07-30 23:57:25 +00005DIR= md2
Ralf S. Engelschall58964a41998-12-21 10:56:39 +00006TOP= ../..
7CC= cc
8INCLUDES=
9CFLAG=-g
Bodo Möllere5f30451999-04-29 21:52:08 +000010INSTALL_PREFIX=
11OPENSSLDIR= /usr/local/ssl
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000012INSTALLTOP=/usr/local/ssl
13MAKE= make -f Makefile.ssl
Richard Levittecf1b7d92001-02-19 16:06:34 +000014MAKEDEPPROG= makedepend
15MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000016MAKEFILE= Makefile.ssl
17AR= ar r
18
19CFLAGS= $(INCLUDES) $(CFLAG)
20
21GENERAL=Makefile
22TEST=md2test.c
23APPS=
24
25LIB=$(TOP)/libcrypto.a
Dr. Stephen Henson6c8abdd1999-01-18 22:18:38 +000026LIBSRC=md2_dgst.c md2_one.c
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000027LIBOBJ=md2_dgst.o md2_one.o
28
29SRC= $(LIBSRC)
30
31EXHEADER= md2.h
32HEADER= $(EXHEADER)
33
34ALL= $(GENERAL) $(SRC) $(HEADER)
35
36top:
37 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
38
39all: lib
40
41lib: $(LIBOBJ)
42 $(AR) $(LIB) $(LIBOBJ)
Bodo Möller4e20b1a2001-03-09 14:01:42 +000043 $(RANLIB) $(LIB) || echo Never mind.
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000044 @touch lib
45
46files:
Ulf Möller99aab161999-04-01 12:34:33 +000047 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000048
49links:
Richard Levitte79b42e72003-12-27 14:59:07 +000050 @sh $(TOP)/util/point.sh Makefile.ssl Makefile
Bodo Möller1314c341999-04-29 12:46:59 +000051 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
52 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
53 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000054
55install:
Richard Levittea2ac4292004-11-02 23:55:01 +000056 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000057 do \
Bodo Möllere5f30451999-04-29 21:52:08 +000058 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
59 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000060 done;
61
62tags:
63 ctags $(SRC)
64
65tests:
66
67lint:
68 lint -DLINT $(INCLUDES) $(SRC)>fluff
69
70depend:
Richard Levitte001ab3a2002-10-09 13:25:12 +000071 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000072
73dclean:
Ulf Möller99aab161999-04-01 12:34:33 +000074 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000075 mv -f Makefile.new $(MAKEFILE)
76
77clean:
Ralf S. Engelschallbb8f3c51999-03-06 12:32:06 +000078 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000079
Ralf S. Engelschall58964a41998-12-21 10:56:39 +000080# DO NOT DELETE THIS LINE -- make depend depends on it.
Ben Laurie6242bb91999-03-06 14:32:48 +000081
Richard Levitte8cbcced2002-12-05 01:55:48 +000082md2_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
Bodo Möllerbf57da01999-04-23 22:50:50 +000083md2_dgst.o: ../../include/openssl/md2.h ../../include/openssl/opensslconf.h
Geoff Thorpe9c52d2c2004-05-17 19:26:06 +000084md2_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
85md2_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
86md2_dgst.o: ../../include/openssl/symhacks.h md2_dgst.c
Richard Levitte41d2a332001-02-22 14:45:02 +000087md2_one.o: ../../e_os.h ../../include/openssl/bio.h
88md2_one.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
Bodo Möller7e701811999-05-21 11:16:48 +000089md2_one.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
Geoff Thorpe1c4f90a2000-06-13 12:59:38 +000090md2_one.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
91md2_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
Geoff Thorpec57bc2d2004-04-19 18:33:41 +000092md2_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
93md2_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
94md2_one.o: ../cryptlib.h md2_one.c