f0229e47407e0c4a1a86a213c2e5245ac9fecd8e
[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../../include
9 CFLAG=-g
10 INSTALLTOP=/usr/local/ssl
11 MAKE=           make -f Makefile.ssl
12 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
13 MAKEFILE=       Makefile.ssl
14 AR=             ar r
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17
18 ERRC=dh_err
19 GENERAL=Makefile
20 TEST= dhtest.c
21 APPS=
22
23 LIB=$(TOP)/libcrypto.a
24 LIBSRC= dh_gen.c dh_key.c dh_lib.c dh_check.c $(ERRC).c
25 LIBOBJ= dh_gen.o dh_key.o dh_lib.o dh_check.o $(ERRC).o
26
27 SRC= $(LIBSRC)
28
29 EXHEADER= dh.h
30 HEADER= $(EXHEADER)
31
32 ALL=    $(GENERAL) $(SRC) $(HEADER)
33
34 top:
35         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
36
37 all:    lib
38
39 lib:    $(LIBOBJ)
40         $(AR) $(LIB) $(LIBOBJ)
41         $(RANLIB) $(LIB)
42         @touch lib
43
44 files:
45         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
46
47 links:
48         @$(TOP)/util/point.sh Makefile.ssl Makefile
49         @$(TOP)/util/mklink.sh ../../include/openssl $(EXHEADER)
50         @$(TOP)/util/mklink.sh ../../test $(TEST)
51         @$(TOP)/util/mklink.sh ../../apps $(APPS)
52
53 install:
54         @for i in $(EXHEADER) ; \
55         do  \
56         (cp $$i $(INSTALLTOP)/include/openssl/$$i; \
57         chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
58         done;
59
60 tags:
61         ctags $(SRC)
62
63 tests:
64
65 lint:
66         lint -DLINT $(INCLUDES) $(SRC)>fluff
67
68 depend:
69         $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
70
71 dclean:
72         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
73         mv -f Makefile.new $(MAKEFILE)
74
75 clean:
76         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
77
78 # DO NOT DELETE THIS LINE -- make depend depends on it.
79
80 dh_check.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
81 dh_check.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
82 dh_check.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h
83 dh_check.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
84 dh_check.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
85 dh_check.o: ../cryptlib.h
86 dh_err.o: ../../include/openssl/bn.h ../../include/openssl/dh.h
87 dh_err.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
88 dh_gen.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
89 dh_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
90 dh_gen.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h
91 dh_gen.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
92 dh_gen.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
93 dh_gen.o: ../cryptlib.h
94 dh_key.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
95 dh_key.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
96 dh_key.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h
97 dh_key.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
98 dh_key.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
99 dh_key.o: ../../include/openssl/stack.h ../cryptlib.h
100 dh_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
101 dh_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
102 dh_lib.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h
103 dh_lib.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
104 dh_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
105 dh_lib.o: ../cryptlib.h