summaryrefslogtreecommitdiff
blob: 2c0185f3ff01ad37bef390ec675c89ab218e2985 (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
--- Makefile
+++ Makefile
@@ -26,8 +26,8 @@
 
 # makemake variables
 
-LINKER       := g++
-DEPENDFLAGS  := -g  ${SEARCHDIRS}
+LINKER = $(CXX) $(CXXFLAGS)
+DEPENDFLAGS  := ${SEARCHDIRS}
 TOUCHHEADERS := ${MYCODEDIR}/*.h
 
 # C
@@ -37,8 +37,8 @@
 
 # C++
 
-CXX      := g++
-CXXFLAGS  = ${DEPENDFLAGS} -O9 -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align
+CXX      ?= g++
+CXXFLAGS  += ${DEPENDFLAGS}
 
 %.o : %.cpp
 	${CXX} ${CPPFLAGS} -c $< ${CXXFLAGS} -o $@
@@ -66,7 +66,7 @@
     LOADLIBES := $(LOADLIBES) -lXpm -lXt
 endif
 
-LDFLAGS   = -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib 
+LDFLAGS   += -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib 
 
 .PHONY : default
 default : amph