include ../settings.mk NATIVE_LIB = $(shell ../findLib "libfuse.so") all: init.5D Constants.5D init.5D: FUSE2.sign $(FIND_5D_EXPORTS) FUSE2.sign >FUSE2.5D.new && mv FUSE2.5D.new init.5D FUSE2.sign: FUSE2.symbols prototypes FUSE2.override ../generateSignatures ../generateSignatures $< $(NATIVE_LIB) "fuse_" >FUSE2.sign.new && cat FUSE2.override >> FUSE2.sign.new && mv FUSE2.sign.new FUSE2.sign FUSE2.symbols: $(NATIVE_LIB) FUSE2.obsoletes Makefile $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > FUSE2.symbols.new && cat FUSE2.obsoletes >>FUSE2.symbols.new && sort FUSE2.symbols.new |uniq -u >FUSE2.symbols.new2 && mv FUSE2.symbols.new2 FUSE2.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.new && mv Constants.5D.new Constants.5D clean: rm -f init.5D FUSE2.sign Constants.5D Constants.5D.new distclean: clean rm -f *.symbols install: install -m 755 -d $(DESTDIR)/usr/share/5D/FUSE2 install -m 644 init.5D $(DESTDIR)/usr/share/5D/FUSE2/init.5D install -m 644 Constants.5D $(DESTDIR)/usr/share/5D/FUSE2/Constants.5D