summarylogtreecommitdiffstats
path: root/fix-flags.patch
blob: 1ffe111e77b09e7301e7faad1b9aa9c2ab52e5f6 (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 --git a/detok/Makefile b/detok/Makefile
index 235966a..9c6cdd1 100644
--- a/detok/Makefile
+++ b/detok/Makefile
@@ -30,8 +30,7 @@ STRIP	= strip
 INCLUDES = -I../shared
 
 # Normal Flags:
-CFLAGS  = -O2 -Wall #-Wextra
-LDFLAGS = 
+CFLAGS  := $(CFLAGS) -Wall
 
 # Coverage:
 #CFLAGS  := $(CFLAGS) -fprofile-arcs -ftest-coverage
diff --git a/romheaders/Makefile b/romheaders/Makefile
index cdb3d51..bdfa227 100644
--- a/romheaders/Makefile
+++ b/romheaders/Makefile
@@ -27,7 +27,7 @@ PROGRAM = romheaders
 DESTDIR  = /usr/local
 CC	 ?= gcc
 STRIP    = strip
-CFLAGS   = -O2 -Wall -Wextra
+CFLAGS   := $(CFLAGS) -Wall -Wextra
 INCLUDES = -I../shared
 
 SOURCES = romheaders.c ../shared/classcodes.c
@@ -37,7 +37,7 @@ SOURCES = romheaders.c ../shared/classcodes.c
 all: romheaders
 
 romheaders: $(SOURCES)
-	$(CC) $(CFLAGS) $(INCLUDES) $(SOURCES) -o $@
+	$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) $(SOURCES) -o $@
 	$(STRIP) romheaders
 
 clean:
diff --git a/toke/Makefile b/toke/Makefile
index 0b9c928..0928d13 100644
--- a/toke/Makefile
+++ b/toke/Makefile
@@ -30,8 +30,7 @@ STRIP	= strip
 INCLUDES = -I../shared
 
 # Normal flags
-CFLAGS  = -O2 -Wall #-Wextra 
-LDFLAGS =
+CFLAGS  := $(CFLAGS) -Wall
 
 # Coverage:
 #CFLAGS  := $(CFLAGS) -fprofile-arcs -ftest-coverage