include ../settings.mk NATIVE_PANGO_LIB = $(shell ../findLib "libpango-1.0.so.0") all: Pango.5D Pango.5D: Pango.sign $(FIND_5D_EXPORTS) Pango.sign >Pango.5D.new && mv Pango.5D.new Pango.5D Pango.sign: Pango.symbols prototypes ../generateSignatures $< $(NATIVE_PANGO_LIB) pango_ g:Pango >Pango.sign.new && mv Pango.sign.new Pango.sign Pango.symbols: $(NATIVE_PANGO_LIB) $(EXTRACT_GNU_SYMBOLS) $< > Pango.symbols.new && mv Pango.symbols.new Pango.symbols prototypes a.out: a.c $(CC) -aux-info prototypes -o a.out a.c `pkg-config --cflags --libs pango` clean: rm -f GTK.5D GTK.sign rm -f Pango.5D Pango.sign a.out prototypes distclean: clean getEnums: cat /usr/share/pygtk/2.0/defs/pango-types.defs |grep -C 2 -- "-enum" |grep c-name |sed 's;^ (c-name ;;' |sed 's;)$$;;' | sed 's;\(.*\); \1: "enum",;' getFlags: cat /usr/share/pygtk/2.0/defs/pango-types.defs |grep -C 2 -- "-flags" |grep c-name |sed 's;^ (c-name ;;' |sed 's;)$$;;' | sed 's;\(.*\); \1: "flags",;' install: install -m 755 -d $(DESTDIR)/usr/share/5D/Pango1 install -m 644 Pango.5D $(DESTDIR)/usr/share/5D/Pango1/init.5D