-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (39 loc) · 1.67 KB
/
Makefile
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
40
41
42
43
44
45
46
47
48
49
50
51
print-%: ; @echo $*=$($*)
CPPFLAGS=-g -fPIC -O2 -std=c++11 -Wall -DDEBUG `pkg-config gtk+-2.0 --cflags`
LDLIBS=-L. -Wl,-rpath,. \
-lgui -ldl_facto -lbrowser -ldlder -lconfig \
-lpthread -lcurl -lsqlite3 `pkg-config gtk+-2.0 --cflags` `pkg-config gtk+-2.0 --libs`
SRC=testing6.cpp
OUT=mgdl
OUT_O=test.o
RM=rm -f
all: browser.so dlder.so dl_facto.so gui.so config.so
g++ $(CPPFLAGS) $(SRC) -c -o $(OUT_O)
g++ $(OUT_O) $(LDLIBS) -o $(OUT)
browser.so: manager/browser/browser.cpp
g++ $(CPPFLAGS) manager/browser/browser.cpp -c -o browser.o
g++ -shared -fPIC -o libbrowser.so browser.o
dlder.so: manager/dlder/dlder.cpp
g++ $(CPPFLAGS) manager/dlder/dlder.cpp -c -o dlder.o
g++ -shared -fPIC -o libdlder.so dlder.o
mgreader.o: manager/dlder/provider/mgreader.cpp
g++ $(CPPFLAGS) manager/dlder/provider/mgreader.cpp -c -o mgreader.o
webtoons.o: manager/dlder/provider/webtoons.cpp
g++ $(CPPFLAGS) manager/dlder/provider/webtoons.cpp -c -o webtoons.o
mgpark.o: manager/dlder/provider/mgpark.cpp
g++ $(CPPFLAGS) manager/dlder/provider/mgpark.cpp -c -o mgpark.o
mgfox.o: manager/dlder/provider/mgfox.cpp
g++ $(CPPFLAGS) manager/dlder/provider/mgfox.cpp -c -o mgfox.o
dl_facto.so: webtoons.o mgreader.o mgpark.o mgfox.o manager/dlder/dl_facto.cpp
g++ $(CPPFLAGS) manager/dlder/dl_facto.cpp -c -o dl_facto.o
g++ -shared -fPIC -o libdl_facto.so dl_facto.o mgfox.o webtoons.o mgreader.o mgpark.o
gui.so: manager/gui/gui.cpp
g++ $(CPPFLAGS) manager/gui/gui.cpp -c -o gui.o
g++ -shared -fPIC -o libgui.so gui.o
config.so: manager/cfg/config.cpp
g++ $(CPPFLAGS) manager/cfg/config.cpp -c -o config.o
g++ -shared -fPIC -o libconfig.so config.o
clean:
$(RM) *.o
$(RM) *.so
$(RM) $(OUT)