Lines 1-6
Link Here
|
1 |
--- Makefile.orig 2015-12-08 12:42:11 UTC |
1 |
--- Makefile.orig 2016-04-30 03:53:03 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -71,7 +71,7 @@ |
3 |
@@ -72,7 +72,7 @@ |
4 |
# them; you can also ask for a package with convenience libraries instead -- |
4 |
# them; you can also ask for a package with convenience libraries instead -- |
5 |
# we'll try to provide them somewhere in the near future. |
5 |
# we'll try to provide them somewhere in the near future. |
6 |
|
6 |
|
Lines 9-15
Link Here
|
9 |
|
9 |
|
10 |
# Disable GNU Make implicit rules and variables. Leaving them enabled will slow |
10 |
# Disable GNU Make implicit rules and variables. Leaving them enabled will slow |
11 |
# down MinGW and Cygwin builds by a very VERY noticeable degree. Besides, we have |
11 |
# down MinGW and Cygwin builds by a very VERY noticeable degree. Besides, we have |
12 |
@@ -105,7 +105,7 @@ include Makefile.obj |
12 |
@@ -106,7 +106,7 @@ include Makefile.obj |
13 |
# Which C++ standard to support |
13 |
# Which C++ standard to support |
14 |
STDFLAG = -std=c++11 |
14 |
STDFLAG = -std=c++11 |
15 |
|
15 |
|
Lines 18-34
Link Here
|
18 |
CFWARN := |
18 |
CFWARN := |
19 |
CFWARN_L := -Wall -Wformat-security -Wundef |
19 |
CFWARN_L := -Wall -Wformat-security -Wundef |
20 |
|
20 |
|
21 |
@@ -114,7 +114,7 @@ DEFINES := $(EXTERNAL_DEFINES) |
21 |
@@ -121,8 +121,6 @@ endif |
22 |
ifdef ANDROID |
|
|
23 |
LDFLAGS := $(EXTERNAL_LDFLAGS) $(LDFLAGS) |
24 |
else |
25 |
-LDFLAGS := $(EXTERNAL_LDFLAGS) |
26 |
+# LDFLAGS := $(EXTERNAL_LDFLAGS) |
27 |
endif |
28 |
|
29 |
# |
22 |
# |
30 |
@@ -122,8 +122,6 @@ endif |
|
|
31 |
# |
32 |
AR = ar |
23 |
AR = ar |
33 |
RANLIB = ranlib |
24 |
RANLIB = ranlib |
34 |
-CC = $(GCC) |
25 |
-CC = $(GCC) |
Lines 36-42
Link Here
|
36 |
RM = rm -f |
27 |
RM = rm -f |
37 |
COPY = cp |
28 |
COPY = cp |
38 |
COPY_R = cp -r |
29 |
COPY_R = cp -r |
39 |
@@ -512,16 +510,6 @@ ifneq ($(GCC_VER),) |
30 |
@@ -511,16 +509,6 @@ ifneq ($(GCC_VER),) |
40 |
GCC_VER_SUFFIX:=-$(GCC_VER) |
31 |
GCC_VER_SUFFIX:=-$(GCC_VER) |
41 |
endif |
32 |
endif |
42 |
|
33 |
|
Lines 53-59
Link Here
|
53 |
ifneq ($(FORCE_CC),) |
44 |
ifneq ($(FORCE_CC),) |
54 |
GCC := $(FORCE_CC) |
45 |
GCC := $(FORCE_CC) |
55 |
HOSTCC := $(FORCE_CC) |
46 |
HOSTCC := $(FORCE_CC) |
56 |
@@ -575,15 +563,6 @@ ifdef USE_ICC |
47 |
@@ -574,15 +562,6 @@ ifdef USE_ICC |
57 |
|
48 |
|
58 |
# Some very good optimization flags. |
49 |
# Some very good optimization flags. |
59 |
CFOPTIMIZE := -O2 -parallel |
50 |
CFOPTIMIZE := -O2 -parallel |
Lines 69-82
Link Here
|
69 |
endif |
60 |
endif |
70 |
|
61 |
|
71 |
ifdef LTO |
62 |
ifdef LTO |
72 |
@@ -655,13 +634,13 @@ ifndef BUILD_LUA |
63 |
@@ -660,7 +639,7 @@ ifndef BUILD_LUA |
73 |
LUA_PACKAGE = lua-5.1 |
|
|
74 |
endif |
75 |
else |
76 |
- LUA_PACKAGE = lua5.1 |
77 |
+ LUA_PACKAGE = lua-5.1 |
78 |
endif |
79 |
endif |
80 |
endif |
64 |
endif |
81 |
ifndef BUILD_LUA |
65 |
ifndef BUILD_LUA |
82 |
ifndef LUA_PACKAGE |
66 |
ifndef LUA_PACKAGE |
Lines 85-91
Link Here
|
85 |
endif |
69 |
endif |
86 |
INCLUDES_L += $(shell $(PKGCONFIG) $(LUA_PACKAGE) --cflags-only-I | sed -e 's/-I/-isystem /') |
70 |
INCLUDES_L += $(shell $(PKGCONFIG) $(LUA_PACKAGE) --cflags-only-I | sed -e 's/-I/-isystem /') |
87 |
CFLAGS_L += $(shell $(PKGCONFIG) $(LUA_PACKAGE) --cflags-only-other) |
71 |
CFLAGS_L += $(shell $(PKGCONFIG) $(LUA_PACKAGE) --cflags-only-other) |
88 |
@@ -674,7 +653,7 @@ endif |
72 |
@@ -673,7 +652,7 @@ endif |
89 |
|
73 |
|
90 |
ifndef BUILD_SQLITE |
74 |
ifndef BUILD_SQLITE |
91 |
ifeq ($(shell grep -q sqlite3_prepare $(SQLITE_INCLUDE_DIR)/sqlite3.h 2>/dev/null && echo yes),yes) |
75 |
ifeq ($(shell grep -q sqlite3_prepare $(SQLITE_INCLUDE_DIR)/sqlite3.h 2>/dev/null && echo yes),yes) |
Lines 94-109
Link Here
|
94 |
LIBS += $(SQLITE_LIB) |
78 |
LIBS += $(SQLITE_LIB) |
95 |
ifneq ($(shell grep -q sqlite3_prepare_v2 $(SQLITE_INCLUDE_DIR)/sqlite3.h 2>/dev/null && echo yes),yes) |
79 |
ifneq ($(shell grep -q sqlite3_prepare_v2 $(SQLITE_INCLUDE_DIR)/sqlite3.h 2>/dev/null && echo yes),yes) |
96 |
DEFINES_L += -DANCIENT_SQLITE |
80 |
DEFINES_L += -DANCIENT_SQLITE |
97 |
@@ -762,7 +741,7 @@ endif |
81 |
@@ -830,7 +809,7 @@ ifndef NOWIZARD |
98 |
endif |
|
|
99 |
|
100 |
DEFINES_L += $(PNG_CFLAGS) $(FREETYPE_CFLAGS) $(SDL2_CFLAGS) |
101 |
-INCLUDES_L += $(PNG_INCLUDE) $(FREETYPE_INCLUDE) $(SDL2_INCLUDE) |
102 |
+INCLUDES_L += $(PNG_INCLUDE) $(FREETYPE_INCLUDE) $(SDL2_INCLUDE) $(GL_INCLUDE) |
103 |
|
104 |
endif # TILES |
105 |
|
106 |
@@ -831,7 +810,7 @@ ifndef NOWIZARD |
107 |
DEFINES += -DWIZARD |
82 |
DEFINES += -DWIZARD |
108 |
endif |
83 |
endif |
109 |
ifdef NO_OPTIMIZE |
84 |
ifdef NO_OPTIMIZE |
Lines 112-118
Link Here
|
112 |
endif |
87 |
endif |
113 |
|
88 |
|
114 |
ifdef PCH |
89 |
ifdef PCH |
115 |
@@ -958,7 +937,7 @@ else |
90 |
@@ -957,7 +936,7 @@ else |
116 |
SYS_PROPORTIONAL_FONT = $(shell { name=$(OUR_PROPORTIONAL_FONT);\ |
91 |
SYS_PROPORTIONAL_FONT = $(shell { name=$(OUR_PROPORTIONAL_FONT);\ |
117 |
{\ |
92 |
{\ |
118 |
fc-list | sed 's/: .*//' | grep -Fi "/$$name";\ |
93 |
fc-list | sed 's/: .*//' | grep -Fi "/$$name";\ |
Lines 121-127
Link Here
|
121 |
do [ -d $$dir ] && echo $$dir; done;\ |
96 |
do [ -d $$dir ] && echo $$dir; done;\ |
122 |
} | xargs -I% find % -type f -iname $$name -print | head -n1; } 2>/dev/null) |
97 |
} | xargs -I% find % -type f -iname $$name -print | head -n1; } 2>/dev/null) |
123 |
ifneq (,$(SYS_PROPORTIONAL_FONT)) |
98 |
ifneq (,$(SYS_PROPORTIONAL_FONT)) |
124 |
@@ -983,7 +962,7 @@ else |
99 |
@@ -982,7 +961,7 @@ else |
125 |
SYS_MONOSPACED_FONT = $(shell { name=$(OUR_MONOSPACED_FONT);\ |
100 |
SYS_MONOSPACED_FONT = $(shell { name=$(OUR_MONOSPACED_FONT);\ |
126 |
{\ |
101 |
{\ |
127 |
fc-list | sed 's/: .*//' | grep -Fi "/$$name";\ |
102 |
fc-list | sed 's/: .*//' | grep -Fi "/$$name";\ |
Lines 130-143
Link Here
|
130 |
do [ -d $$dir ] && echo $$dir; done;\ |
105 |
do [ -d $$dir ] && echo $$dir; done;\ |
131 |
} | xargs -I% find % -type f -iname $$name -print | head -n1; } 2>/dev/null) |
106 |
} | xargs -I% find % -type f -iname $$name -print | head -n1; } 2>/dev/null) |
132 |
ifneq (,$(SYS_MONOSPACED_FONT)) |
107 |
ifneq (,$(SYS_MONOSPACED_FONT)) |
133 |
@@ -1050,10 +1029,6 @@ CFWARN := -wd383,810,869,981,1418 -we14, |
|
|
134 |
CFWARN_L := |
135 |
endif |
136 |
|
137 |
-ifeq (,$(shell echo 'int main(){return 1;}'|$(GXX) -x c++ - -o /dev/null -fuse-ld=gold 2>&1)) |
138 |
- LDFLAGS += -fuse-ld=gold |
139 |
-endif |
140 |
- |
141 |
LDFLAGS += $(CFOPTIMIZE) $(CFOPTIMIZE_L) |
142 |
|
143 |
ifdef REPORT |