From 343579c0fa45a83b23f8d4cda54b309283046ef1 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sun, 21 Apr 2013 19:12:48 -0700 Subject: Improve color rendering accuracy and optimize SDL renderer a bit --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d849ff6..de4d32b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,9 @@ LIBS=sdl +ifdef DEBUG +CFLAGS=-ggdb -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type +else +CFLAGS=-O2 -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -Wreturn-type -Werror=return-type +endif all : dis trans stateview blastem @@ -30,7 +35,7 @@ gen_fib : gen_fib.o gen_x86.o mem.o $(CC) -c -o $@ $< %.o : %.c - $(CC) -ggdb -std=gnu99 `pkg-config --cflags-only-I $(LIBS)` -c -Wreturn-type -Werror=return-type -o $@ $< + $(CC) $(CFLAGS) -c -o $@ $< %.bin : %.s68 vasmm68k_mot -Fbin -m68000 -no-opt -spaces -o $@ $< -- cgit v1.2.3