include ../settings.mk NATIVE_libcrypto_LIB = $(shell ../findLib "libcrypto.so") GENERATED_WRAPPERS = SHA.5D RC2.5D RC4.5D DH.5D RSA.5D Engine.5D X509.5D HMAC.5D MD4.5D MD5.5D RIPEMD.5D ERR.5D RAND.5D BIO.5D EVP.5D PEM.5D AES.5D DES.5D DSA.5D Blowfish.5D Camellia.5D CAST.5D PKCS12.5D PKCS7.5D TS.5D Whirlpool.5D DSO.5D KRB5ASN.5D TXTDB.5D SRP.5D SEED.5D OCSP.5D all: $(GENERATED_WRAPPERS) # FIXME make override work %.5D: %.sign $(FIND_5D_EXPORTS) $< >$@.new && mv $@.new $@ AES.5D: AES.sign SHA.5D: SHA.sign SHA.sign: libcrypto.symbols prototypes SHA.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "SHA" >$@.new && mv $@.new $@ AES.sign: libcrypto.symbols prototypes AES.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "AES_" >$@.new && mv $@.new $@ DES.5D: DES.sign DES.sign: libcrypto.symbols prototypes DES.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "DES_" >$@.new && mv $@.new $@ RC2.5D: RC2.sign RC2.sign: libcrypto.symbols prototypes RC2.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "RC2_" >$@.new && mv $@.new $@ RC4.5D: RC4.sign RC4.sign: libcrypto.symbols prototypes RC4.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "RC4_" >$@.new && mv $@.new $@ DSA.5D: DSA.sign DSA.sign: libcrypto.symbols prototypes DSA.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "DSA_" >$@.new && mv $@.new $@ DH.5D: DH.sign DH.sign: libcrypto.symbols prototypes DH.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "DH_" >$@.new && mv $@.new $@ RSA.5D: RSA.sign RSA.sign: libcrypto.symbols prototypes RSA.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "RSA_" >$@.new && mv $@.new $@ Engine.5D: Engine.sign Engine.sign: libcrypto.symbols prototypes Engine.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "Engine_" >$@.new && mv $@.new $@ X509.5D: X509.sign X509.sign: libcrypto.symbols prototypes X509.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "X509_" >$@.new && mv $@.new $@ HMAC.5D: HMAC.sign HMAC.sign: libcrypto.symbols prototypes HMAC.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "HMAC_" >$@.new && mv $@.new $@ MD4.5D: MD4.sign MD4.sign: libcrypto.symbols prototypes MD4.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "MD4_" >$@.new && mv $@.new $@ MD5.5D: MD5.sign MD5.sign: libcrypto.symbols prototypes MD5.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "MD5_" >$@.new && mv $@.new $@ RIPEMD.5D: RIPEMD.sign RIPEMD.sign: libcrypto.symbols prototypes RIPEMD.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "RIPEMD160_" >$@.new && mv $@.new $@ ERR.5D: ERR.sign ERR.sign: libcrypto.symbols prototypes ERR.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "ERR_" >$@.new && mv $@.new $@ RAND.5D: RAND.sign RAND.sign: libcrypto.symbols prototypes RAND.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "RAND_" >$@.new && mv $@.new $@ BIO.5D: BIO.sign BIO.sign: libcrypto.symbols prototypes BIO.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "BIO_" >$@.new && mv $@.new $@ EVP.5D: EVP.sign EVP.sign: libcrypto.symbols prototypes EVP.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "EVP_" >$@.new && mv $@.new $@ PEM.5D: PEM.sign PEM.sign: libcrypto.symbols prototypes PEM.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "PEM_" >$@.new && mv $@.new $@ Blowfish.5D: Blowfish.sign Blowfish.sign: libcrypto.symbols prototypes Blowfish.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "BF_" >$@.new && mv $@.new $@ Camellia.5D: Camellia.sign Camellia.sign: libcrypto.symbols prototypes Camellia.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "Camellia_" >$@.new && mv $@.new $@ CAST.5D: CAST.sign CAST.sign: libcrypto.symbols prototypes CAST.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "CAST_" >$@.new && mv $@.new $@ CMS.5D: CMS.sign CMS.sign: libcrypto.symbols prototypes CMS.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "CMS_" >$@.new && mv $@.new $@ PKCS12.5D: PKCS12.sign PKCS12.sign: libcrypto.symbols prototypes PKCS12.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "PKCS12_" >$@.new && mv $@.new $@ PKCS7.5D: PKCS7.sign PKCS7.sign: libcrypto.symbols prototypes PKCS7.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "PKCS7_" >$@.new && mv $@.new $@ OCSP.5D: OCSP.sign OCSP.sign: libcrypto.symbols prototypes OCSP.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "OCSP_" >$@.new && mv $@.new $@ TS.5D: TS.sign TS.sign: libcrypto.symbols prototypes TS.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "TS_" >$@.new && mv $@.new $@ Whirlpool.5D: Whirlpool.sign Whirlpool.sign: libcrypto.symbols prototypes Whirlpool.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "WHIRLPOOL_" >$@.new && mv $@.new $@ DSO.5D: DSO.sign DSO.sign: libcrypto.symbols prototypes DSO.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "DSO_" >$@.new && mv $@.new $@ KRB5ASN.5D: KRB5ASN.sign KRB5ASN.sign: libcrypto.symbols prototypes KRB5ASN.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "KRB5_" >$@.new && mv $@.new $@ TXTDB.5D: TXTDB.sign TXTDB.sign: libcrypto.symbols prototypes TXTDB.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "TXT_DB_" >$@.new && mv $@.new $@ SRP.5D: SRP.sign SRP.sign: libcrypto.symbols prototypes SRP.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "SRP_" >$@.new && mv $@.new $@ SEED.5D: SEED.sign SEED.sign: libcrypto.symbols prototypes SEED.override ../generateSignatures $< $(NATIVE_libcrypto_LIB) "SEED_" >$@.new && mv $@.new $@ libcrypto.symbols: $(NATIVE_libcrypto_LIB) libcrypto.obsoletes $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > libcrypto.symbols.new && cat libcrypto.obsoletes >>libcrypto.symbols.new && sort libcrypto.symbols.new |uniq -u >libcrypto.symbols.new2 && mv libcrypto.symbols.new2 libcrypto.symbols prototypes a.out: a.c a.inc $(CC) -aux-info prototypes.new -o a.out a.c -lcrypto && mv prototypes.new prototypes a.inc: findConstants findConstantsB ./findConstants >a.inc.new && mv a.inc.new a.inc clean: rm -f libcrypto.5D libcrypto.sign libcrypto.symbols rm -f a.out prototypes prototypes.new a.inc a.inc.new rm -f $(GENERATED_WRAPPERS) distclean: clean install: install -m 755 -d $(DESTDIR)/usr/share/5D/libcrypto1 install -m 644 $(GENERATED_WRAPPERS) $(DESTDIR)/usr/share/5D/libcrypto1/ install -m 644 init.5D $(DESTDIR)/usr/share/5D/libcrypto1/init.5D