Check ASN1_TYPE structure type is a SEQUENCE in PKCS7_get_smimecap().
[openssl.git] / crypto / pkcs7 / Makefile.ssl
1 #
2 # SSLeay/crypto/pkcs7/Makefile
3 #
4
5 DIR=    pkcs7
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
9 CFLAG=-g
10 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKE=           make -f Makefile.ssl
14 MAKEDEPPROG=    makedepend
15 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16 MAKEFILE=       Makefile.ssl
17 AR=             ar r
18
19 PEX_LIBS=
20 EX_LIBS=
21  
22 CFLAGS= $(INCLUDES) $(CFLAG)
23
24 GENERAL=Makefile README
25 TEST=
26 APPS=
27
28 LIB=$(TOP)/libcrypto.a
29 LIBSRC= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c \
30         pk7_mime.c
31 LIBOBJ= pk7_asn1.o pk7_lib.o pkcs7err.o pk7_doit.o pk7_smime.o pk7_attr.o \
32         pk7_mime.o
33
34 SRC= $(LIBSRC)
35
36 EXHEADER=  pkcs7.h
37 HEADER= $(EXHEADER)
38
39 ALL=    $(GENERAL) $(SRC) $(HEADER)
40
41 top:
42         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
43
44 test:
45
46 all:    lib
47
48 testapps: enc dec sign verify
49
50 enc: enc.o lib
51         $(CC) $(CFLAGS) -o enc enc.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
52
53 dec: dec.o lib
54         $(CC) $(CFLAGS) -o dec dec.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
55
56 sign: sign.o lib
57         $(CC) $(CFLAGS) -o sign sign.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
58
59 verify: verify.o example.o lib
60         $(CC) $(CFLAGS) -o verify verify.o $(PEX_LIBS) example.o $(LIB) $(EX_LIBS)
61
62 lib:    $(LIBOBJ)
63         $(AR) $(LIB) $(LIBOBJ)
64         $(RANLIB) $(LIB) || echo Never mind.
65         @touch lib
66
67 files:
68         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
69
70 links:
71         @sh $(TOP)/util/point.sh Makefile.ssl Makefile
72         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
73         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
74         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
75
76 install:
77         @for i in $(EXHEADER) ; \
78         do  \
79         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
80         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
81         done;
82
83 tags:
84         ctags $(SRC)
85
86 tests:
87
88 lint:
89         lint -DLINT $(INCLUDES) $(SRC)>fluff
90
91 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         mv -f Makefile.new $(MAKEFILE)
97
98 clean:
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.
102
103 pk7_asn1.o: ../../e_os.h ../../include/openssl/asn1.h
104 pk7_asn1.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h
105 pk7_asn1.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
106 pk7_asn1.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
107 pk7_asn1.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
108 pk7_asn1.o: ../../include/openssl/err.h ../../include/openssl/evp.h
109 pk7_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
110 pk7_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
111 pk7_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
112 pk7_asn1.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
113 pk7_asn1.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
114 pk7_asn1.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
115 pk7_asn1.o: ../../include/openssl/x509_vfy.h ../cryptlib.h pk7_asn1.c
116 pk7_attr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
117 pk7_attr.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
118 pk7_attr.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
119 pk7_attr.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
120 pk7_attr.o: ../../include/openssl/err.h ../../include/openssl/evp.h
121 pk7_attr.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
122 pk7_attr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
123 pk7_attr.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
124 pk7_attr.o: ../../include/openssl/pem.h ../../include/openssl/pem2.h
125 pk7_attr.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
126 pk7_attr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
127 pk7_attr.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
128 pk7_attr.o: ../../include/openssl/x509_vfy.h pk7_attr.c
129 pk7_doit.o: ../../e_os.h ../../include/openssl/asn1.h
130 pk7_doit.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
131 pk7_doit.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
132 pk7_doit.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
133 pk7_doit.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
134 pk7_doit.o: ../../include/openssl/err.h ../../include/openssl/evp.h
135 pk7_doit.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
136 pk7_doit.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
137 pk7_doit.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
138 pk7_doit.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
139 pk7_doit.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
140 pk7_doit.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
141 pk7_doit.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
142 pk7_doit.o: ../../include/openssl/x509v3.h ../cryptlib.h pk7_doit.c
143 pk7_lib.o: ../../e_os.h ../../include/openssl/asn1.h
144 pk7_lib.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
145 pk7_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
146 pk7_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
147 pk7_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
148 pk7_lib.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
149 pk7_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
150 pk7_lib.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
151 pk7_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
152 pk7_lib.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
153 pk7_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
154 pk7_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
155 pk7_lib.o: ../cryptlib.h pk7_lib.c
156 pk7_mime.o: ../../e_os.h ../../include/openssl/asn1.h
157 pk7_mime.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
158 pk7_mime.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
159 pk7_mime.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
160 pk7_mime.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
161 pk7_mime.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
162 pk7_mime.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
163 pk7_mime.o: ../../include/openssl/opensslconf.h
164 pk7_mime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
165 pk7_mime.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
166 pk7_mime.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
167 pk7_mime.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
168 pk7_mime.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
169 pk7_mime.o: ../cryptlib.h pk7_mime.c
170 pk7_smime.o: ../../e_os.h ../../include/openssl/asn1.h
171 pk7_smime.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
172 pk7_smime.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
173 pk7_smime.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
174 pk7_smime.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
175 pk7_smime.o: ../../include/openssl/err.h ../../include/openssl/evp.h
176 pk7_smime.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
177 pk7_smime.o: ../../include/openssl/objects.h
178 pk7_smime.o: ../../include/openssl/opensslconf.h
179 pk7_smime.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
180 pk7_smime.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
181 pk7_smime.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
182 pk7_smime.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
183 pk7_smime.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
184 pk7_smime.o: ../cryptlib.h pk7_smime.c
185 pkcs7err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
186 pkcs7err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
187 pkcs7err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
188 pkcs7err.o: ../../include/openssl/opensslconf.h
189 pkcs7err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
190 pkcs7err.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
191 pkcs7err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
192 pkcs7err.o: pkcs7err.c