diff options
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 + |