diff options
Diffstat (limited to 'src/lib/libcrypto/pkcs7/Makefile.ssl')
-rw-r--r-- | src/lib/libcrypto/pkcs7/Makefile.ssl | 97 |
1 files changed, 78 insertions, 19 deletions
diff --git a/src/lib/libcrypto/pkcs7/Makefile.ssl b/src/lib/libcrypto/pkcs7/Makefile.ssl index a88359b320..436442a7a1 100644 --- a/src/lib/libcrypto/pkcs7/Makefile.ssl +++ b/src/lib/libcrypto/pkcs7/Makefile.ssl | |||
@@ -7,16 +7,16 @@ 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=pkcs7 | ||
19 | ERRC=pkcs7err | ||
20 | GENERAL=Makefile README | 20 | GENERAL=Makefile README |
21 | TEST= | 21 | TEST= |
22 | APPS= | 22 | APPS= |
@@ -39,26 +39,39 @@ test: | |||
39 | 39 | ||
40 | all: lib | 40 | all: lib |
41 | 41 | ||
42 | testapps: enc dec sign verify | ||
43 | |||
44 | enc: enc.o lib | ||
45 | $(CC) $(CFLAGS) -o enc enc.o $(LIB) | ||
46 | |||
47 | dec: dec.o lib | ||
48 | $(CC) $(CFLAGS) -o dec dec.o $(LIB) | ||
49 | |||
50 | sign: sign.o lib | ||
51 | $(CC) $(CFLAGS) -o sign sign.o $(LIB) | ||
52 | |||
53 | verify: verify.o example.o lib | ||
54 | $(CC) $(CFLAGS) -o verify verify.o example.o $(LIB) | ||
55 | |||
42 | lib: $(LIBOBJ) | 56 | lib: $(LIBOBJ) |
43 | $(AR) $(LIB) $(LIBOBJ) | 57 | $(AR) $(LIB) $(LIBOBJ) |
44 | sh $(TOP)/util/ranlib.sh $(LIB) | 58 | $(RANLIB) $(LIB) |
45 | @touch lib | 59 | @touch lib |
46 | 60 | ||
47 | files: | 61 | files: |
48 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 62 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
49 | 63 | ||
50 | links: | 64 | links: |
51 | /bin/rm -f Makefile | 65 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
52 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | 66 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
53 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | 67 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) |
54 | $(TOP)/util/mklink.sh ../../test $(TEST) | 68 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) |
55 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
56 | 69 | ||
57 | install: | 70 | install: |
58 | @for i in $(EXHEADER) ; \ | 71 | @for i in $(EXHEADER) ; \ |
59 | do \ | 72 | do \ |
60 | (cp $$i $(INSTALLTOP)/include/$$i; \ | 73 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
61 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | 74 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ |
62 | done; | 75 | done; |
63 | 76 | ||
64 | tags: | 77 | tags: |
@@ -70,17 +83,63 @@ lint: | |||
70 | lint -DLINT $(INCLUDES) $(SRC)>fluff | 83 | lint -DLINT $(INCLUDES) $(SRC)>fluff |
71 | 84 | ||
72 | depend: | 85 | depend: |
73 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | 86 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
74 | 87 | ||
75 | dclean: | 88 | dclean: |
76 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | 89 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
77 | mv -f Makefile.new $(MAKEFILE) | 90 | mv -f Makefile.new $(MAKEFILE) |
78 | 91 | ||
79 | clean: | 92 | clean: |
80 | /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | 93 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff |
81 | |||
82 | errors: | ||
83 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
84 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
85 | 94 | ||
86 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 95 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
96 | |||
97 | pk7_doit.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
98 | pk7_doit.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
99 | pk7_doit.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
100 | pk7_doit.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
101 | pk7_doit.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
102 | pk7_doit.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
103 | pk7_doit.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
104 | pk7_doit.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
105 | pk7_doit.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
106 | pk7_doit.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
107 | pk7_doit.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | ||
108 | pk7_doit.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h | ||
109 | pk7_doit.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h | ||
110 | pk7_doit.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h | ||
111 | pk7_doit.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h | ||
112 | pk7_doit.o: ../../include/openssl/stack.h ../../include/openssl/x509.h | ||
113 | pk7_doit.o: ../../include/openssl/x509_vfy.h ../cryptlib.h | ||
114 | pk7_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
115 | pk7_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
116 | pk7_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h | ||
117 | pk7_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h | ||
118 | pk7_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h | ||
119 | pk7_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h | ||
120 | pk7_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
121 | pk7_lib.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
122 | pk7_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
123 | pk7_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
124 | pk7_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | ||
125 | pk7_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
126 | pk7_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
127 | pk7_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
128 | pk7_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
129 | pk7_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||
130 | pk7_lib.o: ../cryptlib.h | ||
131 | pkcs7err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
132 | pkcs7err.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h | ||
133 | pkcs7err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h | ||
134 | pkcs7err.o: ../../include/openssl/des.h ../../include/openssl/dh.h | ||
135 | pkcs7err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h | ||
136 | pkcs7err.o: ../../include/openssl/err.h ../../include/openssl/evp.h | ||
137 | pkcs7err.o: ../../include/openssl/idea.h ../../include/openssl/md2.h | ||
138 | pkcs7err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h | ||
139 | pkcs7err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
140 | pkcs7err.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h | ||
141 | pkcs7err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h | ||
142 | pkcs7err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h | ||
143 | pkcs7err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h | ||
144 | pkcs7err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h | ||
145 | pkcs7err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h | ||