summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/win32.mak21
1 files changed, 17 insertions, 4 deletions
diff --git a/firmware/win32.mak b/firmware/win32.mak
index d7280accf4..4be3d33170 100644
--- a/firmware/win32.mak
+++ b/firmware/win32.mak
@@ -16,14 +16,27 @@ OC = sh-elf-objcopy
INCLUDES=-Iinclude -I. -Icommon -Idrivers
# Pick a target to build for
-#TARGET = -DARCHOS_PLAYER=1
-#TARGET = -DARCHOS_PLAYER_OLD=1
-TARGET = -DARCHOS_RECORDER=1
+ifdef RECORDER
+ TARGET=-DARCHOS_RECORDER=1
+else
+ ifdef PLAYER
+ TARGET=-DARCHOS_PLAYER=1
+ else
+ ifdef PLAYER_OLD
+ TARGET=-DARCHOS_PLAYER_OLD=1
+ endif
+ endif
+endif
# store output files in this directory:
OBJDIR = .
-CFLAGS = -W -Wall -O -m1 -nostdlib -Wstrict-prototypes $(INCLUDES) $(TARGET) -DLCD_PROPFONTS
+# use propfonts?
+ifdef PROPFONTS
+ CFLAGS = -W -Wall -O -m1 -nostdlib -Wstrict-prototypes $(INCLUDES) $(TARGET) -DLCD_PROPFONTS
+else
+ CFLAGS = -W -Wall -O -m1 -nostdlib -Wstrict-prototypes $(INCLUDES) $(TARGET)
+endif
ifdef DEBUG
CFLAGS += -g -DDEBUG