include ../settings.mk NATIVE_TELEPATHY_GLIB_LIB = $(shell ../findLib "libtelepathy-glib.so.0") all: TelepathyGLib.5D a.out prototypes: a.c $(CC) -aux-info prototypes.new -o a.out a.c `pkg-config --cflags --libs telepathy-glib` && mv prototypes.new prototypes ifneq (,$(NATIVE_TELEPATHY_GLIB_LIB)) TelepathyGLib.5D: TelepathyGLib.sign $(FIND_5D_EXPORTS) TelepathyGLib.sign >TelepathyGLib.5D.new && mv TelepathyGLib.5D.new TelepathyGLib.5D TelepathyGLib.sign: TelepathyGLib.symbols prototypes ../generateSignatures $< $(NATIVE_TELEPATHY_GLIB_LIB) tp_ >TelepathyGLib.sign.new && mv TelepathyGLib.sign.new TelepathyGLib.sign TelepathyGLib.symbols: $(NATIVE_TELEPATHY_GLIB_LIB) $(EXTRACT_GNU_SYMBOLS) $< > TelepathyGLib.symbols.new && mv TelepathyGLib.symbols.new TelepathyGLib.symbols else TelepathyGLib.5D: ../dummy.5D cp ../dummy.5D TelepathyGLib.5D endif clean: rm -f TelepathyGLib.5D TelepathyGLib.sign Telepathy.5D Telepathy.sign a.out prototypes.new distclean: clean rm -f prototypes install: install -m 755 -d $(DESTDIR)/usr/share/5D/Telepathy0 install -m 644 init.5D $(DESTDIR)/usr/share/5D/Telepathy0/init.5D install -m 644 TelepathyGLib.5D $(DESTDIR)/usr/share/5D/Telepathy0/TelepathyGLib.5D