summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/Makefile')
-rw-r--r--apps/plugins/doom/Makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/apps/plugins/doom/Makefile b/apps/plugins/doom/Makefile
index f0e858a393..538d57720c 100644
--- a/apps/plugins/doom/Makefile
+++ b/apps/plugins/doom/Makefile
@@ -3,7 +3,10 @@
3# $Id$ 3# $Id$
4# 4#
5# $Log$ 5# $Log$
6# Revision 1.10 2006/10/27 21:47:55 amiconn 6# Revision 1.11 2006/12/13 04:44:17 kkurbjun
7# Dehacked and BEX support for Doom - currently only supports a DEHACKED file in a WAD (not as a standalone file yet).
8#
9# Revision 1.10 2006-10-27 21:47:55 amiconn
7# Next step of Makefile tuning: * Use 'make' internal commands for printing messages. Saves build time especially on cygwin. * SILENT variable used in more places. * Bitmap build system uses one Makefille less. 10# Next step of Makefile tuning: * Use 'make' internal commands for printing messages. Saves build time especially on cygwin. * SILENT variable used in more places. * Bitmap build system uses one Makefille less.
8# 11#
9# Revision 1.9 2006-10-23 22:33:36 amiconn 12# Revision 1.9 2006-10-23 22:33:36 amiconn
@@ -39,16 +42,20 @@ INCLUDES = -I$(APPSDIR) -I.. -I. $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)
39 -I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(OUTDIR) -I$(BUILDDIR) 42 -I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(OUTDIR) -I$(BUILDDIR)
40CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \ 43CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \
41 -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN \ 44 -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN \
42 -Wno-strict-prototypes -O2 $(PROFILE_OPTS) 45 -Wno-strict-prototypes $(PROFILE_OPTS)
43 46
44ifdef APPEXTRA 47ifdef APPEXTRA
45 INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) 48 INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
46endif 49endif
47 50
48ifneq (,$(strip $(foreach tgt,IPOD_NANO IPOD_COLOR IPOD_VIDEO,$(findstring $(tgt),$(TARGET))))) 51# The arm code compiles too large for the plugin buffer when set to optimize for speed
52ifeq ($(CC), arm-elf-gcc)
53 CFLAGS += -Os
49ifndef SIMVER 54ifndef SIMVER
50 CFLAGS += -mstructure-size-boundary=8 55 CFLAGS += -mstructure-size-boundary=8
51endif 56endif
57else
58 CFLAGS += -O2
52endif 59endif
53 60
54LINKFILE := $(OBJDIR)/link.lds 61LINKFILE := $(OBJDIR)/link.lds
@@ -62,8 +69,10 @@ SRC = info.c doomdef.c doomstat.c dstrings.c tables.c \
62 r_plane.c r_segs.c r_sky.c r_things.c wi_stuff.c v_video.c st_lib.c \ 69 r_plane.c r_segs.c r_sky.c r_things.c wi_stuff.c v_video.c st_lib.c \
63 st_stuff.c hu_stuff.c hu_lib.c s_sound.c z_zone.c z_bmalloc.c sounds.c \ 70 st_stuff.c hu_stuff.c hu_lib.c s_sound.c z_zone.c z_bmalloc.c sounds.c \
64 d_main.c m_misc.c m_bbox.c i_system.c i_sound.c i_video.c \ 71 d_main.c m_misc.c m_bbox.c i_system.c i_sound.c i_video.c \
65 w_wad.c rockdoom.c 72 w_wad.c rockdoom.c d_deh.c ../../../firmware/common/sscanf.c
66# fixmath2.S 73
74# sscanf isn't built into the core right now - should remove from here if that
75# changes
67 76
68SOURCES = $(SRC) 77SOURCES = $(SRC)
69OBJS := $(SRC:%.c=$(OBJDIR)/%.o) 78OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
@@ -73,13 +82,8 @@ DIRS = .
73 82
74 83
75ifndef SIMVER 84ifndef SIMVER
76ifneq (,$(findstring RECORDER,$(TARGET))) ## Archos recorder targets
77 LDS := archos.lds
78 OUTPUT = $(OUTDIR)/doom.ovl
79else ## iRiver target
80 LDS := ../plugin.lds 85 LDS := ../plugin.lds
81 OUTPUT = $(OUTDIR)/doom.rock 86 OUTPUT = $(OUTDIR)/doom.rock
82endif
83else ## simulators 87else ## simulators
84 OUTPUT = $(OUTDIR)/doom.rock 88 OUTPUT = $(OUTDIR)/doom.rock
85endif 89endif