diff options
author | Eric Anderson <ejona86@gmail.com> | 2009-05-01 17:18:21 -0500 |
---|---|---|
committer | Eric Anderson <ejona86@gmail.com> | 2009-05-01 17:18:21 -0500 |
commit | ae8bd57cad0273c04e89fc2c267c655c4cb349c3 (patch) | |
tree | 9a1c9d70aea0f1d5f4fd464af9327c05038f39d5 /Makefile | |
parent | 663d9336324110648ffdea7c7092a004353419b5 (diff) | |
download | kpl-ae8bd57cad0273c04e89fc2c267c655c4cb349c3.tar.gz kpl-ae8bd57cad0273c04e89fc2c267c655c4cb349c3.zip |
Get existing KPL code to compile and run under Linux. Start work on GTK+
KPL GUI.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..320179f --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +srcdir = . +REALCFLAGS = $(CFLAGS) -fPIC + +.SUFFIXES: +.SUFFIXES: .cpp .o + +all: obj/libKPL.so obj/KPLUnixStarter + +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` + +obj/KPLUnixStarter.o: KPLUnixStarter.c + gcc $(REALCFLAGS) `pkg-config --cflags gtk+-2.0` -c -o $@ $< + +obj/%.o: %.c + gcc $(REALCFLAGS) -c -o $@ $< + +obj/%.o: %.cpp + g++ $(REALCFLAGS) -c -o $@ $< + +clean: + rm -f obj/*.o obj/*.so + +dist: obj/libKPL.so obj/KPLUnixStarter + strip obj/libKPL.so + strip obj/KPLUnixStarter + +.PHONEY: clean + |