summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-04-21 19:12:48 -0700
committerMike Pavone <pavone@retrodev.com>2013-04-21 19:12:48 -0700
commit343579c0fa45a83b23f8d4cda54b309283046ef1 (patch)
treeb289ed404c29a9657d8ae7426a6c815ab5c2eefb /Makefile
parent823288d1d0fd99e54b1cde0c975916a5f1030025 (diff)
Improve color rendering accuracy and optimize SDL renderer a bit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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 $@ $<