blob: 8579ce878e7c2ae26468162a9445d7ab0f8366fe (
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
|
--- a/CommonHeader
+++ b/CommonHeader
@@ -22,18 +22,18 @@
NET = true
LD = ld
-CXX = g++
-CXXFLAGS= `sdl-config --cflags` -g -Wall -DAUDIO
+CXXFLAGS+= `sdl-config --cflags` -Wall
+CPPFLAGS+= -DAUDIO
ifndef NET
CXXFLAGS+= -DNONET
endif
ifdef NET
-LDFLAGS= `sdl-config --libs` -lSDL_image -lSDL_net -lm
+LDLIBS= `sdl-config --libs` -lSDL_image -lSDL_net -lm
else
-LDFLAGS= `sdl-config --libs` -lSDL_image -lm
+LDLIBS= `sdl-config --libs` -lSDL_image -lm
endif
SRCS = $(wildcard *.cpp)
--- a/Makefile.Linux
+++ b/Makefile.Linux
@@ -38,8 +38,7 @@
$(MAKE) -C $(@D:%_module.o=%)
gav: $(ALL_OBJ) $(OFILES)
- $(CXX) -o gav $(OFILES) $(ALL_OBJ) $(LDFLAGS)
- strip gav
+ $(CXX) $(LDFLAGS) -o gav $(OFILES) $(ALL_OBJ) $(LDLIBS)
clean:
for i in $(SUBDIRS) ; do \
|