Makefile.ssl 12.2 KB
Newer Older
1
#
2
# SSLeay/crypto/pkcs7/Makefile
3 4 5 6 7
#

DIR=	pkcs7
TOP=	../..
CC=	cc
8
INCLUDES= -I.. -I$(TOP) -I../../include
9
CFLAG=-g
10 11
INSTALL_PREFIX=
OPENSSLDIR=     /usr/local/ssl
12 13
INSTALLTOP=/usr/local/ssl
MAKE=		make -f Makefile.ssl
14 15
MAKEDEPPROG=	makedepend
MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16 17 18
MAKEFILE=	Makefile.ssl
AR=		ar r

19 20 21
PEX_LIBS=
EX_LIBS=
 
22 23 24 25 26 27 28
CFLAGS= $(INCLUDES) $(CFLAG)

GENERAL=Makefile README
TEST=
APPS=

LIB=$(TOP)/libcrypto.a
D
 
Dr. Stephen Henson 已提交
29 30 31 32
LIBSRC=	pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c \
	pk7_mime.c
LIBOBJ= pk7_asn1.o pk7_lib.o pkcs7err.o pk7_doit.o pk7_smime.o pk7_attr.o \
	pk7_mime.o
33 34 35 36 37 38 39 40 41 42 43 44 45

SRC= $(LIBSRC)

EXHEADER=  pkcs7.h
HEADER=	$(EXHEADER)

ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)

test:

U
Ulf Möller 已提交
46
all:	lib
47

B
Ben Laurie 已提交
48 49 50
testapps: enc dec sign verify

enc: enc.o lib
51
	$(CC) $(CFLAGS) -o enc enc.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
B
Ben Laurie 已提交
52 53

dec: dec.o lib
54
	$(CC) $(CFLAGS) -o dec dec.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
B
Ben Laurie 已提交
55 56

sign: sign.o lib
57
	$(CC) $(CFLAGS) -o sign sign.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
B
Ben Laurie 已提交
58 59

verify: verify.o example.o lib
60
	$(CC) $(CFLAGS) -o verify verify.o $(PEX_LIBS) example.o $(LIB) $(EX_LIBS)
B
Ben Laurie 已提交
61

62 63
lib:	$(LIBOBJ)
	$(AR) $(LIB) $(LIBOBJ)
64
	$(RANLIB) $(LIB) || echo Never mind.
65 66 67
	@touch lib

files:
68
	$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
69 70

links:
71
	@$(TOP)/util/point.sh Makefile.ssl Makefile
72 73 74
	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
75 76 77 78

install:
	@for i in $(EXHEADER) ; \
	do  \
79 80
	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
81 82 83 84 85 86 87 88 89 90 91
	done;

tags:
	ctags $(SRC)

tests:

lint:
	lint -DLINT $(INCLUDES) $(SRC)>fluff

depend:
92
	$(MAKEDEPEND) $(CFLAG) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
93 94

dclean:
95
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
96 97 98
	mv -f Makefile.new $(MAKEFILE)

clean:
B
Bodo Möller 已提交
99
	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff enc dec sign verify
100 101

# DO NOT DELETE THIS LINE -- make depend depends on it.
B
Ben Laurie 已提交
102

103 104 105
pk7_asn1.o: ../../e_os.h ../../include/openssl/aes.h
pk7_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
pk7_asn1.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
106
pk7_asn1.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
107 108 109 110 111 112 113 114 115
pk7_asn1.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
pk7_asn1.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
pk7_asn1.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
pk7_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
pk7_asn1.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
pk7_asn1.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
pk7_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
pk7_asn1.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
pk7_asn1.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
116
pk7_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
R
Richard Levitte 已提交
117
pk7_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
118 119 120
pk7_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
pk7_asn1.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
pk7_asn1.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
R
Richard Levitte 已提交
121 122
pk7_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
pk7_asn1.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
123
pk7_asn1.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
124 125
pk7_asn1.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
pk7_asn1.o: ../cryptlib.h pk7_asn1.c
126 127 128 129 130 131 132 133 134 135 136 137
pk7_attr.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
pk7_attr.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h
pk7_attr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
pk7_attr.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
pk7_attr.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
pk7_attr.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h
pk7_attr.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
pk7_attr.o: ../../include/openssl/ec.h ../../include/openssl/ecdsa.h
pk7_attr.o: ../../include/openssl/err.h ../../include/openssl/evp.h
pk7_attr.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
pk7_attr.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
pk7_attr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
B
Bodo Möller 已提交
138 139
pk7_attr.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
pk7_attr.o: ../../include/openssl/opensslconf.h
R
Richard Levitte 已提交
140 141
pk7_attr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
pk7_attr.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h
142 143 144
pk7_attr.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
pk7_attr.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
pk7_attr.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
R
Richard Levitte 已提交
145 146
pk7_attr.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
pk7_attr.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
147
pk7_attr.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
148 149
pk7_attr.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
pk7_attr.o: pk7_attr.c
150 151 152
pk7_doit.o: ../../e_os.h ../../include/openssl/aes.h
pk7_doit.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
pk7_doit.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
B
Bodo Möller 已提交
153
pk7_doit.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
154 155 156 157 158 159 160 161 162
pk7_doit.o: ../../include/openssl/cast.h ../../include/openssl/conf.h
pk7_doit.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
pk7_doit.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h
pk7_doit.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
pk7_doit.o: ../../include/openssl/ec.h ../../include/openssl/ecdsa.h
pk7_doit.o: ../../include/openssl/err.h ../../include/openssl/evp.h
pk7_doit.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
pk7_doit.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
pk7_doit.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
B
Bodo Möller 已提交
163 164
pk7_doit.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
pk7_doit.o: ../../include/openssl/opensslconf.h
R
Richard Levitte 已提交
165 166
pk7_doit.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
pk7_doit.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
167 168
pk7_doit.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
pk7_doit.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
R
Richard Levitte 已提交
169 170
pk7_doit.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
pk7_doit.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
171 172
pk7_doit.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
pk7_doit.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h
173 174
pk7_doit.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
pk7_doit.o: ../cryptlib.h pk7_doit.c
175 176 177
pk7_lib.o: ../../e_os.h ../../include/openssl/aes.h
pk7_lib.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
pk7_lib.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
B
Bodo Möller 已提交
178
pk7_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
179 180 181 182 183 184 185 186 187
pk7_lib.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
pk7_lib.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
pk7_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
pk7_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
pk7_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
pk7_lib.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
pk7_lib.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
pk7_lib.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
pk7_lib.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
B
Bodo Möller 已提交
188 189
pk7_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
pk7_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
190 191 192
pk7_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
pk7_lib.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
pk7_lib.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
B
Bodo Möller 已提交
193 194
pk7_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
pk7_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
195
pk7_lib.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
B
Bodo Möller 已提交
196 197
pk7_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
pk7_lib.o: ../cryptlib.h pk7_lib.c
198 199 200
pk7_mime.o: ../../e_os.h ../../include/openssl/aes.h
pk7_mime.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
pk7_mime.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
B
Bodo Möller 已提交
201
pk7_mime.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
202 203 204 205 206 207 208 209 210
pk7_mime.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
pk7_mime.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
pk7_mime.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
pk7_mime.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
pk7_mime.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
pk7_mime.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
pk7_mime.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
pk7_mime.o: ../../include/openssl/md4.h ../../include/openssl/md5.h
pk7_mime.o: ../../include/openssl/mdc2.h ../../include/openssl/obj_mac.h
B
Bodo Möller 已提交
211
pk7_mime.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
R
Richard Levitte 已提交
212 213
pk7_mime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
pk7_mime.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
214 215
pk7_mime.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
pk7_mime.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
R
Richard Levitte 已提交
216 217
pk7_mime.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
pk7_mime.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
218 219
pk7_mime.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
pk7_mime.o: ../../include/openssl/ui_compat.h ../../include/openssl/x509.h
220
pk7_mime.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pk7_mime.c
221 222 223
pk7_smime.o: ../../e_os.h ../../include/openssl/aes.h
pk7_smime.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
pk7_smime.o: ../../include/openssl/bio.h ../../include/openssl/blowfish.h
B
Bodo Möller 已提交
224
pk7_smime.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
225 226 227 228 229 230 231 232 233
pk7_smime.o: ../../include/openssl/cast.h ../../include/openssl/conf.h
pk7_smime.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
pk7_smime.o: ../../include/openssl/des_old.h ../../include/openssl/dh.h
pk7_smime.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
pk7_smime.o: ../../include/openssl/ec.h ../../include/openssl/ecdsa.h
pk7_smime.o: ../../include/openssl/err.h ../../include/openssl/evp.h
pk7_smime.o: ../../include/openssl/idea.h ../../include/openssl/lhash.h
pk7_smime.o: ../../include/openssl/md2.h ../../include/openssl/md4.h
pk7_smime.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
B
Bodo Möller 已提交
234
pk7_smime.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
235
pk7_smime.o: ../../include/openssl/opensslconf.h
R
Richard Levitte 已提交
236
pk7_smime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
237 238 239
pk7_smime.o: ../../include/openssl/pkcs7.h ../../include/openssl/rc2.h
pk7_smime.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
pk7_smime.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
R
Richard Levitte 已提交
240 241
pk7_smime.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
pk7_smime.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
242
pk7_smime.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
243 244
pk7_smime.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
pk7_smime.o: ../../include/openssl/x509v3.h ../cryptlib.h pk7_smime.c
R
Richard Levitte 已提交
245
pkcs7err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
246 247 248
pkcs7err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
pkcs7err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
pkcs7err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
R
Richard Levitte 已提交
249 250 251
pkcs7err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
pkcs7err.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
pkcs7err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
252
pkcs7err.o: pkcs7err.c