blob: e5862bf4f8aa61c7824a0aeb2eef1485a2af1fc4 (
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
|
srcdir = .
REALCFLAGS = -Wall $(CFLAGS) -fPIC
.SUFFIXES:
.SUFFIXES: .cpp .o
all: obj/libKPL.so obj/KPLUnixStarter
run: obj/libKPL.so obj/KPLUnixStarter
LD_LIBRARY_PATH=obj ./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
|