diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/stack/Makefile.ssl | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/src/lib/libcrypto/stack/Makefile.ssl b/src/lib/libcrypto/stack/Makefile.ssl index 0d232c08cf..16219af9a9 100644 --- a/src/lib/libcrypto/stack/Makefile.ssl +++ b/src/lib/libcrypto/stack/Makefile.ssl | |||
| @@ -7,9 +7,12 @@ TOP= ../.. | |||
| 7 | CC= cc | 7 | CC= cc |
| 8 | INCLUDES= | 8 | INCLUDES= |
| 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 | ||
| @@ -25,7 +28,7 @@ LIBOBJ=stack.o | |||
| 25 | 28 | ||
| 26 | SRC= $(LIBSRC) | 29 | SRC= $(LIBSRC) |
| 27 | 30 | ||
| 28 | EXHEADER= stack.h | 31 | EXHEADER= stack.h safestack.h |
| 29 | HEADER= $(EXHEADER) | 32 | HEADER= $(EXHEADER) |
| 30 | 33 | ||
| 31 | ALL= $(GENERAL) $(SRC) $(HEADER) | 34 | ALL= $(GENERAL) $(SRC) $(HEADER) |
| @@ -37,24 +40,23 @@ all: lib | |||
| 37 | 40 | ||
| 38 | lib: $(LIBOBJ) | 41 | lib: $(LIBOBJ) |
| 39 | $(AR) $(LIB) $(LIBOBJ) | 42 | $(AR) $(LIB) $(LIBOBJ) |
| 40 | sh $(TOP)/util/ranlib.sh $(LIB) | 43 | $(RANLIB) $(LIB) || echo Never mind. |
| 41 | @touch lib | 44 | @touch lib |
| 42 | 45 | ||
| 43 | files: | 46 | files: |
| 44 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 47 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
| 45 | 48 | ||
| 46 | links: | 49 | links: |
| 47 | /bin/rm -f Makefile | 50 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
| 48 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 51 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
| 49 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 52 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
| 50 | $(TOP)/util/mklink.sh ../../test $(TEST) | 53 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
| 51 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
| 52 | 54 | ||
| 53 | install: | 55 | install: |
| 54 | @for i in $(EXHEADER) ; \ | 56 | @for i in $(EXHEADER) ; \ |
| 55 | do \ | 57 | do \ |
| 56 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 58 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
| 57 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 59 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
| 58 | done; | 60 | done; |
| 59 | 61 | ||
| 60 | tags: | 62 | tags: |
| @@ -66,15 +68,21 @@ lint: | |||
| 66 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 68 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
| 67 | 69 | ||
| 68 | depend: | 70 | depend: |
| 69 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 71 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
| 70 | 72 | ||
| 71 | dclean: | 73 | dclean: |
| 72 | 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 |
| 73 | mv -f Makefile.new $(MAKEFILE) | 75 | mv -f Makefile.new $(MAKEFILE) |
| 74 | 76 | ||
| 75 | clean: | 77 | clean: |
| 76 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 78 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
| 77 | |||
| 78 | errors: | ||
| 79 | 79 | ||
| 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 80 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 81 | |||
| 82 | stack.o: ../../e_os.h ../../include/openssl/bio.h | ||
| 83 | stack.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 84 | stack.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 85 | stack.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h | ||
| 86 | stack.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h | ||
| 87 | stack.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 88 | stack.o: ../cryptlib.h stack.c | ||
