aa9ca7b2bb51aaa7599976be942b011fc99e1564
[openssl.git] / crypto / dh / Makefile.ssl
1 #
2 # SSLeay/crypto/dh/Makefile
3 #
4
5 DIR=    dh
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
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= dhtest.c
23 APPS=
24
25 LIB=$(TOP)/libcrypto.a
26 LIBSRC= dh_asn1.c dh_gen.c dh_key.c dh_lib.c dh_check.c dh_err.c
27 LIBOBJ= dh_asn1.o dh_gen.o dh_key.o dh_lib.o dh_check.o dh_err.o
28
29 SRC= $(LIBSRC)
30
31 EXHEADER= dh.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         $(RANLIB) $(LIB) || echo Never mind.
44         @touch lib
45
46 files:
47         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
48
49 links:
50         @$(TOP)/util/point.sh Makefile.ssl Makefile
51         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
52         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
53         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
54
55 install:
56         @for i in $(EXHEADER) ; \
57         do  \
58         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
59         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
60         done;
61
62 tags:
63         ctags $(SRC)
64
65 tests:
66
67 lint:
68         lint -DLINT $(INCLUDES) $(SRC)>fluff
69
70 depend:
71         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
72
73 dclean:
74         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
75         mv -f Makefile.new $(MAKEFILE)
76
77 clean:
78         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
79
80 # DO NOT DELETE THIS LINE -- make depend depends on it.
81
82 dh_asn1.o: ../../e_os.h ../../include/openssl/asn1.h
83 dh_asn1.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h
84 dh_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
85 dh_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
86 dh_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
87 dh_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
88 dh_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
89 dh_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
90 dh_asn1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
91 dh_asn1.o: ../../include/openssl/types.h ../cryptlib.h dh_asn1.c
92 dh_check.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h
93 dh_check.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
94 dh_check.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h
95 dh_check.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
96 dh_check.o: ../../include/openssl/opensslconf.h
97 dh_check.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
98 dh_check.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
99 dh_check.o: ../cryptlib.h dh_check.c
100 dh_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
101 dh_err.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
102 dh_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
103 dh_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
104 dh_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
105 dh_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
106 dh_err.o: dh_err.c
107 dh_gen.o: ../../e_os.h ../../include/openssl/bio.h ../../include/openssl/bn.h
108 dh_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
109 dh_gen.o: ../../include/openssl/dh.h ../../include/openssl/e_os2.h
110 dh_gen.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
111 dh_gen.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
112 dh_gen.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
113 dh_gen.o: ../../include/openssl/symhacks.h ../cryptlib.h dh_gen.c
114 dh_key.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h
115 dh_key.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
116 dh_key.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
117 dh_key.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
118 dh_key.o: ../../include/openssl/engine.h ../../include/openssl/err.h
119 dh_key.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
120 dh_key.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
121 dh_key.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
122 dh_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
123 dh_key.o: ../../include/openssl/types.h ../../include/openssl/ui.h
124 dh_key.o: ../cryptlib.h dh_key.c
125 dh_lib.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h
126 dh_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
127 dh_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h
128 dh_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
129 dh_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h
130 dh_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
131 dh_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
132 dh_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
133 dh_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
134 dh_lib.o: ../../include/openssl/types.h ../../include/openssl/ui.h
135 dh_lib.o: ../cryptlib.h dh_lib.c