diff options
| author | Felix Arends <edx@rockbox.org> | 2002-09-07 19:49:22 +0000 |
|---|---|---|
| committer | Felix Arends <edx@rockbox.org> | 2002-09-07 19:49:22 +0000 |
| commit | f77b810d2e82de65792f550fab2e8bee6b2b95be (patch) | |
| tree | fec50a8bf62b217e95a293bc3567ad0b3eef1807 | |
| parent | 361546dfb7b5eefd393bec0ff2af103cc13f04b9 (diff) | |
| download | rockbox-f77b810d2e82de65792f550fab2e8bee6b2b95be.zip rockbox-f77b810d2e82de65792f550fab2e8bee6b2b95be.tar.gz rockbox-f77b810d2e82de65792f550fab2e8bee6b2b95be.tar.bz2 rockbox-f77b810d2e82de65792f550fab2e8bee6b2b95be.tar.xz | |
a new firmware makefile for windows (GNUSH) supporting DISABLE_GAMES and different targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2228 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/win32.mak | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/firmware/win32.mak b/firmware/win32.mak index d7280ac..4be3d33 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 |