summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects/Makefile.ssl
diff options
context:
space:
mode:
authormarkus <>2002-09-05 12:51:51 +0000
committermarkus <>2002-09-05 12:51:51 +0000
commitf3e848761b58c1645ce3b150d17770e528f39556 (patch)
tree88a70dc7c35100da165c0ff4f7182805f3d85b76 /src/lib/libcrypto/objects/Makefile.ssl
parent2f5692b12332315048054bcce20e370985e19970 (diff)
downloadopenbsd-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.ssl88
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 @@
5DIR= objects 5DIR= objects
6TOP= ../.. 6TOP= ../..
7CC= cc 7CC= cc
8INCLUDES= -I.. -I../../include 8INCLUDES= -I.. -I$(TOP) -I../../include
9CFLAG=-g 9CFLAG=-g
10INSTALL_PREFIX=
11OPENSSLDIR= /usr/local/ssl
10INSTALLTOP=/usr/local/ssl 12INSTALLTOP=/usr/local/ssl
11MAKE= make -f Makefile.ssl 13MAKE= make -f Makefile.ssl
12MAKEDEPEND= makedepend -f Makefile.ssl 14MAKEDEPPROG= makedepend
15MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
13MAKEFILE= Makefile.ssl 16MAKEFILE= Makefile.ssl
14AR= ar r 17AR= ar r
18PERL= perl
15 19
16CFLAGS= $(INCLUDES) $(CFLAG) 20CFLAGS= $(INCLUDES) $(CFLAG)
17 21
18ERR=objects
19ERRC=obj_err
20GENERAL=Makefile README 22GENERAL=Makefile README
21TEST= 23TEST=
22APPS= 24APPS=
23 25
24LIB=$(TOP)/libcrypto.a 26LIB=$(TOP)/libcrypto.a
25LIBSRC= obj_dat.c obj_lib.c $(ERRC).c 27LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c
26LIBOBJ= obj_dat.o obj_lib.o $(ERRC).o 28LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o
27 29
28SRC= $(LIBSRC) 30SRC= $(LIBSRC)
29 31
30EXHEADER= objects.h 32EXHEADER= objects.h obj_mac.h
31HEADER= $(EXHEADER) obj_dat.h 33HEADER= $(EXHEADER) obj_dat.h
32 34
33ALL= $(GENERAL) $(SRC) $(HEADER) 35ALL= $(GENERAL) $(SRC) $(HEADER)
@@ -37,29 +39,32 @@ top:
37 39
38all: obj_dat.h lib 40all: obj_dat.h lib
39 41
40obj_dat.h: objects.h obj_dat.pl
41 perl ./obj_dat.pl < objects.h > obj_dat.h
42
43lib: $(LIBOBJ) 42lib: $(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
47obj_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
51obj_mac.h: objects.pl objects.txt obj_mac.num
52 $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h
53
48files: 54files:
49 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO 55 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
50 56
51links: 57links:
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
58install: 63install:
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
65tags: 70tags:
@@ -71,17 +76,48 @@ lint:
71 lint -DLINT $(INCLUDES) $(SRC)>fluff 76 lint -DLINT $(INCLUDES) $(SRC)>fluff
72 77
73depend: 78depend:
74 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) 79 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
75 80
76dclean: 81dclean:
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
80clean: 85clean:
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
83errors:
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
90o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
91o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
92o_names.o: ../../include/openssl/e_os2.h ../../include/openssl/lhash.h
93o_names.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
94o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
95o_names.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
96o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
97o_names.o: o_names.c
98obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h
99obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
100obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
101obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
102obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
103obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
104obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
105obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
106obj_dat.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_dat.c obj_dat.h
107obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
108obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
109obj_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
110obj_err.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
111obj_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
112obj_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
113obj_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
114obj_err.o: ../../include/openssl/symhacks.h obj_err.c
115obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h
116obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
117obj_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
118obj_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
119obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
120obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
121obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
122obj_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
123obj_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_lib.c