include ../settings.mk NATIVE_LIB = $(shell ../findLib "liblapack.so.3gf") all: LAPACK.5D prototypes a.out: a.c $(CC) -aux-info prototypes.new -o a.out a.c -I. -llapack && mv prototypes.new prototypes LAPACK.5D: LAPACK.sign $(FIND_5D_EXPORTS) LAPACK.sign >LAPACK.5D.new && mv LAPACK.5D.new LAPACK.5D LAPACK.sign: LAPACK.symbols prototypes LAPACK.override ../generateSignatures $< $(NATIVE_LIB) LAPACKE_ >LAPACK.sign.new && cat LAPACK.override >>LAPACK.sign.new && mv LAPACK.sign.new LAPACK.sign LAPACK.symbols: $(NATIVE_LIB) $(EXTRACT_GNU_SYMBOLS) $< > LAPACK.symbols.new && mv LAPACK.symbols.new LAPACK.symbols clean: rm -f LAPACK.5D LAPACK.sign a.out distclean: clean install: install -m 755 -d $(DESTDIR)/usr/share/5D/LAPACK3gf install -m 644 LAPACK.5D $(DESTDIR)/usr/share/5D/LAPACK3gf/LAPACK.5D install -m 644 init.5D $(DESTDIR)/usr/share/5D/LAPACK3gf/init.5D