include ../settings.mk NATIVE_LIB = $(shell ../findLib "libcairo.so.2") all: Cairo.5D Cairo.5D: Cairo.sign $(FIND_5D_EXPORTS) Cairo.sign >Cairo.5D.new && mv Cairo.5D.new Cairo.5D Cairo.sign: Cairo.symbols prototypes ../generateSignatures $< $(NATIVE_LIB) cairo_ g:cairo >Cairo.sign.new && mv Cairo.sign.new Cairo.sign Cairo.symbols: $(NATIVE_LIB) $(EXTRACT_GNU_SYMBOLS) $< > Cairo.symbols.new && mv Cairo.symbols.new Cairo.symbols prototypes a.out: a.c $(CC) -aux-info prototypes -o a.out a.c `pkg-config --cflags --libs cairo` clean: rm -f GTK.5D GTK.sign rm -f Cairo.5D Cairo.sign prototypes a.out distclean: clean install: install -m 755 -d $(DESTDIR)/usr/share/5D/Cairo2 install -m 644 Cairo.5D $(DESTDIR)/usr/share/5D/Cairo2/init.5D