summaryrefslogtreecommitdiff
path: root/games-action/blackvoxel/files/blackvoxel-2.50-makefile.patch
blob: 5f21cb744e360bcf962515be52ae9739ebea72d2 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
https://bugs.gentoo.org/887667
Respect user FLAGS.
diff --git a/Makefile b/Makefile2
index 3e5933a..c8787d8 100644
--- a/Makefile
+++ b/Makefile
@@ -64,19 +64,19 @@
   KERNELNAME =$(shell uname -s)
 
   ifeq ($(KERNELNAME),Linux)
-    CXXFLAGS+= -O3 -c -fmessage-length=0
-    LDFLAGS+=-s -zrelro -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
+    CXXFLAGS+= -c
+    LDFLAGS+= -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
   else ifeq ($(KERNELNAME), FreeBSD)
     # To be done...
-    CXXFLAGS+= -O3 -c -fmessage-length=0
-    LDFLAGS+=-s -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
+    CXXFLAGS+= -c
+    LDFLAGS+= -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
   else ifeq ($(KERNELNAME), Darwin)
-    CXXFLAGS+= -O3 -c -fmessage-length=0
-    LDFLAGS+=-s -L"src/sc_Squirrel3/lib" -L"/usr/local/Cellar/glew" -L"/usr/local/Cellar/sdl" -I"/usr/local/Cellar/glew" -I"/usr/local/Cellar/sdl" -framework Cocoa -framework OpenGL -lSDLmain -lSDL -lGLEW -lsquirrel -lsqstdlib
+    CXXFLAGS+= -c
+    LDFLAGS+= -L"src/sc_Squirrel3/lib" -L"/usr/local/Cellar/glew" -L"/usr/local/Cellar/sdl" -I"/usr/local/Cellar/glew" -I"/usr/local/Cellar/sdl" -framework Cocoa -framework OpenGL -lSDLmain -lSDL -lGLEW -lsquirrel -lsqstdlib
   else
     # Unknow kernel... trying default flags
-    CXXFLAGS+= -O3 -c -fmessage-length=0
-    LDFLAGS+=-s -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
+    CXXFLAGS+= -c
+    LDFLAGS+= -L"src/sc_Squirrel3/lib" -lGLU -lSDL -lGLEW -lGL -lsquirrel -lsqstdlib
   endif
 endif
 
@@ -94,11 +94,11 @@
 installable: all
 
 squirrel: 
-	cd src/sc_Squirrel3 ; $(MAKE) sq$(CPU_BITS)
+	$(MAKE) -C src/sc_Squirrel3  sq$(CPU_BITS)
 
 clean:
 	@rm -rf obj
-	@cd src/sc_Squirrel3 ; $(MAKE) clean
+	@$(MAKE) -C src/sc_Squirrel3  clean
 	@rm -f $(PROGNAME)
 
 mrproper: clean
diff --git a/src/sc_Squirrel3/Makefile b/src/sc_Squirrel3/Makefile
index 8bc76c8..fb396eb 100644
--- a/src/sc_Squirrel3/Makefile
+++ b/src/sc_Squirrel3/Makefile
@@ -2,33 +2,33 @@
 SQUIRREL=.
 
 sq32:
-	cd squirrel; $(MAKE) 
-	cd sqstdlib; $(MAKE) 
-	cd sq; $(MAKE) 
+	$(MAKE) -C squirrel 
+	$(MAKE) -C sqstdlib 
+	$(MAKE) -C sq 
 
 sqprof:
-	cd squirrel; $(MAKE) sqprof
-	cd sqstdlib; $(MAKE) sqprof
-	cd sq; $(MAKE) sqprof
+	$(MAKE) -C squirrel sqprof
+	$(MAKE) -C sqstdlib sqprof
+	$(MAKE) -C sq sqprof
 
 sq64:
-	cd squirrel; $(MAKE) sq64
-	cd sqstdlib; $(MAKE) sq64
-	cd sq; $(MAKE) sq64
+	$(MAKE) -C squirrel sq64
+	$(MAKE) -C sqstdlib sq64
+	$(MAKE) -C sq sq64
 	
 sq64d:
-	cd squirrel; $(MAKE) sq64d
-	cd sqstdlib; $(MAKE) sq64d
-	cd sq; $(MAKE) sq64d
+	$(MAKE) -C squirrel sq64d
+	$(MAKE) -C sqstdlib sq64d
+	$(MAKE) -C sq sq64d
 
 .PHONY: clean mrproper
 
 clean:
-	cd squirrel; $(MAKE) clean
-	cd sqstdlib; $(MAKE) clean
-	cd sq; $(MAKE) clean
+	$(MAKE) -C squirrel clean
+	$(MAKE) -C sqstdlib clean
+	$(MAKE) -C sq clean
 
 mrproper:
-	cd squirrel; $(MAKE) mrproper
-	cd sqstdlib; $(MAKE) mrproper
-	cd sq; $(MAKE) mrproper
+	$(MAKE) -C squirrel mrproper
+	$(MAKE) -C sqstdlib mrproper
+	$(MAKE) -C sq mrproper
diff --git a/src/sc_Squirrel3/sq/Makefile b/src/sc_Squirrel3/sq/Makefile
index 08fb2ef..8cc1cbc 100644
--- a/src/sc_Squirrel3/sq/Makefile
+++ b/src/sc_Squirrel3/sq/Makefile
@@ -12,13 +12,13 @@ SRCS= sq.c
 	
 	
 sq32:
-	$(CXX) -O2 -s -fno-exceptions -fno-rtti -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
+	$(CXX) -fno-exceptions -fno-rtti -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
 
 sqprof:
 	$(CXX) -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
 	
 sq64:
-	$(CXX) -O2 -s -m64 -fno-exceptions -fno-rtti -D_SQ64 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
+	$(CXX) -m64 -fno-exceptions -fno-rtti -D_SQ64 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
 	
 sq64d:
 	$(CXX) -O0 -g3 -m64 -fno-exceptions -fno-rtti -D_SQ64 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
diff --git a/src/sc_Squirrel3/sqstdlib/Makefile b/src/sc_Squirrel3/sqstdlib/Makefile
index 41ee3f7..7b74586 100644
--- a/src/sc_Squirrel3/sqstdlib/Makefile
+++ b/src/sc_Squirrel3/sqstdlib/Makefile
@@ -26,7 +26,7 @@ SRCS= \
 	
 	
 sq32:
-	$(CC) -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
+	$(CC) -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
 	$(AR) rc $(OUT) *.o
 	rm *.o
 
@@ -36,7 +36,7 @@ sqprof:
 	rm *.o
 	
 sq64:
-	$(CC) -O2 -m64 -fno-exceptions -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
+	$(CC) -m64 -fno-exceptions -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
 	$(AR) rc $(OUT) *.o
 	rm *.o
 	
diff --git a/src/sc_Squirrel3/squirrel/Makefile b/src/sc_Squirrel3/squirrel/Makefile
index be2c281..30bc48b 100644
--- a/src/sc_Squirrel3/squirrel/Makefile
+++ b/src/sc_Squirrel3/squirrel/Makefile
@@ -37,7 +37,7 @@ SRCS= \
 	
 	
 sq32:
-	$(CC) -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
+	$(CC) -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
 	$(AR) rc $(OUT) *.o
 	rm *.o
 
@@ -47,7 +47,7 @@ sqprof:
 	rm *.o
 
 sq64:
-	$(CC) -O2 -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
+	$(CC) -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
 	$(AR) rc $(OUT) *.o
 	rm *.o