summaryrefslogtreecommitdiff
blob: d6294e1121831896d213f3c91ad3c5829d71e6f8 (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
--- pre.mk
+++ pre.mk
@@ -147,14 +147,14 @@
 endif
 
 # set base program pointers and flags
-CC      = gcc
-CXX     = g++
-LD      = g++
+CC      ?= gcc
+CXX     ?= g++
+LD      = $(CXX)
 ifeq ($(OS),LINUX)
-STRIP	= strip -s
+STRIP	= true
 endif
 ifeq ($(OS),OSX)
-STRIP	= strip -x 
+STRIP	= true
 endif
 RM      = rm
 RM_F    = rm -f
@@ -185,19 +185,11 @@
 endif
 
 # set base CFLAGS and LDFLAGS
-CFLAGS += -pipe -O3 -ffast-math -funroll-loops -fexpensive-optimizations -fno-strict-aliasing
+CFLAGS += -fno-strict-aliasing
 CORE_LDFLAGS += -lz -lm -lpng -lfreetype -ldl
 
 # set special flags per-system
 ifeq ($(CPU), X86)
-  ifeq ($(ARCH), 64BITS)
-    CFLAGS += -march=athlon64
-  else
-    CFLAGS += -march=i686 -mtune=pentium-m -mmmx -msse
-    ifneq ($(PROFILE), 1)
-      CFLAGS += -fomit-frame-pointer
-    endif
-  endif
   # tweak flags for 32-bit build on 64-bit system
   ifeq ($(ARCH), 64BITS_32)
     CFLAGS += -m32
@@ -205,7 +197,7 @@
   endif
 endif
 ifeq ($(CPU), PPC)
-  CFLAGS += -mcpu=powerpc -D_BIG_ENDIAN
+  CFLAGS += -D_BIG_ENDIAN
 endif
 
 # set CFLAGS, LIBS, and LDFLAGS for external dependencies