]> git.ipfire.org Git - thirdparty/openssl.git/blame - engines/Makefile
Consolidate BUILDENV [idea is to keep all variables in one place].
[thirdparty/openssl.git] / engines / Makefile
CommitLineData
38e19a42
RL
1#
2# SSLeay/engines/Makefile
3#
4
5DIR= engines
6TOP= ..
7CC= cc
8INCLUDES= -I../include
9CFLAG=-g
38e19a42
RL
10MAKEDEPPROG= makedepend
11MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
42ba5d23 12MAKEFILE= Makefile
38e19a42
RL
13AR= ar r
14
79a6260a
RL
15PEX_LIBS=
16EX_LIBS=
fbeaa3c4 17
38e19a42
RL
18CFLAGS= $(INCLUDES) $(CFLAG)
19
1c243470 20GENERAL=Makefile engines.com install.com engine_vector.mar
38e19a42
RL
21TEST=
22APPS=
23
24LIB=$(TOP)/libcrypto.a
a85bef18 25LIBNAMES= 4758_cca aep atalla cswift gmp ncipher nuron sureware ubsec
97e2e71e 26
38e19a42
RL
27LIBSRC= e_4758_cca.c \
28 e_aep.c \
29 e_atalla.c \
38e19a42 30 e_cswift.c \
a85bef18 31 e_gmp.c \
38e19a42
RL
32 e_ncipher.c \
33 e_nuron.c \
34 e_sureware.c \
35 e_ubsec.c
36LIBOBJ= e_4758_cca.o \
37 e_aep.o \
38 e_atalla.o \
38e19a42 39 e_cswift.o \
a85bef18 40 e_gmp.o \
38e19a42
RL
41 e_ncipher.o \
42 e_nuron.o \
43 e_sureware.o \
44 e_ubsec.o
45
46SRC= $(LIBSRC)
47
48EXHEADER=
49HEADER= e_4758_cca_err.c e_4758_cca_err.h \
50 e_aep_err.c e_aep_err.h \
51 e_atalla_err.c e_atalla_err.h \
38e19a42 52 e_cswift_err.c e_cswift_err.h \
a85bef18 53 e_gmp_err.c e_gmp_err.h \
38e19a42
RL
54 e_ncipher_err.c e_ncipher_err.h \
55 e_nuron_err.c e_nuron_err.h \
56 e_sureware_err.c e_sureware_err.h \
57 e_ubsec_err.c e_ubsec_err.h
58
59ALL= $(GENERAL) $(SRC) $(HEADER)
60
61top:
62 (cd ..; $(MAKE) DIRS=$(DIR) all)
63
44866623 64all: lib
38e19a42 65
44866623 66lib: $(LIBOBJ)
38e19a42
RL
67 @if [ -n "$(SHARED_LIBS)" ]; then \
68 set -e; \
69 for l in $(LIBNAMES); do \
4c3a2d64 70 $(MAKE) -f ../Makefile.shared \
734540f8 71 LIBNAME=$$l LIBEXTRAS=e_$$l.o \
79a6260a 72 LIBDEPS='-L.. -lcrypto $(EX_LIBS)' \
38e19a42
RL
73 link_o.$(SHLIB_TARGET); \
74 done; \
75 else \
76 $(AR) $(LIB) $(LIBOBJ); \
77 $(RANLIB) $(LIB) || echo Never mind.; \
78 fi; \
44866623 79 touch lib
38e19a42
RL
80
81files:
42ba5d23 82 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
38e19a42
RL
83
84links:
38e19a42
RL
85
86# XXXXX This currently only works on systems that use .so as suffix
87# for shared libraries.
88install:
81a86fcf 89 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
38e19a42
RL
90 @if [ -n "$(SHARED_LIBS)" ]; then \
91 set -e; \
92 for l in $(LIBNAMES); do \
f6661d39 93 ( echo installing $$l; \
90819805
GT
94 cp lib$$l.so $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so.new; \
95 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so.new; \
96 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.so ); \
38e19a42
RL
97 done; \
98 fi
99
100tags:
101 ctags $(SRC)
102
103errors:
104 set -e; for l in $(LIBNAMES); do \
105 $(PERL) ../util/mkerr.pl -conf e_$$l.ec \
106 -nostatic -staticloader -write e_$$l.c; \
107 done
108
109tests:
110
111lint:
112 lint -DLINT $(INCLUDES) $(SRC)>fluff
113
114depend:
115 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
116
117dclean:
118 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
119 mv -f Makefile.new $(MAKEFILE)
120
121clean:
122 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
123
124# DO NOT DELETE THIS LINE -- make depend depends on it.
125
5e42f9ab 126e_4758_cca.o: ../include/openssl/asn1.h ../include/openssl/bio.h
38e19a42 127e_4758_cca.o: ../include/openssl/bn.h ../include/openssl/buffer.h
c57bc2dc 128e_4758_cca.o: ../include/openssl/crypto.h ../include/openssl/dso.h
5e42f9ab
RL
129e_4758_cca.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
130e_4758_cca.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
131e_4758_cca.o: ../include/openssl/engine.h ../include/openssl/err.h
132e_4758_cca.o: ../include/openssl/evp.h ../include/openssl/lhash.h
38e19a42
RL
133e_4758_cca.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
134e_4758_cca.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
135e_4758_cca.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
5e42f9ab 136e_4758_cca.o: ../include/openssl/rand.h ../include/openssl/rsa.h
38e19a42 137e_4758_cca.o: ../include/openssl/safestack.h ../include/openssl/sha.h
c57bc2dc 138e_4758_cca.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
98cec7fc
RL
139e_4758_cca.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
140e_4758_cca.o: e_4758_cca.c e_4758_cca_err.c e_4758_cca_err.h
141e_4758_cca.o: vendor_defns/hw_4758_cca.h
38e19a42
RL
142e_aep.o: ../include/openssl/asn1.h ../include/openssl/bio.h
143e_aep.o: ../include/openssl/bn.h ../include/openssl/buffer.h
144e_aep.o: ../include/openssl/crypto.h ../include/openssl/dh.h
145e_aep.o: ../include/openssl/dsa.h ../include/openssl/dso.h
c57bc2dc
GT
146e_aep.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
147e_aep.o: ../include/openssl/err.h ../include/openssl/lhash.h
98cec7fc 148e_aep.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
c57bc2dc
GT
149e_aep.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
150e_aep.o: ../include/openssl/safestack.h ../include/openssl/stack.h
151e_aep.o: ../include/openssl/symhacks.h e_aep.c e_aep_err.c e_aep_err.h
152e_aep.o: vendor_defns/aep.h
38e19a42 153e_atalla.o: ../include/openssl/asn1.h ../include/openssl/bio.h
7cdc7bac
RL
154e_atalla.o: ../include/openssl/bn.h ../include/openssl/buffer.h
155e_atalla.o: ../include/openssl/crypto.h ../include/openssl/dh.h
156e_atalla.o: ../include/openssl/dsa.h ../include/openssl/dso.h
c57bc2dc
GT
157e_atalla.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
158e_atalla.o: ../include/openssl/err.h ../include/openssl/lhash.h
98cec7fc 159e_atalla.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
c57bc2dc
GT
160e_atalla.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
161e_atalla.o: ../include/openssl/safestack.h ../include/openssl/stack.h
162e_atalla.o: ../include/openssl/symhacks.h e_atalla.c e_atalla_err.c
163e_atalla.o: e_atalla_err.h vendor_defns/atalla.h
38e19a42 164e_cswift.o: ../include/openssl/asn1.h ../include/openssl/bio.h
7cdc7bac
RL
165e_cswift.o: ../include/openssl/bn.h ../include/openssl/buffer.h
166e_cswift.o: ../include/openssl/crypto.h ../include/openssl/dh.h
167e_cswift.o: ../include/openssl/dsa.h ../include/openssl/dso.h
c57bc2dc
GT
168e_cswift.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
169e_cswift.o: ../include/openssl/err.h ../include/openssl/lhash.h
98cec7fc 170e_cswift.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
c57bc2dc
GT
171e_cswift.o: ../include/openssl/ossl_typ.h ../include/openssl/rand.h
172e_cswift.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
173e_cswift.o: ../include/openssl/stack.h ../include/openssl/symhacks.h e_cswift.c
7cdc7bac 174e_cswift.o: e_cswift_err.c e_cswift_err.h vendor_defns/cswift.h
c57bc2dc
GT
175e_gmp.o: ../include/openssl/buffer.h ../include/openssl/crypto.h
176e_gmp.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
177e_gmp.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
178e_gmp.o: ../include/openssl/ossl_typ.h ../include/openssl/safestack.h
179e_gmp.o: ../include/openssl/stack.h ../include/openssl/symhacks.h e_gmp.c
5e42f9ab 180e_ncipher.o: ../include/openssl/asn1.h ../include/openssl/bio.h
38e19a42 181e_ncipher.o: ../include/openssl/bn.h ../include/openssl/buffer.h
5e42f9ab 182e_ncipher.o: ../include/openssl/crypto.h ../include/openssl/dh.h
c57bc2dc
GT
183e_ncipher.o: ../include/openssl/dso.h ../include/openssl/e_os2.h
184e_ncipher.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
185e_ncipher.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
186e_ncipher.o: ../include/openssl/err.h ../include/openssl/evp.h
187e_ncipher.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
188e_ncipher.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
189e_ncipher.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
190e_ncipher.o: ../include/openssl/pem.h ../include/openssl/pem2.h
191e_ncipher.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
192e_ncipher.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
193e_ncipher.o: ../include/openssl/sha.h ../include/openssl/stack.h
98cec7fc
RL
194e_ncipher.o: ../include/openssl/symhacks.h ../include/openssl/ui.h
195e_ncipher.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
196e_ncipher.o: e_ncipher.c e_ncipher_err.c e_ncipher_err.h
197e_ncipher.o: vendor_defns/hwcryptohook.h
38e19a42 198e_nuron.o: ../include/openssl/asn1.h ../include/openssl/bio.h
7cdc7bac
RL
199e_nuron.o: ../include/openssl/bn.h ../include/openssl/buffer.h
200e_nuron.o: ../include/openssl/crypto.h ../include/openssl/dh.h
201e_nuron.o: ../include/openssl/dsa.h ../include/openssl/dso.h
c57bc2dc
GT
202e_nuron.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
203e_nuron.o: ../include/openssl/err.h ../include/openssl/lhash.h
98cec7fc 204e_nuron.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
c57bc2dc
GT
205e_nuron.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
206e_nuron.o: ../include/openssl/safestack.h ../include/openssl/stack.h
207e_nuron.o: ../include/openssl/symhacks.h e_nuron.c e_nuron_err.c e_nuron_err.h
5e42f9ab 208e_sureware.o: ../include/openssl/asn1.h ../include/openssl/bio.h
38e19a42 209e_sureware.o: ../include/openssl/bn.h ../include/openssl/buffer.h
5e42f9ab
RL
210e_sureware.o: ../include/openssl/crypto.h ../include/openssl/dh.h
211e_sureware.o: ../include/openssl/dsa.h ../include/openssl/dso.h
212e_sureware.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
213e_sureware.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
214e_sureware.o: ../include/openssl/engine.h ../include/openssl/err.h
215e_sureware.o: ../include/openssl/evp.h ../include/openssl/lhash.h
38e19a42
RL
216e_sureware.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
217e_sureware.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
218e_sureware.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h
219e_sureware.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h
5e42f9ab 220e_sureware.o: ../include/openssl/rand.h ../include/openssl/rsa.h
38e19a42 221e_sureware.o: ../include/openssl/safestack.h ../include/openssl/sha.h
c57bc2dc 222e_sureware.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
98cec7fc
RL
223e_sureware.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
224e_sureware.o: e_sureware.c e_sureware_err.c e_sureware_err.h
225e_sureware.o: vendor_defns/sureware.h
38e19a42 226e_ubsec.o: ../include/openssl/asn1.h ../include/openssl/bio.h
7cdc7bac
RL
227e_ubsec.o: ../include/openssl/bn.h ../include/openssl/buffer.h
228e_ubsec.o: ../include/openssl/crypto.h ../include/openssl/dh.h
229e_ubsec.o: ../include/openssl/dsa.h ../include/openssl/dso.h
c57bc2dc
GT
230e_ubsec.o: ../include/openssl/e_os2.h ../include/openssl/engine.h
231e_ubsec.o: ../include/openssl/err.h ../include/openssl/lhash.h
98cec7fc 232e_ubsec.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
c57bc2dc
GT
233e_ubsec.o: ../include/openssl/ossl_typ.h ../include/openssl/rsa.h
234e_ubsec.o: ../include/openssl/safestack.h ../include/openssl/stack.h
235e_ubsec.o: ../include/openssl/symhacks.h e_ubsec.c e_ubsec_err.c e_ubsec_err.h
236e_ubsec.o: vendor_defns/hw_ubsec.h