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
|
--- VAAL.orig/Makefile.in 2009-04-02 21:43:42.000000000 +0200
+++ VAAL/Makefile.in 2010-02-14 14:20:26.222370302 +0100
@@ -161,12 +161,16 @@
COMPILER = @CC@
CPLUSPLUS = @CXX@
+CFLAGS = @CFLAGS@
+CXXFLAGS = @CXXFLAGS@
+LDFLAGS = @LDFLAGS@
+
# QUIET=yes causes the compiler to be less verbose about warnings.
QUIET = no
# DEBUG=yes forces out-of-date executables to be built with symbolic
# debugging information. Any other value is ignored.
-DEBUG = yes
+DEBUG = no
# OPTIM=<compiler optimization> forces user-defined optimizations to be used,
# rather than the compiler-specific default.
@@ -174,7 +178,7 @@
# If OPTIM=none, then no optimization is used.
# If unset, defaults are used.
# -fno-exceptions
-OPTIM =
+OPTIM = none
# PROFILE=yes builds sampled-profiling (i.e. gprof) executables. Any other
# value is ignored.
@@ -317,6 +321,7 @@
# Setup final compilation options:
CPP_OPTIONS = \
+ $(CXXFLAGS) \
$(SYS_WARN) \
$(SYS_OPT) \
$(SYS_DEBUG) \
@@ -328,6 +333,7 @@
@INCLUDES@
LINK_OPTIONS = \
+ $(LDFLAGS) \
$(SYS_DEBUG) \
$(SYS_LINK) \
$(OMP_LINK) \
@@ -406,12 +406,12 @@
$(CPLUSPLUS) $(CPPO) $(CPPC) $(SYS_LANG) $(MAKEDEPEND_OPTS) -o $(BIN)/MakeDepend $(SRC)/MakeDepend.cc
checkLock: $(SRC)/util/checkLock.cc
- $(CPLUSPLUS) $(SRC)/util/checkLock.cc -o $(BIN)/checkLock
+ $(CPLUSPLUS) $(CXXFLAGS) $(SRC)/util/checkLock.cc $(LDFLAGS) -o $(BIN)/checkLock
random/Random.o: random/Random.cc
@ mkdir -p $(OBJ)/${@D}
cp $(SRC)/random/Random.cc $(SRC)/random/Random.c
- $(CC) $(SYS_LANG) -c $(SRC)/random/Random.cc -w -Drandom=randomx -Dsrandom=srandomx -o $(OBJ)/random/Random.o
+ $(CC) $(CFLAGS) $(SYS_LANG) -c $(SRC)/random/Random.cc -w -Drandom=randomx -Dsrandom=srandomx -o $(OBJ)/random/Random.o
rm $(SRC)/random/Random.c
MemTracker.o: MemTracker.cc
|