blob: 1a82fccf3ed28b943d9a08f151ebb8e13402cdc6 (
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
|
diff --git a/detok/Makefile b/detok/Makefile
index e7c7c04..284c509 100644
--- a/detok/Makefile
+++ b/detok/Makefile
@@ -29,8 +29,8 @@ STRIP = strip
INCLUDES = -I../shared
# Normal Flags:
-CFLAGS = -O2 -Wall -Wno-pointer-sign
-LDFLAGS =
+CFLAGS := $(CFLAGS) -Wall -Wno-pointer-sign
+LDFLAGS := $(LDFLAGS)
# Coverage:
#CFLAGS := $(CFLAGS) -fprofile-arcs -ftest-coverage
diff --git a/romheaders/Makefile b/romheaders/Makefile
index 3794aeb..c0ca9b5 100644
--- a/romheaders/Makefile
+++ b/romheaders/Makefile
@@ -22,7 +22,7 @@
#
CC = gcc
-CFLAGS= -O2 -Wall -W -ansi -I../shared
+CFLAGS := $(CFLAGS) -Wall -W -ansi -I../shared
SOURCES = romheaders.c ../shared/classcodes.c
@@ -31,7 +31,7 @@ SOURCES = romheaders.c ../shared/classcodes.c
all: romheaders
romheaders: $(SOURCES)
- $(CC) $(CFLAGS) $(SOURCES) -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $(CFLAGS) $(SOURCES) -o $@
strip romheaders
clean:
diff --git a/toke/Makefile b/toke/Makefile
index 14ae095..fa4b845 100644
--- a/toke/Makefile
+++ b/toke/Makefile
@@ -29,8 +29,8 @@ STRIP = strip
INCLUDES = -I../shared
# Normal flags
-CFLAGS = -O2 -Wall -Wno-pointer-sign -fno-strict-aliasing
-LDFLAGS =
+CFLAGS := $(CFLAGS) -Wall -Wno-pointer-sign -fno-strict-aliasing
+LDFLAGS := $(LDFLAGS)
# Coverage:
#CFLAGS := $(CFLAGS) -fprofile-arcs -ftest-coverage
|