Makefile revision 194206
1160814Ssimon# 2160814Ssimon# OpenSSL/engines/Makefile 3160814Ssimon# 4160814Ssimon 5160814SsimonDIR= engines 6160814SsimonTOP= .. 7160814SsimonCC= cc 8160814SsimonINCLUDES= -I../include 9160814SsimonCFLAG=-g 10160814SsimonMAKEFILE= Makefile 11160814SsimonAR= ar r 12160814Ssimon 13160814SsimonPEX_LIBS= 14160814SsimonEX_LIBS= 15160814Ssimon 16160814SsimonCFLAGS= $(INCLUDES) $(CFLAG) 17160814Ssimon 18160814SsimonGENERAL=Makefile engines.com install.com engine_vector.mar 19160814SsimonTEST= 20160814SsimonAPPS= 21160814Ssimon 22160814SsimonLIB=$(TOP)/libcrypto.a 23194206SsimonLIBNAMES= 4758cca aep atalla cswift gmp chil nuron sureware ubsec capi 24160814Ssimon 25160814SsimonLIBSRC= e_4758cca.c \ 26160814Ssimon e_aep.c \ 27160814Ssimon e_atalla.c \ 28160814Ssimon e_cswift.c \ 29160814Ssimon e_gmp.c \ 30160814Ssimon e_chil.c \ 31160814Ssimon e_nuron.c \ 32160814Ssimon e_sureware.c \ 33194206Ssimon e_ubsec.c \ 34194206Ssimon e_capi.c 35160814SsimonLIBOBJ= e_4758cca.o \ 36160814Ssimon e_aep.o \ 37160814Ssimon e_atalla.o \ 38160814Ssimon e_cswift.o \ 39160814Ssimon e_gmp.o \ 40160814Ssimon e_chil.o \ 41160814Ssimon e_nuron.o \ 42160814Ssimon e_sureware.o \ 43194206Ssimon e_ubsec.o \ 44194206Ssimon e_capi.o 45160814Ssimon 46160814SsimonSRC= $(LIBSRC) 47160814Ssimon 48160814SsimonEXHEADER= 49160814SsimonHEADER= e_4758cca_err.c e_4758cca_err.h \ 50160814Ssimon e_aep_err.c e_aep_err.h \ 51160814Ssimon e_atalla_err.c e_atalla_err.h \ 52160814Ssimon e_cswift_err.c e_cswift_err.h \ 53160814Ssimon e_gmp_err.c e_gmp_err.h \ 54160814Ssimon e_chil_err.c e_chil_err.h \ 55160814Ssimon e_nuron_err.c e_nuron_err.h \ 56160814Ssimon e_sureware_err.c e_sureware_err.h \ 57194206Ssimon e_ubsec_err.c e_ubsec_err.h \ 58194206Ssimon e_capi_err.c e_capi_err.h 59160814Ssimon 60160814SsimonALL= $(GENERAL) $(SRC) $(HEADER) 61160814Ssimon 62160814Ssimontop: 63160814Ssimon (cd ..; $(MAKE) DIRS=$(DIR) all) 64160814Ssimon 65160814Ssimonall: lib 66160814Ssimon 67160814Ssimonlib: $(LIBOBJ) 68160814Ssimon @if [ -n "$(SHARED_LIBS)" ]; then \ 69160814Ssimon set -e; \ 70160814Ssimon for l in $(LIBNAMES); do \ 71160814Ssimon $(MAKE) -f ../Makefile.shared -e \ 72160814Ssimon LIBNAME=$$l LIBEXTRAS=e_$$l.o \ 73160814Ssimon LIBDEPS='-L.. -lcrypto $(EX_LIBS)' \ 74160814Ssimon link_o.$(SHLIB_TARGET); \ 75160814Ssimon done; \ 76160814Ssimon else \ 77160814Ssimon $(AR) $(LIB) $(LIBOBJ); \ 78160814Ssimon $(RANLIB) $(LIB) || echo Never mind.; \ 79160814Ssimon fi; \ 80160814Ssimon touch lib 81160814Ssimon 82160814Ssimonfiles: 83160814Ssimon $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 84160814Ssimon 85160814Ssimonlinks: 86160814Ssimon 87160814Ssimon# XXXXX This currently only works on systems that use .so as suffix 88160814Ssimon# for shared libraries as well as for Cygwin which uses the 89160814Ssimon# dlfcn_name_converter and therefore stores the engines with .so suffix, too. 90160814Ssimon# XXXXX This was extended to HP-UX dl targets, which use .sl suffix. 91160814Ssimoninstall: 92160814Ssimon @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 93160814Ssimon @if [ -n "$(SHARED_LIBS)" ]; then \ 94160814Ssimon set -e; \ 95160814Ssimon for l in $(LIBNAMES); do \ 96160814Ssimon ( echo installing $$l; \ 97160814Ssimon if [ "$(PLATFORM)" != "Cygwin" ]; then \ 98160814Ssimon case "$(CFLAGS)" in \ 99160814Ssimon *DSO_DLFCN*) sfx="so";; \ 100160814Ssimon *DSO_DL*) sfx="sl";; \ 101160814Ssimon *) sfx="bad";; \ 102160814Ssimon esac; \ 103160814Ssimon cp lib$$l.$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \ 104160814Ssimon else \ 105160814Ssimon sfx="so"; \ 106160814Ssimon cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \ 107160814Ssimon fi; \ 108160814Ssimon chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \ 109160814Ssimon mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx ); \ 110160814Ssimon done; \ 111160814Ssimon fi 112160814Ssimon 113160814Ssimontags: 114160814Ssimon ctags $(SRC) 115160814Ssimon 116160814Ssimonerrors: 117160814Ssimon set -e; for l in $(LIBNAMES); do \ 118160814Ssimon $(PERL) ../util/mkerr.pl -conf e_$$l.ec \ 119160814Ssimon -nostatic -staticloader -write e_$$l.c; \ 120160814Ssimon done 121160814Ssimon 122160814Ssimontests: 123160814Ssimon 124160814Ssimonlint: 125160814Ssimon lint -DLINT $(INCLUDES) $(SRC)>fluff 126160814Ssimon 127160814Ssimondepend: 128160814Ssimon @if [ -z "$(THIS)" ]; then \ 129160814Ssimon $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \ 130160814Ssimon else \ 131160814Ssimon $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC); \ 132160814Ssimon fi 133160814Ssimon 134160814Ssimondclean: 135160814Ssimon $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 136160814Ssimon mv -f Makefile.new $(MAKEFILE) 137160814Ssimon 138160814Ssimonclean: 139160814Ssimon rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 140160814Ssimon 141160814Ssimon# DO NOT DELETE THIS LINE -- make depend depends on it. 142160814Ssimon 143160814Ssimone_4758cca.o: ../include/openssl/asn1.h ../include/openssl/bio.h 144160814Ssimone_4758cca.o: ../include/openssl/bn.h ../include/openssl/buffer.h 145160814Ssimone_4758cca.o: ../include/openssl/crypto.h ../include/openssl/dso.h 146160814Ssimone_4758cca.o: ../include/openssl/e_os2.h ../include/openssl/ec.h 147160814Ssimone_4758cca.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h 148160814Ssimone_4758cca.o: ../include/openssl/engine.h ../include/openssl/err.h 149194206Ssimone_4758cca.o: ../include/openssl/evp.h ../include/openssl/fips.h 150194206Ssimone_4758cca.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 151194206Ssimone_4758cca.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 152194206Ssimone_4758cca.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 153194206Ssimone_4758cca.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 154194206Ssimone_4758cca.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 155194206Ssimone_4758cca.o: ../include/openssl/sha.h ../include/openssl/stack.h 156194206Ssimone_4758cca.o: ../include/openssl/symhacks.h ../include/openssl/x509.h 157194206Ssimone_4758cca.o: ../include/openssl/x509_vfy.h e_4758cca.c e_4758cca_err.c 158194206Ssimone_4758cca.o: e_4758cca_err.h vendor_defns/hw_4758_cca.h 159160814Ssimone_aep.o: ../include/openssl/asn1.h ../include/openssl/bio.h 160160814Ssimone_aep.o: ../include/openssl/bn.h ../include/openssl/buffer.h 161160814Ssimone_aep.o: ../include/openssl/crypto.h ../include/openssl/dh.h 162160814Ssimone_aep.o: ../include/openssl/dsa.h ../include/openssl/dso.h 163194206Ssimone_aep.o: ../include/openssl/e_os2.h ../include/openssl/ec.h 164194206Ssimone_aep.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h 165194206Ssimone_aep.o: ../include/openssl/engine.h ../include/openssl/err.h 166194206Ssimone_aep.o: ../include/openssl/evp.h ../include/openssl/fips.h 167194206Ssimone_aep.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 168194206Ssimone_aep.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 169194206Ssimone_aep.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 170194206Ssimone_aep.o: ../include/openssl/pkcs7.h ../include/openssl/rsa.h 171194206Ssimone_aep.o: ../include/openssl/safestack.h ../include/openssl/sha.h 172194206Ssimone_aep.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 173194206Ssimone_aep.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h e_aep.c 174194206Ssimone_aep.o: e_aep_err.c e_aep_err.h vendor_defns/aep.h 175160814Ssimone_atalla.o: ../include/openssl/asn1.h ../include/openssl/bio.h 176160814Ssimone_atalla.o: ../include/openssl/bn.h ../include/openssl/buffer.h 177160814Ssimone_atalla.o: ../include/openssl/crypto.h ../include/openssl/dh.h 178160814Ssimone_atalla.o: ../include/openssl/dsa.h ../include/openssl/dso.h 179194206Ssimone_atalla.o: ../include/openssl/e_os2.h ../include/openssl/ec.h 180194206Ssimone_atalla.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h 181194206Ssimone_atalla.o: ../include/openssl/engine.h ../include/openssl/err.h 182194206Ssimone_atalla.o: ../include/openssl/evp.h ../include/openssl/fips.h 183194206Ssimone_atalla.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 184194206Ssimone_atalla.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 185194206Ssimone_atalla.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 186194206Ssimone_atalla.o: ../include/openssl/pkcs7.h ../include/openssl/rsa.h 187194206Ssimone_atalla.o: ../include/openssl/safestack.h ../include/openssl/sha.h 188194206Ssimone_atalla.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 189194206Ssimone_atalla.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h e_atalla.c 190194206Ssimone_atalla.o: e_atalla_err.c e_atalla_err.h vendor_defns/atalla.h 191194206Ssimone_capi.o: ../include/openssl/asn1.h ../include/openssl/bio.h 192194206Ssimone_capi.o: ../include/openssl/bn.h ../include/openssl/buffer.h 193194206Ssimone_capi.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h 194194206Ssimone_capi.o: ../include/openssl/ec.h ../include/openssl/ecdh.h 195194206Ssimone_capi.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h 196194206Ssimone_capi.o: ../include/openssl/evp.h ../include/openssl/fips.h 197194206Ssimone_capi.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 198194206Ssimone_capi.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 199194206Ssimone_capi.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 200194206Ssimone_capi.o: ../include/openssl/pkcs7.h ../include/openssl/rsa.h 201194206Ssimone_capi.o: ../include/openssl/safestack.h ../include/openssl/sha.h 202194206Ssimone_capi.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 203194206Ssimone_capi.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h e_capi.c 204160814Ssimone_chil.o: ../include/openssl/asn1.h ../include/openssl/bio.h 205160814Ssimone_chil.o: ../include/openssl/bn.h ../include/openssl/buffer.h 206160814Ssimone_chil.o: ../include/openssl/crypto.h ../include/openssl/dh.h 207160814Ssimone_chil.o: ../include/openssl/dso.h ../include/openssl/e_os2.h 208160814Ssimone_chil.o: ../include/openssl/ec.h ../include/openssl/ecdh.h 209160814Ssimone_chil.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h 210160814Ssimone_chil.o: ../include/openssl/err.h ../include/openssl/evp.h 211194206Ssimone_chil.o: ../include/openssl/fips.h ../include/openssl/lhash.h 212194206Ssimone_chil.o: ../include/openssl/obj_mac.h ../include/openssl/objects.h 213194206Ssimone_chil.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h 214194206Ssimone_chil.o: ../include/openssl/ossl_typ.h ../include/openssl/pem.h 215194206Ssimone_chil.o: ../include/openssl/pem2.h ../include/openssl/pkcs7.h 216194206Ssimone_chil.o: ../include/openssl/rand.h ../include/openssl/rsa.h 217194206Ssimone_chil.o: ../include/openssl/safestack.h ../include/openssl/sha.h 218194206Ssimone_chil.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 219194206Ssimone_chil.o: ../include/openssl/ui.h ../include/openssl/x509.h 220194206Ssimone_chil.o: ../include/openssl/x509_vfy.h e_chil.c e_chil_err.c e_chil_err.h 221194206Ssimone_chil.o: vendor_defns/hwcryptohook.h 222160814Ssimone_cswift.o: ../include/openssl/asn1.h ../include/openssl/bio.h 223160814Ssimone_cswift.o: ../include/openssl/bn.h ../include/openssl/buffer.h 224160814Ssimone_cswift.o: ../include/openssl/crypto.h ../include/openssl/dh.h 225160814Ssimone_cswift.o: ../include/openssl/dsa.h ../include/openssl/dso.h 226194206Ssimone_cswift.o: ../include/openssl/e_os2.h ../include/openssl/ec.h 227194206Ssimone_cswift.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h 228194206Ssimone_cswift.o: ../include/openssl/engine.h ../include/openssl/err.h 229194206Ssimone_cswift.o: ../include/openssl/evp.h ../include/openssl/fips.h 230194206Ssimone_cswift.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 231194206Ssimone_cswift.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 232194206Ssimone_cswift.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 233194206Ssimone_cswift.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 234160814Ssimone_cswift.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 235194206Ssimone_cswift.o: ../include/openssl/sha.h ../include/openssl/stack.h 236194206Ssimone_cswift.o: ../include/openssl/symhacks.h ../include/openssl/x509.h 237194206Ssimone_cswift.o: ../include/openssl/x509_vfy.h e_cswift.c e_cswift_err.c 238194206Ssimone_cswift.o: e_cswift_err.h vendor_defns/cswift.h 239194206Ssimone_gmp.o: ../include/openssl/asn1.h ../include/openssl/bio.h 240194206Ssimone_gmp.o: ../include/openssl/bn.h ../include/openssl/buffer.h 241194206Ssimone_gmp.o: ../include/openssl/crypto.h ../include/openssl/e_os2.h 242194206Ssimone_gmp.o: ../include/openssl/ec.h ../include/openssl/ecdh.h 243194206Ssimone_gmp.o: ../include/openssl/ecdsa.h ../include/openssl/engine.h 244194206Ssimone_gmp.o: ../include/openssl/evp.h ../include/openssl/fips.h 245194206Ssimone_gmp.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 246194206Ssimone_gmp.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 247194206Ssimone_gmp.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 248194206Ssimone_gmp.o: ../include/openssl/pkcs7.h ../include/openssl/rsa.h 249194206Ssimone_gmp.o: ../include/openssl/safestack.h ../include/openssl/sha.h 250194206Ssimone_gmp.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 251194206Ssimone_gmp.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h e_gmp.c 252160814Ssimone_nuron.o: ../include/openssl/asn1.h ../include/openssl/bio.h 253160814Ssimone_nuron.o: ../include/openssl/bn.h ../include/openssl/buffer.h 254160814Ssimone_nuron.o: ../include/openssl/crypto.h ../include/openssl/dh.h 255160814Ssimone_nuron.o: ../include/openssl/dsa.h ../include/openssl/dso.h 256194206Ssimone_nuron.o: ../include/openssl/e_os2.h ../include/openssl/ec.h 257194206Ssimone_nuron.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h 258194206Ssimone_nuron.o: ../include/openssl/engine.h ../include/openssl/err.h 259194206Ssimone_nuron.o: ../include/openssl/evp.h ../include/openssl/fips.h 260194206Ssimone_nuron.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 261194206Ssimone_nuron.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 262194206Ssimone_nuron.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 263194206Ssimone_nuron.o: ../include/openssl/pkcs7.h ../include/openssl/rsa.h 264194206Ssimone_nuron.o: ../include/openssl/safestack.h ../include/openssl/sha.h 265194206Ssimone_nuron.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 266194206Ssimone_nuron.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h e_nuron.c 267194206Ssimone_nuron.o: e_nuron_err.c e_nuron_err.h 268160814Ssimone_sureware.o: ../include/openssl/asn1.h ../include/openssl/bio.h 269160814Ssimone_sureware.o: ../include/openssl/bn.h ../include/openssl/buffer.h 270160814Ssimone_sureware.o: ../include/openssl/crypto.h ../include/openssl/dh.h 271160814Ssimone_sureware.o: ../include/openssl/dsa.h ../include/openssl/dso.h 272160814Ssimone_sureware.o: ../include/openssl/e_os2.h ../include/openssl/ec.h 273160814Ssimone_sureware.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h 274160814Ssimone_sureware.o: ../include/openssl/engine.h ../include/openssl/err.h 275194206Ssimone_sureware.o: ../include/openssl/evp.h ../include/openssl/fips.h 276194206Ssimone_sureware.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 277194206Ssimone_sureware.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 278194206Ssimone_sureware.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 279194206Ssimone_sureware.o: ../include/openssl/pem.h ../include/openssl/pem2.h 280194206Ssimone_sureware.o: ../include/openssl/pkcs7.h ../include/openssl/rand.h 281194206Ssimone_sureware.o: ../include/openssl/rsa.h ../include/openssl/safestack.h 282194206Ssimone_sureware.o: ../include/openssl/sha.h ../include/openssl/stack.h 283194206Ssimone_sureware.o: ../include/openssl/symhacks.h ../include/openssl/x509.h 284194206Ssimone_sureware.o: ../include/openssl/x509_vfy.h e_sureware.c e_sureware_err.c 285194206Ssimone_sureware.o: e_sureware_err.h vendor_defns/sureware.h 286160814Ssimone_ubsec.o: ../include/openssl/asn1.h ../include/openssl/bio.h 287160814Ssimone_ubsec.o: ../include/openssl/bn.h ../include/openssl/buffer.h 288160814Ssimone_ubsec.o: ../include/openssl/crypto.h ../include/openssl/dh.h 289160814Ssimone_ubsec.o: ../include/openssl/dsa.h ../include/openssl/dso.h 290194206Ssimone_ubsec.o: ../include/openssl/e_os2.h ../include/openssl/ec.h 291194206Ssimone_ubsec.o: ../include/openssl/ecdh.h ../include/openssl/ecdsa.h 292194206Ssimone_ubsec.o: ../include/openssl/engine.h ../include/openssl/err.h 293194206Ssimone_ubsec.o: ../include/openssl/evp.h ../include/openssl/fips.h 294194206Ssimone_ubsec.o: ../include/openssl/lhash.h ../include/openssl/obj_mac.h 295194206Ssimone_ubsec.o: ../include/openssl/objects.h ../include/openssl/opensslconf.h 296194206Ssimone_ubsec.o: ../include/openssl/opensslv.h ../include/openssl/ossl_typ.h 297194206Ssimone_ubsec.o: ../include/openssl/pkcs7.h ../include/openssl/rsa.h 298194206Ssimone_ubsec.o: ../include/openssl/safestack.h ../include/openssl/sha.h 299194206Ssimone_ubsec.o: ../include/openssl/stack.h ../include/openssl/symhacks.h 300194206Ssimone_ubsec.o: ../include/openssl/x509.h ../include/openssl/x509_vfy.h e_ubsec.c 301194206Ssimone_ubsec.o: e_ubsec_err.c e_ubsec_err.h vendor_defns/hw_ubsec.h 302