include ../settings.mk NATIVE_LIBEVENT2_LIB = $(shell ../findLib "libevent-2.0.so.5") all: init.5D a.out prototypes: a.c $(CC) -aux-info prototypes -o a.out a.c `pkg-config --cflags --libs libevent` init.5D: libevent2.sign $(FIND_5D_EXPORTS) libevent2.sign >libevent2.5D.new && mv libevent2.5D.new init.5D libevent2.sign: libevent2.symbols prototypes libevent2-types.defs ../generateSignatures $< $(NATIVE_LIBEVENT2_LIB) event_ g:Event >libevent2.sign.new && mv libevent2.sign.new libevent2.sign libevent2.symbols: $(NATIVE_LIBEVENT2_LIB) $(EXTRACT_GNU_SYMBOLS) $< > libevent2.symbols.new && mv libevent2.symbols.new libevent2.symbols clean: rm -f init.5D libevent2.sign distclean: clean rm -f libevent2.symbols install: install -m 755 -d $(DESTDIR)/usr/share/5D/libevent2 install -m 644 init.5D $(DESTDIR)/usr/share/5D/libevent2/init.5D