diff options
author | Eric Anderson <ejona86@gmail.com> | 2009-05-02 11:17:18 -0500 |
---|---|---|
committer | Eric Anderson <ejona86@gmail.com> | 2009-05-02 11:17:18 -0500 |
commit | e9c0705d2ca8f9c718e0531953af96b58f58d8a3 (patch) | |
tree | aaba9a727055a269baa9cc47174878fdb1d5f65f /Makefile | |
parent | 667f7811083b6f7e59f5ea65c78efd6b0adccbb4 (diff) | |
download | kpl-e9c0705d2ca8f9c718e0531953af96b58f58d8a3.tar.gz kpl-e9c0705d2ca8f9c718e0531953af96b58f58d8a3.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -4,19 +4,23 @@ REALCFLAGS = -Wall $(CFLAGS) -fPIC .SUFFIXES: .SUFFIXES: .cpp .o -all: obj/libKPL.so obj/KPLUnixStarter +all: obj/libKPL.so obj/KPLUnixStarter obj/gtk_kpl.ui -run: obj/libKPL.so obj/KPLUnixStarter +run: all LD_LIBRARY_PATH=obj ./obj/KPLUnixStarter +obj/gtk_kpl.ui: gtk_kpl.glade + gtk-builder-convert $< $@ + cp icons/*.ico obj/ + obj/libKPL.so: obj/GenerateScript.o obj/ColorSpacesConversions.o obj/KPLFillModSpecific.o obj/KPLTypes.o obj/WriteScript.o obj/KPL_Start.o g++ $(REALCFLAGS) -shared -o $@ $^ obj/KPLUnixStarter: obj/KPLUnixStarter.o obj/libKPL.so - gcc $(REALCFLAGS) -o $@ obj/KPLUnixStarter.o -L./obj -lKPL `pkg-config --libs gtk+-2.0` + gcc $(REALCFLAGS) -Wl,--export-dynamic -o $@ obj/KPLUnixStarter.o -L./obj -lKPL `pkg-config --libs gtk+-2.0` obj/KPLUnixStarter.o: KPLUnixStarter.c - gcc $(REALCFLAGS) `pkg-config --cflags gtk+-2.0` -c -o $@ $< + gcc $(REALCFLAGS) -Wl,--export-dynamic `pkg-config --cflags gtk+-2.0 gmodule-export-2.0` -c -o $@ $< obj/%.o: %.c gcc $(REALCFLAGS) -c -o $@ $< @@ -25,7 +29,7 @@ obj/%.o: %.cpp g++ $(REALCFLAGS) -c -o $@ $< clean: - rm -f obj/*.o obj/*.so + rm -f obj/*.o obj/*.so obj/*.ico obj/*.ui obj/KPLUnixStarter dist: obj/libKPL.so obj/KPLUnixStarter strip obj/libKPL.so |