include ../settings.mk NATIVE_LIB = $(shell ../findLib "libc.so.6") all: init.5D Constants.5D init.5D: POSIX.sign $(FIND_5D_EXPORTS) POSIX.sign >POSIX.5D.new && mv POSIX.5D.new init.5D POSIX.sign: POSIX.symbols prototypes POSIX.override ../generateSignatures ../generateSignatures $< $(NATIVE_LIB) "" >POSIX.sign.new && cat POSIX.override >> POSIX.sign.new && mv POSIX.sign.new POSIX.sign POSIX.symbols: $(NATIVE_LIB) POSIX.obsoletes Makefile $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > POSIX.symbols.new && cat POSIX.obsoletes >>POSIX.symbols.new && sort POSIX.symbols.new |uniq -u >POSIX.symbols.new2 && mv POSIX.symbols.new2 POSIX.symbols Constants.5D prototypes: a.c gcc -D_FILE_OFFSET_BITS=64 -o a.out -aux-info prototypes a.c ./a.out > Constants.5D.new && $(FIND_5D_EXPORTS) Constants.5D.new >Constants.5D.new2 && mv Constants.5D.new2 Constants.5D clean: rm -f init.5D POSIX.sign Constants.5D Constants.5D.new Constants.5D.new2 distclean: clean rm -f *.symbols a.out install: install -m 755 -d $(DESTDIR)/usr/share/5D/POSIX install -m 644 init.5D $(DESTDIR)/usr/share/5D/POSIX/init.5D install -m 644 Constants.5D $(DESTDIR)/usr/share/5D/POSIX/Constants.5D