include ../settings.mk NATIVE_GSL_LIB = $(shell ../findLib "libgsl.so.0") all: GSL.5D GSL.5D: GSL.sign $(FIND_5D_EXPORTS) GSL.sign >GSL.5D.new && mv GSL.5D.new GSL.5D GSL.sign: GSL.symbols prototypes GSL.override ../generateSignatures $< $(NATIVE_GSL_LIB) gsl_ g:GSL GSL.override >GSL.sign.new && mv GSL.sign.new GSL.sign GSL.symbols: $(NATIVE_GSL_LIB) GSL.obsoletes $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > GSL.symbols.new && cat GSL.obsoletes >>GSL.symbols.new && sort GSL.symbols.new |uniq -u >GSL.symbols.new2 && mv GSL.symbols.new2 GSL.symbols prototypes a.out: a.c $(CC) -aux-info prototypes -o a.out a.c `pkg-config --cflags --libs gsl` clean: rm -f GSL.5D GSL.sign GSL.symbols rm -f a.out prototypes distclean: clean install: install -m 755 -d $(DESTDIR)/usr/share/5D/GSL2 install -m 644 GSL.5D $(DESTDIR)/usr/share/5D/GSL2/GSL.5D install -m 644 init.5D $(DESTDIR)/usr/share/5D/GSL2/init.5D