More extension code. Incomplete support for subject and issuer alt
[openssl.git] / crypto / pem / Makefile.ssl
1 #
2 # SSLeay/crypto/pem/Makefile
3 #
4
5 DIR=    pem
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I../../include
9 CFLAG=-g
10 INSTALLTOP=/usr/local/ssl
11 MAKE=           make -f Makefile.ssl
12 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
13 MAKEFILE=       Makefile.ssl
14 AR=             ar r
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17
18 ERR=pem
19 ERRC=pem_err
20 GENERAL=Makefile
21 TEST=
22 APPS=
23
24 CTX_SIZE= ctx_size
25
26 LIB=$(TOP)/libcrypto.a
27 LIBSRC= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c $(ERRC).c
28
29 LIBOBJ= pem_sign.o pem_seal.o pem_info.o pem_lib.o pem_all.o $(ERRC).o
30
31 SRC= $(LIBSRC)
32
33 EXHEADER= pem.h pem2.h
34 HEADER= $(EXHEADER)
35
36 ALL=    $(GENERAL) $(SRC) $(HEADER)
37
38 top:
39         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
40
41 all:    pem.h lib
42
43 pem.h: $(CTX_SIZE) pem.org
44         ./$(CTX_SIZE) <pem.org >pem.new
45         if [ -f pem.h ]; then mv -f pem.h pem.old; fi
46         mv -f pem.new pem.h
47
48 $(CTX_SIZE): $(CTX_SIZE).o
49         $(CC) $(CFLAGS) -o $(CTX_SIZE) $(CTX_SIZE).o
50
51 lib:    $(LIBOBJ)
52         $(AR) $(LIB) $(LIBOBJ)
53         sh $(TOP)/util/ranlib.sh $(LIB)
54         @touch lib
55
56 files:
57         perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
58
59 links: $(EXHEADER)
60         /bin/rm -f Makefile
61         $(TOP)/util/point.sh Makefile.ssl Makefile ;
62         $(TOP)/util/mklink.sh ../../include $(EXHEADER)
63         $(TOP)/util/mklink.sh ../../test $(TEST)
64         $(TOP)/util/mklink.sh ../../apps $(APPS)
65
66 install:
67         @for i in $(EXHEADER) ; \
68         do  \
69         (cp $$i $(INSTALLTOP)/include/$$i; \
70         chmod 644 $(INSTALLTOP)/include/$$i ); \
71         done;
72
73 tags:
74         ctags $(SRC)
75
76 tests:
77
78 lint:
79         lint -DLINT $(INCLUDES) $(SRC)>fluff
80
81 depend:
82         $(MAKEDEPEND) $(INCLUDES) $(CTX_SIZE).c $(LIBSRC)
83
84 dclean:
85         perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
86         mv -f Makefile.new $(MAKEFILE)
87
88 clean:
89         /bin/rm -f $(CTX_SIZE) *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
90
91 errors: $(ERRC).c
92
93 $(ERRC).c: $(ERR).err
94         perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # SPECIAL CASE .org
95         perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
96         perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c
97
98 # DO NOT DELETE THIS LINE -- make depend depends on it.
99
100 ctx_size.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
101 ctx_size.o: ../../include/bn.h ../../include/cast.h ../../include/crypto.h
102 ctx_size.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
103 ctx_size.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
104 ctx_size.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
105 ctx_size.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h
106 ctx_size.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h
107 ctx_size.o: ../../include/stack.h
108 pem_all.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
109 pem_all.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
110 pem_all.o: ../../include/crypto.h ../../include/des.h ../../include/dh.h
111 pem_all.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
112 pem_all.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
113 pem_all.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
114 pem_all.o: ../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
115 pem_all.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
116 pem_all.o: ../../include/sha.h ../../include/stack.h ../../include/x509.h
117 pem_all.o: ../../include/x509_vfy.h ../cryptlib.h pem.h pem2.h
118 pem_err.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
119 pem_err.o: ../../include/bn.h ../../include/cast.h ../../include/crypto.h
120 pem_err.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h
121 pem_err.o: ../../include/err.h ../../include/evp.h ../../include/idea.h
122 pem_err.o: ../../include/md2.h ../../include/md5.h ../../include/mdc2.h
123 pem_err.o: ../../include/objects.h ../../include/pkcs7.h ../../include/rc2.h
124 pem_err.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
125 pem_err.o: ../../include/rsa.h ../../include/sha.h ../../include/stack.h
126 pem_err.o: ../../include/x509.h ../../include/x509_vfy.h pem.h pem2.h
127 pem_info.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
128 pem_info.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
129 pem_info.o: ../../include/crypto.h ../../include/des.h ../../include/dh.h
130 pem_info.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
131 pem_info.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
132 pem_info.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
133 pem_info.o: ../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
134 pem_info.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
135 pem_info.o: ../../include/sha.h ../../include/stack.h ../../include/x509.h
136 pem_info.o: ../../include/x509_vfy.h ../cryptlib.h pem.h pem2.h
137 pem_lib.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
138 pem_lib.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
139 pem_lib.o: ../../include/crypto.h ../../include/des.h ../../include/dh.h
140 pem_lib.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
141 pem_lib.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
142 pem_lib.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
143 pem_lib.o: ../../include/pkcs7.h ../../include/rand.h ../../include/rc2.h
144 pem_lib.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
145 pem_lib.o: ../../include/rsa.h ../../include/sha.h ../../include/stack.h
146 pem_lib.o: ../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h pem.h
147 pem_lib.o: pem2.h
148 pem_seal.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
149 pem_seal.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
150 pem_seal.o: ../../include/crypto.h ../../include/des.h ../../include/dh.h
151 pem_seal.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
152 pem_seal.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
153 pem_seal.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
154 pem_seal.o: ../../include/pkcs7.h ../../include/rand.h ../../include/rc2.h
155 pem_seal.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
156 pem_seal.o: ../../include/rsa.h ../../include/sha.h ../../include/stack.h
157 pem_seal.o: ../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h pem.h
158 pem_seal.o: pem2.h
159 pem_sign.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
160 pem_sign.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
161 pem_sign.o: ../../include/crypto.h ../../include/des.h ../../include/dh.h
162 pem_sign.o: ../../include/dsa.h ../../include/e_os.h ../../include/err.h
163 pem_sign.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h
164 pem_sign.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h
165 pem_sign.o: ../../include/pkcs7.h ../../include/rand.h ../../include/rc2.h
166 pem_sign.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h
167 pem_sign.o: ../../include/rsa.h ../../include/sha.h ../../include/stack.h
168 pem_sign.o: ../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h pem.h
169 pem_sign.o: pem2.h