diff options
Diffstat (limited to 'apps/plugins/doom/Makefile')
-rw-r--r-- | apps/plugins/doom/Makefile | 24 |
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) |
40 | CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \ | 43 | CFLAGS = $(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 | ||
44 | ifdef APPEXTRA | 47 | ifdef APPEXTRA |
45 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 48 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
46 | endif | 49 | endif |
47 | 50 | ||
48 | ifneq (,$(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 |
52 | ifeq ($(CC), arm-elf-gcc) | ||
53 | CFLAGS += -Os | ||
49 | ifndef SIMVER | 54 | ifndef SIMVER |
50 | CFLAGS += -mstructure-size-boundary=8 | 55 | CFLAGS += -mstructure-size-boundary=8 |
51 | endif | 56 | endif |
57 | else | ||
58 | CFLAGS += -O2 | ||
52 | endif | 59 | endif |
53 | 60 | ||
54 | LINKFILE := $(OBJDIR)/link.lds | 61 | LINKFILE := $(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 | ||
68 | SOURCES = $(SRC) | 77 | SOURCES = $(SRC) |
69 | OBJS := $(SRC:%.c=$(OBJDIR)/%.o) | 78 | OBJS := $(SRC:%.c=$(OBJDIR)/%.o) |
@@ -73,13 +82,8 @@ DIRS = . | |||
73 | 82 | ||
74 | 83 | ||
75 | ifndef SIMVER | 84 | ifndef SIMVER |
76 | ifneq (,$(findstring RECORDER,$(TARGET))) ## Archos recorder targets | ||
77 | LDS := archos.lds | ||
78 | OUTPUT = $(OUTDIR)/doom.ovl | ||
79 | else ## iRiver target | ||
80 | LDS := ../plugin.lds | 85 | LDS := ../plugin.lds |
81 | OUTPUT = $(OUTDIR)/doom.rock | 86 | OUTPUT = $(OUTDIR)/doom.rock |
82 | endif | ||
83 | else ## simulators | 87 | else ## simulators |
84 | OUTPUT = $(OUTDIR)/doom.rock | 88 | OUTPUT = $(OUTDIR)/doom.rock |
85 | endif | 89 | endif |