Add i2d_ASN1_PRINTABLESTRING() function, and do 'make update'
[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../../include
9 CFLAG=-g
10 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKE=           make -f Makefile.ssl
14 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
15 MAKEFILE=       Makefile.ssl
16 AR=             ar r
17
18 PEX_LIBS=
19 EX_LIBS=
20  
21 CFLAGS= $(INCLUDES) $(CFLAG)
22
23 GENERAL=Makefile README
24 TEST=
25 APPS=
26
27 LIB=$(TOP)/libcrypto.a
28 LIBSRC= pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c pk7_mime.c
29 LIBOBJ= pk7_lib.o pkcs7err.o pk7_doit.o pk7_smime.o pk7_attr.o pk7_mime.o
30
31 SRC= $(LIBSRC)
32
33 EXHEADER=  pkcs7.h
34 HEADER= $(EXHEADER)
35
36 ALL=    $(GENERAL) $(SRC) $(HEADER)
37
38 top:
39         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
40
41 test:
42
43 all:    lib
44
45 testapps: enc dec sign verify
46
47 enc: enc.o lib
48         $(CC) $(CFLAGS) -o enc enc.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
49
50 dec: dec.o lib
51         $(CC) $(CFLAGS) -o dec dec.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
52
53 sign: sign.o lib
54         $(CC) $(CFLAGS) -o sign sign.o $(PEX_LIBS) $(LIB) $(EX_LIBS)
55
56 verify: verify.o example.o lib
57         $(CC) $(CFLAGS) -o verify verify.o $(PEX_LIBS) example.o $(LIB) $(EX_LIBS)
58
59 lib:    $(LIBOBJ)
60         $(AR) $(LIB) $(LIBOBJ)
61         $(RANLIB) $(LIB)
62         @touch lib
63
64 files:
65         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
66
67 links:
68         @$(TOP)/util/point.sh Makefile.ssl Makefile
69         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
70         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
71         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
72
73 install:
74         @for i in $(EXHEADER) ; \
75         do  \
76         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
77         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
78         done;
79
80 tags:
81         ctags $(SRC)
82
83 tests:
84
85 lint:
86         lint -DLINT $(INCLUDES) $(SRC)>fluff
87
88 depend:
89         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
90
91 dclean:
92         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
93         mv -f Makefile.new $(MAKEFILE)
94
95 clean:
96         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
97
98 # DO NOT DELETE THIS LINE -- make depend depends on it.
99
100 pk7_attr.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
101 pk7_attr.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
102 pk7_attr.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
103 pk7_attr.o: ../../include/openssl/des.h ../../include/openssl/dh.h
104 pk7_attr.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
105 pk7_attr.o: ../../include/openssl/err.h ../../include/openssl/evp.h
106 pk7_attr.o: ../../include/openssl/idea.h ../../include/openssl/md2.h
107 pk7_attr.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
108 pk7_attr.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
109 pk7_attr.o: ../../include/openssl/opensslv.h ../../include/openssl/pem.h
110 pk7_attr.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs7.h
111 pk7_attr.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
112 pk7_attr.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
113 pk7_attr.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
114 pk7_attr.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
115 pk7_attr.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
116 pk7_doit.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
117 pk7_doit.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
118 pk7_doit.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
119 pk7_doit.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
120 pk7_doit.o: ../../include/openssl/des.h ../../include/openssl/dh.h
121 pk7_doit.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
122 pk7_doit.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
123 pk7_doit.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
124 pk7_doit.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
125 pk7_doit.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
126 pk7_doit.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
127 pk7_doit.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
128 pk7_doit.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
129 pk7_doit.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
130 pk7_doit.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
131 pk7_doit.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
132 pk7_doit.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
133 pk7_doit.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
134 pk7_doit.o: ../cryptlib.h
135 pk7_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
136 pk7_lib.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
137 pk7_lib.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
138 pk7_lib.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
139 pk7_lib.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
140 pk7_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
141 pk7_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
142 pk7_lib.o: ../../include/openssl/idea.h ../../include/openssl/md2.h
143 pk7_lib.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
144 pk7_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
145 pk7_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
146 pk7_lib.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
147 pk7_lib.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
148 pk7_lib.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
149 pk7_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
150 pk7_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
151 pk7_lib.o: ../cryptlib.h
152 pk7_mime.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
153 pk7_mime.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
154 pk7_mime.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
155 pk7_mime.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
156 pk7_mime.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
157 pk7_mime.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
158 pk7_mime.o: ../../include/openssl/err.h ../../include/openssl/evp.h
159 pk7_mime.o: ../../include/openssl/idea.h ../../include/openssl/md2.h
160 pk7_mime.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
161 pk7_mime.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
162 pk7_mime.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
163 pk7_mime.o: ../../include/openssl/rand.h ../../include/openssl/rc2.h
164 pk7_mime.o: ../../include/openssl/rc4.h ../../include/openssl/rc5.h
165 pk7_mime.o: ../../include/openssl/ripemd.h ../../include/openssl/rsa.h
166 pk7_mime.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
167 pk7_mime.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
168 pk7_mime.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
169 pk7_smime.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
170 pk7_smime.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
171 pk7_smime.o: ../../include/openssl/buffer.h ../../include/openssl/cast.h
172 pk7_smime.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
173 pk7_smime.o: ../../include/openssl/des.h ../../include/openssl/dh.h
174 pk7_smime.o: ../../include/openssl/dsa.h ../../include/openssl/e_os.h
175 pk7_smime.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
176 pk7_smime.o: ../../include/openssl/evp.h ../../include/openssl/idea.h
177 pk7_smime.o: ../../include/openssl/lhash.h ../../include/openssl/md2.h
178 pk7_smime.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
179 pk7_smime.o: ../../include/openssl/objects.h
180 pk7_smime.o: ../../include/openssl/opensslconf.h
181 pk7_smime.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
182 pk7_smime.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
183 pk7_smime.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
184 pk7_smime.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
185 pk7_smime.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
186 pk7_smime.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
187 pk7_smime.o: ../../include/openssl/x509v3.h ../cryptlib.h
188 pkcs7err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
189 pkcs7err.o: ../../include/openssl/blowfish.h ../../include/openssl/bn.h
190 pkcs7err.o: ../../include/openssl/cast.h ../../include/openssl/crypto.h
191 pkcs7err.o: ../../include/openssl/des.h ../../include/openssl/dh.h
192 pkcs7err.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
193 pkcs7err.o: ../../include/openssl/err.h ../../include/openssl/evp.h
194 pkcs7err.o: ../../include/openssl/idea.h ../../include/openssl/md2.h
195 pkcs7err.o: ../../include/openssl/md5.h ../../include/openssl/mdc2.h
196 pkcs7err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
197 pkcs7err.o: ../../include/openssl/opensslv.h ../../include/openssl/pkcs7.h
198 pkcs7err.o: ../../include/openssl/rc2.h ../../include/openssl/rc4.h
199 pkcs7err.o: ../../include/openssl/rc5.h ../../include/openssl/ripemd.h
200 pkcs7err.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
201 pkcs7err.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
202 pkcs7err.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h