Make output consistency: remove blank line
[openssl.git] / engines / Makefile
1 #
2 # OpenSSL/engines/Makefile
3 #
4
5 #The following engines have been disabled as they currently do not build
6 # aep atalla cswift chil nuron sureware ubsec
7
8 DIR=    engines
9 TOP=    ..
10 CC=     cc
11 INCLUDES= -I../include
12 CFLAG=-g
13 MAKEFILE=       Makefile
14 AR=             ar r
15 ENGDIRS= ccgost
16
17 RECURSIVE_MAKE= [ -z "$(ENGDIRS)" ] || for i in $(ENGDIRS) ; do \
18                     (cd $$i && echo "making $$target in $(DIR)/$$i..." && \
19                     $(MAKE) -e TOP=../.. DIR=$$i $$target ) || exit 1; \
20                 done;
21
22 ENGINES_ASM_OBJ=
23
24 PEX_LIBS=
25 EX_LIBS=
26
27 CFLAGS= $(INCLUDES) $(CFLAG)
28 ASFLAGS= $(INCLUDES) $(ASFLAG)
29
30 GENERAL=Makefile engines.com install.com engine_vector.mar
31 TEST=
32 APPS=
33
34 LIB=$(TOP)/libcrypto.a
35 LIBNAMES= 4758cca gmp padlock capi
36
37 LIBSRC= e_4758cca.c \
38         e_gmp.c \
39         e_padlock.c \
40         e_capi.c
41 LIBOBJ= e_4758cca.o \
42         e_gmp.o \
43         e_padlock.o \
44         e_capi.o \
45         $(ENGINES_ASM_OBJ)
46
47 SRC= $(LIBSRC)
48
49 EXHEADER= 
50 HEADER= e_4758cca_err.c e_4758cca_err.h \
51         e_gmp_err.c e_gmp_err.h \
52         e_chil_err.c e_chil_err.h \
53         e_nuron_err.c e_nuron_err.h \
54         e_sureware_err.c e_sureware_err.h \
55         e_ubsec_err.c e_ubsec_err.h \
56         e_capi_err.c e_capi_err.h
57
58 ALL=    $(GENERAL) $(SRC) $(HEADER)
59
60 top:
61         (cd ..; $(MAKE) DIRS=$(DIR) all)
62
63 all:    lib subdirs
64
65 lib:    $(LIBOBJ)
66         @if [ -n "$(SHARED_LIBS)" ]; then \
67                 set -e; \
68                 for l in $(LIBNAMES); do \
69                         $(MAKE) -f ../Makefile.shared -e \
70                                 LIBNAME=$$l LIBEXTRAS="e_$$l*.o" \
71                                 LIBDEPS='-L.. -lcrypto $(EX_LIBS)' \
72                                 link_o.$(SHLIB_TARGET); \
73                 done; \
74         else \
75                 $(AR) $(LIB) $(LIBOBJ); \
76                 $(RANLIB) $(LIB) || echo Never mind.; \
77         fi; \
78         touch lib
79
80 e_padlock-x86.s:        asm/e_padlock-x86.pl
81         $(PERL) asm/e_padlock-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
82 e_padlock-x86_64.s:     asm/e_padlock-x86_64.pl
83         $(PERL) asm/e_padlock-x86_64.pl $(PERLASM_SCHEME) > $@
84
85 subdirs:
86         @target=all; $(RECURSIVE_MAKE)
87
88 files:
89         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
90         @target=files; $(RECURSIVE_MAKE)
91
92 links:
93         @target=links; $(RECURSIVE_MAKE)
94
95 # XXXXX This currently only works on systems that use .so as suffix
96 # for shared libraries as well as for Cygwin which uses the
97 # dlfcn_name_converter and therefore stores the engines with .so suffix, too.
98 # XXXXX This was extended to HP-UX dl targets, which use .sl suffix.
99 # XXXXX This was extended to mingw targets, which use eay32.dll suffix without lib as prefix.
100 install:
101         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
102         @if [ -n "$(SHARED_LIBS)" ]; then \
103                 set -e; \
104                 $(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines; \
105                 for l in $(LIBNAMES); do \
106                         ( echo installing $$l; \
107                           pfx=lib; \
108                           if expr "$(PLATFORM)" : "Cygwin" >/dev/null; then \
109                                 sfx=".so"; \
110                                 cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
111                           else \
112                                 case "$(CFLAGS)" in \
113                                 *DSO_DLFCN*)    sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;;    \
114                                 *DSO_DL*)       sfx=".sl";;     \
115                                 *DSO_WIN32*)    sfx="eay32.dll"; pfx=;; \
116                                 *)              sfx=".bad";;    \
117                                 esac; \
118                                 cp $$pfx$$l$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
119                           fi; \
120                           chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \
121                           mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx ); \
122                 done; \
123         fi
124         @target=install; $(RECURSIVE_MAKE)
125
126 tags:
127         ctags $(SRC)
128
129 errors:
130         set -e; for l in $(LIBNAMES); do \
131                 $(PERL) ../util/mkerr.pl -conf e_$$l.ec \
132                         -nostatic -staticloader -write e_$$l.c; \
133         done
134         (cd ccgost; $(MAKE) PERL=$(PERL) errors)
135
136 tests:
137
138 lint:
139         lint -DLINT $(INCLUDES) $(SRC)>fluff
140         @target=lint; $(RECURSIVE_MAKE)
141
142 depend:
143         @if [ -z "$(THIS)" ]; then \
144             $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
145         fi
146         @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
147         @[ -z "$(THIS)" ] || (set -e; target=depend; $(RECURSIVE_MAKE) )
148
149 dclean:
150         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
151         mv -f Makefile.new $(MAKEFILE)
152         @target=dclean; $(RECURSIVE_MAKE)
153
154 clean:
155         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
156         @target=clean; $(RECURSIVE_MAKE)
157
158 # DO NOT DELETE THIS LINE -- make depend depends on it.
159
160 e_4758cca.o: ../include/openssl/asn1.h ../include/openssl/bio.h
161 e_4758cca.o: ../include/openssl/bn.h ../include/openssl/buffer.h
162 e_4758cca.o: ../include/openssl/crypto.h ../include/openssl/dso.h
163 e_4758cca.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
164 e_4758cca.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
165 e_4758cca.o: ../include/openssl/engine.h ../include/openssl/err.h
166 e_4758cca.o: ../include/openssl/evp.h ../include/openssl/lhash.h
167 e_4758cca.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
168 e_4758cca.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
169 e_4758cca.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
170 e_4758cca.o: ../include/openssl/rand.h ../include/openssl/rsa.h
171 e_4758cca.o: ../include/openssl/safestack.h ../include/openssl/sha.h
172 e_4758cca.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
173 e_4758cca.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
174 e_4758cca.o: e_4758cca.c e_4758cca_err.c e_4758cca_err.h
175 e_4758cca.o: vendor_defns/hw_4758_cca.h
176 e_capi.o: ../include/openssl/asn1.h ../include/openssl/bio.h
177 e_capi.o: ../include/openssl/buffer.h ../include/openssl/crypto.h
178 e_capi.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
179 e_capi.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
180 e_capi.o: ../include/openssl/engine.h ../include/openssl/evp.h
181 e_capi.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h
182 e_capi.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
183 e_capi.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
184 e_capi.o: ../include/openssl/pkcs7.h ../include/openssl/safestack.h
185 e_capi.o: ../include/openssl/sha.h ../include/openssl/stack.h
186 e_capi.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
187 e_capi.o: ../include/openssl/x509_vfy.h e_capi.c
188 e_gmp.o: ../include/openssl/asn1.h ../include/openssl/bio.h
189 e_gmp.o: ../include/openssl/bn.h ../include/openssl/buffer.h
190 e_gmp.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h
191 e_gmp.o: ../include/openssl/ec.h ../include/openssl/ecdh.h
192 e_gmp.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h
193 e_gmp.o: ../include/openssl/evp.h ../include/openssl/lhash.h
194 e_gmp.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h
195 e_gmp.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
196 e_gmp.o: ../include/openssl/ossl_typ.h ../include/openssl/pkcs7.h
197 e_gmp.o: ../include/openssl/rsa.h ../include/openssl/safestack.h
198 e_gmp.o: ../include/openssl/sha.h ../include/openssl/stack.h
199 e_gmp.o: ../include/openssl/symhacks.h ../include/openssl/x509.h
200 e_gmp.o: ../include/openssl/x509_vfy.h e_gmp.c
201 e_padlock.o: ../include/openssl/aes.h ../include/openssl/asn1.h
202 e_padlock.o: ../include/openssl/bio.h ../include/openssl/buffer.h
203 e_padlock.o: ../include/openssl/crypto.h ../include/openssl/dso.h
204 e_padlock.o: ../include/openssl/e_os2.h ../include/openssl/ec.h
205 e_padlock.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h
206 e_padlock.o: ../include/openssl/engine.h ../include/openssl/err.h
207 e_padlock.o: ../include/openssl/evp.h ../include/openssl/lhash.h
208 e_padlock.o: ../include/openssl/modes.h ../include/openssl/obj_mac.h
209 e_padlock.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h
210 e_padlock.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h
211 e_padlock.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h
212 e_padlock.o: ../include/openssl/safestack.h ../include/openssl/sha.h
213 e_padlock.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
214 e_padlock.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h
215 e_padlock.o: e_padlock.c