summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2010-02-25 19:45:37 +0100
committerSegher Boessenkool <segher@kernel.crashing.org>2010-04-07 23:49:51 +0200
commit8d2bbbf0b6fd7ef356630b93d4c5fbacecc75afa (patch)
tree6e0e03a52eb33674ebf06fb9dc304fe6f3317b84 /Makefile
parenta9bd7b42eb7290b59b49476a718f1968881354b7 (diff)
OpenGL support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d5f114a..21be1a5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,14 @@
+# Build for what platform?
+PLATFORM := sdl
+
+# What video renderer?
+RENDER := gl
+#RENDER := soft
+
+
CC := gcc
CFLAGS := -std=gnu99 -Wall -W -O2 -g -Wmissing-declarations -ffast-math
+CFLAGS += -DRENDER_$(RENDER)
LDFLAGS := -g
# Build for what platform?
@@ -14,8 +23,8 @@ un-disas: un-disas.o disas.o
# The emulator.
uuu-$(PLATFORM): uuu-%: uuu-%.o platform-%.o \
- disas.o emu.o timer.o video.o audio.o io.o \
- i2c-bus.o i2c-eeprom.o \
+ disas.o emu.o timer.o video.o render.o render-$(RENDER).o \
+ audio.o io.o i2c-bus.o i2c-eeprom.o \
board.o board-VII.o board-WAL.o board-BAT.o board-V_X.o board-dummy.o
# SDL needs special compiler flags and some libraries.
@@ -49,7 +58,9 @@ endif
# Clean up.
.PHONY: clean
clean:
- rm -f un-disas un-disas.o disas.o emu.o timer.o video.o audio.o io.o
+ rm -f un-disas un-disas.o disas.o
+ rm -f emu.o timer.o video.o audio.o io.o
rm -f i2c-bus.o i2c-eeprom.o
rm -f board.o board-VII.o board-WAL.o board-BAT.o board-V_X.o board-dummy.o
+ rm -f render.o render-gl.o render-soft.o
rm -f uuu-sdl uuu-sdl.o platform-sdl.o dialog-cocoa.o