blob: 5b2d1e6c3d3ac17dbfa046587215490da3265fff (
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
40
41
42
|
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,8 @@
include phoenix/Makefile
path := /usr/local/bin
-flags := -I. -O3 -fomit-frame-pointer
-link := -s
+flags := -I. $(CXXFLAGS)
+link := $(LDFLAGS)
objects := obj/phoenix.o obj/purify.o
ifeq ($(platform),x)
@@ -22,7 +22,7 @@
build: $(objects)
ifeq ($(platform),x)
- $(cpp) -pthread $(link) -o purify $(objects) $(phoenixlink)
+ $(cpp) $(flags) -pthread $(link) -o purify $(objects) $(phoenixlink)
else ifeq ($(platform),win)
windres phoenix/windows/phoenix.rc obj/phoenix-resource.o
$(cpp) -shared -o phoenix.dll obj/phoenix.o $(phoenixlink)
--- a/phoenix/Makefile
+++ b/phoenix/Makefile
@@ -4,13 +4,13 @@
endif
ifeq ($(phoenix),gtk)
- phoenixflags := -DPHOENIX_GTK `pkg-config --cflags gtk+-2.0`
- phoenixlink := `pkg-config --libs gtk+-2.0`
+ phoenixflags := -DPHOENIX_GTK `${PKG_CONFIG} --cflags gtk+-2.0 x11`
+ phoenixlink := `${PKG_CONFIG} --libs gtk+-2.0 x11` -ldl
endif
ifeq ($(phoenix),qt)
- phoenixflags := -DPHOENIX_QT `pkg-config --cflags QtCore QtGui`
- phoenixlink := `pkg-config --libs QtCore QtGui`
+ phoenixflags := -DPHOENIX_QT `${PKG_CONFIG} --cflags QtCore QtGui x11`
+ phoenixlink := `${PKG_CONFIG} --libs QtCore QtGui x11` -ldl
endif
else ifeq ($(platform),win)
phoenixflags := -DPHOENIX_WINDOWS
|