diff options
| author | markus <> | 2002-09-05 12:51:51 +0000 |
|---|---|---|
| committer | markus <> | 2002-09-05 12:51:51 +0000 |
| commit | f3e848761b58c1645ce3b150d17770e528f39556 (patch) | |
| tree | 88a70dc7c35100da165c0ff4f7182805f3d85b76 /src/lib/libcrypto/objects/Makefile.ssl | |
| parent | 2f5692b12332315048054bcce20e370985e19970 (diff) | |
| download | openbsd-f3e848761b58c1645ce3b150d17770e528f39556.tar.gz openbsd-f3e848761b58c1645ce3b150d17770e528f39556.tar.bz2 openbsd-f3e848761b58c1645ce3b150d17770e528f39556.zip | |
import openssl-0.9.7-beta1
Diffstat (limited to 'src/lib/libcrypto/objects/Makefile.ssl')
| -rw-r--r-- | src/lib/libcrypto/objects/Makefile.ssl | 88 |
1 files changed, 62 insertions, 26 deletions
diff --git a/src/lib/libcrypto/objects/Makefile.ssl b/src/lib/libcrypto/objects/Makefile.ssl index 320523cea1..efe71eeb35 100644 --- a/src/lib/libcrypto/objects/Makefile.ssl +++ b/src/lib/libcrypto/objects/Makefile.ssl | |||
| @@ -5,29 +5,31 @@ | |||
| 5 | DIR= objects | 5 | DIR= objects |
| 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 |
| 18 | PERL= perl | ||
| 15 | 19 | ||
| 16 | CFLAGS= $(INCLUDES) $(CFLAG) | 20 | CFLAGS= $(INCLUDES) $(CFLAG) |
| 17 | 21 | ||
| 18 | ERR=objects | ||
| 19 | ERRC=obj_err | ||
| 20 | GENERAL=Makefile README | 22 | GENERAL=Makefile README |
| 21 | TEST= | 23 | TEST= |
| 22 | APPS= | 24 | APPS= |
| 23 | 25 | ||
| 24 | LIB=$(TOP)/libcrypto.a | 26 | LIB=$(TOP)/libcrypto.a |
| 25 | LIBSRC= obj_dat.c obj_lib.c $(ERRC).c | 27 | LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c |
| 26 | LIBOBJ= obj_dat.o obj_lib.o $(ERRC).o | 28 | LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o |
| 27 | 29 | ||
| 28 | SRC= $(LIBSRC) | 30 | SRC= $(LIBSRC) |
| 29 | 31 | ||
| 30 | EXHEADER= objects.h | 32 | EXHEADER= objects.h obj_mac.h |
| 31 | HEADER= $(EXHEADER) obj_dat.h | 33 | HEADER= $(EXHEADER) obj_dat.h |
| 32 | 34 | ||
| 33 | ALL= $(GENERAL) $(SRC) $(HEADER) | 35 | ALL= $(GENERAL) $(SRC) $(HEADER) |
| @@ -37,29 +39,32 @@ top: | |||
| 37 | 39 | ||
| 38 | all: obj_dat.h lib | 40 | all: obj_dat.h lib |
| 39 | 41 | ||
| 40 | obj_dat.h: objects.h obj_dat.pl | ||
| 41 | perl ./obj_dat.pl < objects.h > obj_dat.h | ||
| 42 | |||
| 43 | lib: $(LIBOBJ) | 42 | lib: $(LIBOBJ) |
| 44 | $(AR) $(LIB) $(LIBOBJ) | 43 | $(AR) $(LIB) $(LIBOBJ) |
| 45 | sh $(TOP)/util/ranlib.sh $(LIB) | 44 | $(RANLIB) $(LIB) || echo Never mind. |
| 46 | @touch lib | 45 | @touch lib |
| 47 | 46 | ||
| 47 | obj_dat.h: obj_dat.pl obj_mac.h | ||
| 48 | $(PERL) obj_dat.pl obj_mac.h obj_dat.h | ||
| 49 | |||
| 50 | # objects.pl both reads and writes obj_mac.num | ||
| 51 | obj_mac.h: objects.pl objects.txt obj_mac.num | ||
| 52 | $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h | ||
| 53 | |||
| 48 | files: | 54 | files: |
| 49 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 55 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
| 50 | 56 | ||
| 51 | links: | 57 | links: |
| 52 | /bin/rm -f Makefile | 58 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
| 53 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 59 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
| 54 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 60 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
| 55 | $(TOP)/util/mklink.sh ../../test $(TEST) | 61 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
| 56 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
| 57 | 62 | ||
| 58 | install: | 63 | install: |
| 59 | @for i in $(EXHEADER) ; \ | 64 | @for i in $(EXHEADER) ; \ |
| 60 | do \ | 65 | do \ |
| 61 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 66 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
| 62 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 67 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
| 63 | done; | 68 | done; |
| 64 | 69 | ||
| 65 | tags: | 70 | tags: |
| @@ -71,17 +76,48 @@ lint: | |||
| 71 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 76 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
| 72 | 77 | ||
| 73 | depend: | 78 | depend: |
| 74 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 79 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
| 75 | 80 | ||
| 76 | dclean: | 81 | dclean: |
| 77 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 82 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
| 78 | mv -f Makefile.new $(MAKEFILE) | 83 | mv -f Makefile.new $(MAKEFILE) |
| 79 | 84 | ||
| 80 | clean: | 85 | clean: |
| 81 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 86 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
| 82 | |||
| 83 | errors: | ||
| 84 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
| 85 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
| 86 | 87 | ||
| 87 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 88 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 89 | |||
| 90 | o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 91 | o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 92 | o_names.o: ../../include/openssl/e_os2.h ../../include/openssl/lhash.h | ||
| 93 | o_names.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
| 94 | o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
| 95 | o_names.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
| 96 | o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
| 97 | o_names.o: o_names.c | ||
| 98 | obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 99 | obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 100 | obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 101 | obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 102 | obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 103 | obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 104 | obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 105 | obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 106 | obj_dat.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_dat.c obj_dat.h | ||
| 107 | obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
| 108 | obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
| 109 | obj_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 110 | obj_err.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 111 | obj_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 112 | obj_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 113 | obj_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 114 | obj_err.o: ../../include/openssl/symhacks.h obj_err.c | ||
| 115 | obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
| 116 | obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
| 117 | obj_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
| 118 | obj_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
| 119 | obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
| 120 | obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
| 121 | obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
| 122 | obj_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
| 123 | obj_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_lib.c | ||
