include ../settings.mk NATIVE_GTK_LIB = $(shell ../findLib "libgtk-x11-2.0.so.0") NATIVE_GDK_LIB = $(shell ../findLib "libgdk-x11-2.0.so.0") all: GTK.5D GDK.5D GTK.5D: GTK.sign $(FIND_5D_EXPORTS) GTK.sign >GTK.5D.new && mv GTK.5D.new GTK.5D GTK.sign: GTK.symbols prototypes GTK.override ../generateSignatures $< $(NATIVE_GTK_LIB) gtk_ g:Gtk GTK.override >GTK.sign.new && mv GTK.sign.new GTK.sign GTK.symbols: $(NATIVE_GTK_LIB) GTK.obsoletes $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > GTK.symbols.new && cat GTK.obsoletes >>GTK.symbols.new && sort GTK.symbols.new |uniq -u >GTK.symbols.new2 && mv GTK.symbols.new2 GTK.symbols prototypes a.out: a.c $(CC) -aux-info prototypes -o a.out a.c `pkg-config --cflags --libs gtk+-2.0` GDK.5D: GDK.sign $(FIND_5D_EXPORTS) GDK.sign >GDK.5D.new && mv GDK.5D.new GDK.5D GDK.sign: GDK.symbols prototypes GDK.override ../generateSignatures $< $(NATIVE_GDK_LIB) gdk_ g:Gdk GDK.override >GDK.sign.new && mv GDK.sign.new GDK.sign GDK.symbols: $(NATIVE_GDK_LIB) GDK.obsoletes $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > GDK.symbols.new && cat GDK.obsoletes >>GDK.symbols.new && sort GDK.symbols.new |uniq -u >GDK.symbols.new2 && mv GDK.symbols.new2 GDK.symbols clean: rm -f GTK.5D GTK.sign GTK.symbols rm -f GDK.5D GDK.sign GDK.symbols rm -f a.out prototypes distclean: clean install: install -m 755 -d $(DESTDIR)/usr/share/5D/GTK2 install -m 644 GDK.5D $(DESTDIR)/usr/share/5D/GTK2/GDK.5D install -m 644 GTK.5D $(DESTDIR)/usr/share/5D/GTK2/GTK.5D install -m 644 init.5D $(DESTDIR)/usr/share/5D/GTK2/init.5D