diff options
Diffstat (limited to 'src/lib/libcrypto/dh/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/dh/Makefile.ssl | 66 |
1 files changed, 45 insertions, 21 deletions
diff --git a/src/lib/libcrypto/dh/Makefile.ssl b/src/lib/libcrypto/dh/Makefile.ssl index dfa7e4525d..37e388d1b4 100644 --- a/src/lib/libcrypto/dh/Makefile.ssl +++ b/src/lib/libcrypto/dh/Makefile.ssl | |||
@@ -7,23 +7,23 @@ TOP= ../.. | |||
7 | CC= cc | 7 | CC= cc |
8 | INCLUDES= -I.. -I../../include | 8 | INCLUDES= -I.. -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 | MAKEDEPEND= $(TOP)/util/domd $(TOP) |
13 | MAKEFILE= Makefile.ssl | 15 | MAKEFILE= Makefile.ssl |
14 | AR= ar r | 16 | AR= ar r |
15 | 17 | ||
16 | CFLAGS= $(INCLUDES) $(CFLAG) | 18 | CFLAGS= $(INCLUDES) $(CFLAG) |
17 | 19 | ||
18 | ERR=dh | ||
19 | ERRC=dh_err | ||
20 | GENERAL=Makefile | 20 | GENERAL=Makefile |
21 | TEST= dhtest.c | 21 | TEST= dhtest.c |
22 | APPS= | 22 | APPS= |
23 | 23 | ||
24 | LIB=$(TOP)/libcrypto.a | 24 | LIB=$(TOP)/libcrypto.a |
25 | LIBSRC= dh_gen.c dh_key.c dh_lib.c dh_check.c $(ERRC).c | 25 | LIBSRC= 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 | 26 | LIBOBJ= dh_gen.o dh_key.o dh_lib.o dh_check.o dh_err.o |
27 | 27 | ||
28 | SRC= $(LIBSRC) | 28 | SRC= $(LIBSRC) |
29 | 29 | ||
@@ -39,24 +39,23 @@ all: lib | |||
39 | 39 | ||
40 | lib: $(LIBOBJ) | 40 | lib: $(LIBOBJ) |
41 | $(AR) $(LIB) $(LIBOBJ) | 41 | $(AR) $(LIB) $(LIBOBJ) |
42 | sh $(TOP)/util/ranlib.sh $(LIB) | 42 | $(RANLIB) $(LIB) |
43 | @touch lib | 43 | @touch lib |
44 | 44 | ||
45 | files: | 45 | files: |
46 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 46 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
47 | 47 | ||
48 | links: | 48 | links: |
49 | /bin/rm -f Makefile | 49 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
50 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 50 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
51 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 51 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
52 | $(TOP)/util/mklink.sh ../../test $(TEST) | 52 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
53 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
54 | 53 | ||
55 | install: | 54 | install: |
56 | @for i in $(EXHEADER) ; \ | 55 | @for i in $(EXHEADER) ; \ |
57 | do \ | 56 | do \ |
58 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 57 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
59 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 58 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
60 | done; | 59 | done; |
61 | 60 | ||
62 | tags: | 61 | tags: |
@@ -68,17 +67,42 @@ lint: | |||
68 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 67 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
69 | 68 | ||
70 | depend: | 69 | depend: |
71 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 70 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
72 | 71 | ||
73 | dclean: | 72 | dclean: |
74 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 73 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
75 | mv -f Makefile.new $(MAKEFILE) | 74 | mv -f Makefile.new $(MAKEFILE) |
76 | 75 | ||
77 | clean: | 76 | clean: |
78 | /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 77 | 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 | 78 | ||
84 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 79 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
80 | |||
81 | dh_check.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
82 | dh_check.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
83 | dh_check.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h | ||
84 | dh_check.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
85 | dh_check.o: ../../include/openssl/opensslconf.h | ||
86 | dh_check.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h | ||
87 | dh_check.o: ../cryptlib.h | ||
88 | dh_err.o: ../../include/openssl/bn.h ../../include/openssl/dh.h | ||
89 | dh_err.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h | ||
90 | dh_gen.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
91 | dh_gen.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
92 | dh_gen.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h | ||
93 | dh_gen.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
94 | dh_gen.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
95 | dh_gen.o: ../../include/openssl/stack.h ../cryptlib.h | ||
96 | dh_key.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
97 | dh_key.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
98 | dh_key.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h | ||
99 | dh_key.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
100 | dh_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
101 | dh_key.o: ../../include/openssl/rand.h ../../include/openssl/stack.h | ||
102 | dh_key.o: ../cryptlib.h | ||
103 | dh_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
104 | dh_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
105 | dh_lib.o: ../../include/openssl/dh.h ../../include/openssl/e_os.h | ||
106 | dh_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
107 | dh_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
108 | dh_lib.o: ../../include/openssl/stack.h ../cryptlib.h | ||