include ../settings.mk NATIVE_GDBM_LIB = $(shell ../findLib "libgdbm.so.3") all: GDBM.5D GDBM.5D: GDBM.sign $(FIND_5D_EXPORTS) GDBM.sign >GDBM.5D.new && mv GDBM.5D.new GDBM.5D GDBM.sign: GDBM.symbols prototypes ../generateSignatures $< $(NATIVE_GDBM_LIB) gdbm_ >GDBM.sign.new && mv GDBM.sign.new GDBM.sign GDBM.symbols: $(NATIVE_GDBM_LIB) GDBM.obsoletes $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > GDBM.symbols.new && cat GDBM.obsoletes >>GDBM.symbols.new && sort GDBM.symbols.new |uniq -u >GDBM.symbols.new2 && mv GDBM.symbols.new2 GDBM.symbols && rm -f GDBM.symbols.new clean: rm -f GDBM.5D GDBM.sign GDBM.symbols GDBM.symbols.new GDBM.symbols.new2 distclean: clean install: install -m 755 -d $(DESTDIR)/usr/share/5D/GDBM install -m 644 GDBM.5D $(DESTDIR)/usr/share/5D/GDBM/init.5D