include ../settings.mk NATIVE_LIBPQ5_LIB = $(shell ../findLib "libpq.so.5") all: init.5D a.out prototypes: a.c $(CC) -aux-info prototypes -o a.out a.c `pg_config --cflags` -I`pg_config --includedir` -L`pg_config --libdir` -lpq init.5D: libpq5.sign $(FIND_5D_EXPORTS) libpq5.sign >libpq5.5D.new && mv libpq5.5D.new init.5D libpq5.sign: libpq5.symbols prototypes ../generateSignatures $< $(NATIVE_LIBPQ5_LIB) PQ >libpq5.sign.new && mv libpq5.sign.new libpq5.sign libpq5.symbols: $(NATIVE_LIBPQ5_LIB) $(EXTRACT_GNU_SYMBOLS) $< > libpq5.symbols.new && mv libpq5.symbols.new libpq5.symbols clean: rm -f init.5D libpq5.sign distclean: clean rm -f libpq5.symbols install: install -m 755 -d $(DESTDIR)/usr/share/5D/libpq5 install -m 644 init.5D $(DESTDIR)/usr/share/5D/libpq5/init.5D