include ../settings.mk NATIVE_ssl_LIB = $(shell ../findLib "libssl.so") all: SSL.5D TLS.5D DTLS1.5D COMP.5D %.5D: %.sign $(FIND_5D_EXPORTS) $< >$@.new && mv $@.new $@ prototypes a.out: a.c $(CC) -aux-info prototypes.new -o a.out a.c -lssl && mv prototypes.new prototypes SSL.5D: SSL.sign SSL.sign: SSL.symbols prototypes SSL.override ../generateSignatures $< $(NATIVE_ssl_LIB) "SSL" SSL.override >SSL.sign.new && mv SSL.sign.new SSL.sign SSL.symbols: $(NATIVE_ssl_LIB) SSL.obsoletes $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > SSL.symbols.new && cat SSL.obsoletes >>SSL.symbols.new && sort SSL.symbols.new |uniq -u >SSL.symbols.new2 && mv SSL.symbols.new2 SSL.symbols TLS.5D: TLS.sign TLS.sign: SSL.symbols prototypes TLS.override ../generateSignatures $< $(NATIVE_ssl_LIB) "TLS" TLS.override >TLS.sign.new && mv TLS.sign.new TLS.sign DTLS1.5D: DTLS1.sign DTLS1.sign: SSL.symbols prototypes DTLS1.override ../generateSignatures $< $(NATIVE_ssl_LIB) "DTLS1_" DTLS1.override >$@.new && mv $@.new $@ # Compression COMP.5D: COMP.sign COMP.sign: SSL.symbols prototypes COMP.override ../generateSignatures $< $(NATIVE_ssl_LIB) "COMP_" >$@.new && mv $@.new $@ clean: rm -f libcrypto.5D libcrypto.sign libcrypto.symbols rm -f SSL.5D SSL.sign SSL.symbols rm -f TLS.5D TLS.sign rm -f DTLS1.5D DTLS1.sign rm -f COMP.5D COMP.sign rm -f a.out prototypes prototypes.new distclean: clean install: install -m 755 -d $(DESTDIR)/usr/share/5D/libssl1 install -m 644 SSL.5D $(DESTDIR)/usr/share/5D/libssl1/SSL.5D install -m 644 DTLS1.5D $(DESTDIR)/usr/share/5D/libssl1/DTLS1.5D install -m 644 COMP.5D $(DESTDIR)/usr/share/5D/libssl1/COMP.5D install -m 644 TLS.5D $(DESTDIR)/usr/share/5D/libssl1/TLS.5D install -m 644 init.5D $(DESTDIR)/usr/share/5D/libssl1/init.5D