From 80e957b5d55e1deb7155333adbd51c3190a66374 Mon Sep 17 00:00:00 2001 From: bentley Date: Fri, 15 Jan 2010 18:55:34 -0700 Subject: [PATCH] make makefile respect CFLAGS --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7f4c64f5..cbf2d611 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ localversion = $(shell sh scripts/localversion.sh) -cflags = -Wall -Iinclude -Iinclude/asm/gameboy -DLOCALVERSION=\"$(localversion)\" -g -std=c99 -D_POSIX_C_SOURCE=200112L +CFLAGS+=-Wall -Iinclude -Iinclude/asm/gameboy -DLOCALVERSION=\"$(localversion)\" -g -std=c99 -D_POSIX_C_SOURCE=200112L all: @@ -50,19 +50,19 @@ clean: rm -rf src/asm/asmy.c rgbasm: $(rgbasm_obj) - ${CC} $(cflags) -o $@ $(rgbasm_obj) -lm + ${CC} $(CFLAGS) -o $@ $(rgbasm_obj) -lm rgblib: $(rgblib_obj) - ${CC} $(cflags) -o $@ $(rgblib_obj) + ${CC} $(CFLAGS) -o $@ $(rgblib_obj) rgblink: $(rgblink_obj) - ${CC} $(cflags) -o $@ $(rgblink_obj) + ${CC} $(CFLAGS) -o $@ $(rgblink_obj) rgbfix: $(rgbfix_obj) - ${CC} $(cflags) -o $@ $(rgbfix_obj) + ${CC} $(CFLAGS) -o $@ $(rgbfix_obj) .c.o: - ${CC} $(cflags) -c -o $@ $< + ${CC} $(CFLAGS) -c -o $@ $< src/asm/asmy.c: src/asm/asmy.y ${YACC} -d -o $@ $<