include ../settings.mk NATIVE_GUDEV_LIB = $(shell ../findLib "libgudev-1.0.so.0") all: GUDev.5D GUDev.5D: GUDev.sign $(FIND_5D_EXPORTS) GUDev.sign >GUDev.5D.new && mv GUDev.5D.new GUDev.5D GUDev.sign: GUDev.symbols prototypes GUDev.override ../generateSignatures $< $(NATIVE_GUDEV_LIB) g_udev_ g:GUdev GUDev.override >GUDev.sign.new && mv GUDev.sign.new GUDev.sign GUDev.symbols: $(NATIVE_GUDEV_LIB) GUDev.obsoletes $(EXTRACT_GNU_SYMBOLS) $< |sort |uniq > GUDev.symbols.new && cat GUDev.obsoletes >>GUDev.symbols.new && sort GUDev.symbols.new |uniq -u >GUDev.symbols.new2 && mv GUDev.symbols.new2 GUDev.symbols prototypes a.out: a.c $(CC) -aux-info prototypes -o a.out a.c `pkg-config --cflags --libs gudev-1.0` clean: rm -f GUDev.5D GUDev.sign GUDev.symbols rm -f a.out prototypes distclean: clean install: install -m 755 -d $(DESTDIR)/usr/share/5D/udev165 install -m 644 GUDev.5D $(DESTDIR)/usr/share/5D/udev165/GUDev.5D install -m 644 init.5D $(DESTDIR)/usr/share/5D/udev165/init.5D