blob: f052cef41d156e864cd531168e8ff56fda4611e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
srcdir = .
REALCFLAGS = -Wall $(CFLAGS) -fPIC
.SUFFIXES:
.SUFFIXES: .cpp .o
all: obj/libKPL.so obj/KPLUnixStarter obj/gtk_kpl.ui
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) -Wl,--export-dynamic -o $@ obj/KPLUnixStarter.o -L./obj -lKPL `pkg-config --libs gtk+-2.0`
obj/KPLUnixStarter.o: KPLUnixStarter.c
gcc $(REALCFLAGS) -Wl,--export-dynamic `pkg-config --cflags gtk+-2.0 gmodule-export-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 obj/*.ico obj/*.ui obj/KPLUnixStarter
dist: obj/libKPL.so obj/KPLUnixStarter
strip obj/libKPL.so
strip obj/KPLUnixStarter
.PHONEY: clean
|