blob: 996767e5b43dcd7a34a208279db72e5c3734606c (
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
|
diff -ru virtualjaguar-1.0.7-src.orig/Makefile virtualjaguar-1.0.7-src/Makefile
--- virtualjaguar-1.0.7-src.orig/Makefile 2004-04-18 18:09:14.000000000 -0400
+++ virtualjaguar-1.0.7-src/Makefile 2010-10-13 13:09:31.889211820 -0400
@@ -6,23 +6,18 @@
# easier for the maintainers. :-)
#
-CC = gcc
-LD = gcc
TARGET = vj$(EXESUFFIX)
# Note that we use optimization level 2 instead of 3--3 doesn't seem to gain much over 2
-CFLAGS = -Wall -Wno-switch -Wno-non-virtual-dtor -O2 -D$(SYSTYPE) \
- -ffast-math -fomit-frame-pointer `sdl-config --cflags`
-# -fomit-frame-pointer `sdl-config --cflags` -g
-# -fomit-frame-pointer `sdl-config --cflags` -DLOG_UNMAPPED_MEMORY_ACCESSES
-
-LDFLAGS =
+CFLAGS += -Wall -Wno-switch -D$(SYSTYPE) `sdl-config --cflags`
+CXXFLAGS += -Wall -Wno-switch -Wno-non-virtual-dtor -D$(SYSTYPE) `sdl-config --cflags`
LIBS = -L/usr/local/lib -L/usr/lib `sdl-config $(SDLLIBTYPE)` -lstdc++ -lz $(GLLIB)
INCS = -I. -Isrc -Isrc/include -I/usr/local/include -I/usr/include
THECC = $(CC) $(CFLAGS) $(INCS)
+THECXX = $(CXX) $(CXXFLAGS) $(INCS)
OBJS = \
obj/anajoy.o \
@@ -70,16 +65,16 @@
$(THECC) -c $< -o $@
obj/%.o: src/%.cpp src/include/%.h
- $(THECC) -c $< -o $@
+ $(THECXX) -c $< -o $@
obj/%.o: src/%.c
$(THECC) -c $< -o $@
obj/%.o: src/%.cpp
- $(THECC) -c $< -o $@
+ $(THECXX) -c $< -o $@
$(TARGET): $(OBJS)
- $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
+ $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
# strip --strip-all vj$(EXESUFFIX)
# upx -9 vj$(EXESUFFIX)
|