ref: 98810091dadae2f674fa2b9f3ba59756858198af
parent: f81bcc722a9a4d335068e1f122f51b8b188ace40
author: Vegard Nossum <[email protected]>
date: Thu Jun 11 06:10:12 EDT 2009
build: split cflags to its own variable Signed-off-by: Vegard Nossum <[email protected]>
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+cflags = -Wall -Iinclude -Iinclude/asm/gameboy -g
+
all:
rgbasm_obj := \
@@ -39,19 +41,19 @@
rm -rf rgbfix $(rgbfix_obj)
rgbasm: $(rgbasm_obj)
- gcc -Wall -o $@ $^ -lm
+ gcc $(cflags) -o $@ $^ -lm
xlib: $(xlib_obj)
- gcc -Wall -o $@ $^
+ gcc $(cflags) -o $@ $^
xlink: $(xlink_obj)
- gcc -Wall -o $@ $^
+ gcc $(cflags) -o $@ $^
rgbfix: $(rgbfix_obj)
- gcc -Wall -o $@ $^
+ gcc $(cflags) -o $@ $^
.c.o:
- gcc -Wall -DGAMEBOY -Iinclude -Iinclude/asm/gameboy -g -c -o $@ $<
+ gcc $(cflags) -DGAMEBOY -c -o $@ $<
.y.c:
bison -d -o $@ $^