diff Makefile @ 229:d60837a7d18a

Improve color rendering accuracy and optimize SDL renderer a bit
author Mike Pavone <pavone@retrodev.com>
date Sun, 21 Apr 2013 19:12:48 -0700
parents 3457dc6fd558
children d9bf8e61c33c
line wrap: on
line diff
--- a/Makefile	Sun Apr 21 16:44:46 2013 -0700
+++ b/Makefile	Sun Apr 21 19:12:48 2013 -0700
@@ -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 @@
 	$(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 $@ $<