diff options
Diffstat (limited to 'src/lib/libcrypto/dh/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/dh/Makefile.ssl | 96 |
1 files changed, 74 insertions, 22 deletions
diff --git a/src/lib/libcrypto/dh/Makefile.ssl b/src/lib/libcrypto/dh/Makefile.ssl index dfa7e4525d..9dddf8dd61 100644 --- a/src/lib/libcrypto/dh/Makefile.ssl +++ b/src/lib/libcrypto/dh/Makefile.ssl | |||
@@ -5,25 +5,26 @@ | |||
5 | DIR= dh | 5 | DIR= dh |
6 | TOP= ../.. | 6 | TOP= ../.. |
7 | CC= cc | 7 | CC= cc |
8 | INCLUDES= -I.. -I../../include | 8 | INCLUDES= -I.. -I$(TOP) -I../../include |
9 | CFLAG=-g | 9 | CFLAG=-g |
10 | INSTALL_PREFIX= | ||
11 | OPENSSLDIR= /usr/local/ssl | ||
10 | INSTALLTOP=/usr/local/ssl | 12 | INSTALLTOP=/usr/local/ssl |
11 | MAKE= make -f Makefile.ssl | 13 | MAKE= make -f Makefile.ssl |
12 | MAKEDEPEND= makedepend -f Makefile.ssl | 14 | MAKEDEPPROG= makedepend |
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
13 | MAKEFILE= Makefile.ssl | 16 | MAKEFILE= Makefile.ssl |
14 | AR= ar r | 17 | AR= ar r |
15 | 18 | ||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | 19 | CFLAGS= $(INCLUDES) $(CFLAG) |
17 | 20 | ||
18 | ERR=dh | ||
19 | ERRC=dh_err | ||
20 | GENERAL=Makefile | 21 | GENERAL=Makefile |
21 | TEST= dhtest.c | 22 | TEST= dhtest.c |
22 | APPS= | 23 | APPS= |
23 | 24 | ||
24 | LIB=$(TOP)/libcrypto.a | 25 | LIB=$(TOP)/libcrypto.a |
25 | LIBSRC= dh_gen.c dh_key.c dh_lib.c dh_check.c $(ERRC).c | 26 | LIBSRC= dh_asn1.c dh_gen.c dh_key.c dh_lib.c dh_check.c dh_err.c |
26 | LIBOBJ= dh_gen.o dh_key.o dh_lib.o dh_check.o $(ERRC).o | 27 | LIBOBJ= dh_asn1.o dh_gen.o dh_key.o dh_lib.o dh_check.o dh_err.o |
27 | 28 | ||
28 | SRC= $(LIBSRC) | 29 | SRC= $(LIBSRC) |
29 | 30 | ||
@@ -39,24 +40,23 @@ all: lib | |||
39 | 40 | ||
40 | lib: $(LIBOBJ) | 41 | lib: $(LIBOBJ) |
41 | $(AR) $(LIB) $(LIBOBJ) | 42 | $(AR) $(LIB) $(LIBOBJ) |
42 | sh $(TOP)/util/ranlib.sh $(LIB) | 43 | $(RANLIB) $(LIB) || echo Never mind. |
43 | @touch lib | 44 | @touch lib |
44 | 45 | ||
45 | files: | 46 | files: |
46 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
47 | 48 | ||
48 | links: | 49 | links: |
49 | /bin/rm -f Makefile | 50 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
50 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
51 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
52 | $(TOP)/util/mklink.sh ../../test $(TEST) | 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
53 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
54 | 54 | ||
55 | install: | 55 | install: |
56 | @for i in $(EXHEADER) ; \ | 56 | @for i in $(EXHEADER) ; \ |
57 | do \ | 57 | do \ |
58 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
59 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
60 | done; | 60 | done; |
61 | 61 | ||
62 | tags: | 62 | tags: |
@@ -68,17 +68,69 @@ lint: | |||
68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
69 | 69 | ||
70 | depend: | 70 | depend: |
71 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 71 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
72 | 72 | ||
73 | dclean: | 73 | dclean: |
74 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 74 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
75 | mv -f Makefile.new $(MAKEFILE) | 75 | mv -f Makefile.new $(MAKEFILE) |
76 | 76 | ||
77 | clean: | 77 | clean: |
78 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 78 | rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
79 | |||
80 | errors: | ||
81 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
82 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
83 | 79 | ||
84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 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/ossl_typ.h | ||
90 | dh_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
91 | dh_asn1.o: ../../include/openssl/symhacks.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/ossl_typ.h | ||
98 | dh_check.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
99 | dh_check.o: ../../include/openssl/symhacks.h ../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/ossl_typ.h | ||
105 | dh_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
106 | dh_err.o: ../../include/openssl/symhacks.h 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/ossl_typ.h ../../include/openssl/safestack.h | ||
113 | dh_gen.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
114 | dh_gen.o: ../cryptlib.h dh_gen.c | ||
115 | dh_key.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
116 | dh_key.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
117 | dh_key.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
118 | dh_key.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
119 | dh_key.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
120 | dh_key.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
121 | dh_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
122 | dh_key.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
123 | dh_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
124 | dh_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
125 | dh_key.o: ../cryptlib.h dh_key.c | ||
126 | dh_lib.o: ../../e_os.h ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
127 | dh_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h | ||
128 | dh_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dh.h | ||
129 | dh_lib.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
130 | dh_lib.o: ../../include/openssl/engine.h ../../include/openssl/err.h | ||
131 | dh_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
132 | dh_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
133 | dh_lib.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h | ||
134 | dh_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
135 | dh_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h | ||
136 | dh_lib.o: ../cryptlib.h dh_lib.c | ||