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