include ../settings.mk NATIVE_GLIB_LIB = $(shell ../findLib "libglib-2.0.so") NATIVE_GOBJECT_LIB = $(shell ../findLib "libgobject-2.0.so.0") NATIVE_GIO_LIB = $(shell ../findLib "libgio-2.0.so.0") all: GLib.5D GObject.5D all: GIO.5D prototypes a.out: a.c $(CC) -aux-info prototypes -o a.out a.c `pkg-config --cflags --libs glib-2.0 gobject-2.0 gthread-2.0 gio-2.0` GLib.5D: GLib.sign $(FIND_5D_EXPORTS) GLib.sign >GLib.5D.new && mv GLib.5D.new GLib.5D GLib.sign: GLib.symbols prototypes ../generateSignatures $< $(NATIVE_GLIB_LIB) g_ g:G >GLib.sign.new && mv GLib.sign.new GLib.sign GLib.symbols: $(NATIVE_GLIB_LIB) GLib.obsoletes $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > GLib.symbols.new && cat GLib.obsoletes >>GLib.symbols.new && sort GLib.symbols.new |uniq -u >GLib.symbols.new2 && mv GLib.symbols.new2 GLib.symbols GObject.5D: GObject.sign $(FIND_5D_EXPORTS) GObject.sign >GObject.5D.new && mv GObject.5D.new GObject.5D GObject.sign: GObject.symbols prototypes GObject.override ../generateSignatures $< $(NATIVE_GOBJECT_LIB) g_ g:G GObject.override >GObject.sign.new && mv GObject.sign.new GObject.sign GObject.symbols: $(NATIVE_GOBJECT_LIB) GObject.obsoletes $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > GObject.symbols.new && cat GObject.obsoletes >>GObject.symbols.new && sort GObject.symbols.new |uniq -u >GObject.symbols.new2 && mv GObject.symbols.new2 GObject.symbols ifneq (,$(NATIVE_GIO_LIB)) GIO.5D: GIO.sign $(FIND_5D_EXPORTS) GIO.sign >GIO.5D.new && mv GIO.5D.new GIO.5D GIO.sign: GIO.symbols prototypes ../generateSignatures $< $(NATIVE_GIO_LIB) g_ g:gio >GIO.sign.new && mv GIO.sign.new GIO.sign GIO.symbols: $(NATIVE_GIO_LIB) $(EXTRACT_GNU_SYMBOLS) $< > GIO.symbols.new && mv GIO.symbols.new GIO.symbols else GIO.5D: ../dummy.5D cp ../dummy.5D GIO.5D endif clean: rm -f GLib.5D GLib.sign GLib.symbols rm -f GObject.5D GObject.sign GObject.symbols rm -f GIO.5D GIO.sign GIO.symbols rm -f GLib.symbols.new GObject.symbols.new distclean: clean install: install -m 755 -d $(DESTDIR)/usr/share/5D/GLib2 install -m 644 GLib.5D $(DESTDIR)/usr/share/5D/GLib2/GLib.5D install -m 644 GObject.5D $(DESTDIR)/usr/share/5D/GLib2/GObject.5D install -m 644 GIO.5D $(DESTDIR)/usr/share/5D/GLib2/GIO.5D install -m 644 init.5D $(DESTDIR)/usr/share/5D/GLib2/init.5D