Rearange menu of mpegplayer. Add new menu with "settings" and "quit", and remove...
[kugel-rb.git] / apps / plugins / doom / doom.make
blobadec5432e7d0ce4fef476cd1951dbb97d5a6bcdb
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 DOOMSRCDIR := $(APPSDIR)/plugins/doom
11 DOOMBUILDDIR := $(BUILDDIR)/apps/plugins/doom
13 ROCKS += $(DOOMBUILDDIR)/doom.rock
15 DOOM_SRC := $(call preprocess, $(DOOMSRCDIR)/SOURCES)
16 DOOM_SRC += $(ROOTDIR)/firmware/common/sscanf.c
17 DOOM_OBJ := $(call c2obj, $(DOOM_SRC))
19 # add source files to OTHER_SRC to get automatic dependencies
20 OTHER_SRC += $(DOOM_SRC)
22 DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes
24 # The arm code compiles too large for the plugin buffer when set to optimize for speed
25 ifeq ($(CPU), arm)
26 DOOMCFLAGS += -Os
27 ifndef SIMVER
28 ifeq ($(TARGET), IRIVER_H100)
29 DOOMCCFLAGS += -mstructure-size-boundary=8
30 endif
31 endif
32 else
33 DOOMCFLAGS += -O2
34 endif
36 $(DOOMBUILDDIR)/doom.rock: $(DOOM_OBJ)
38 # new rule needed to use extra compile flags
39 $(DOOMBUILDDIR)/%.o: $(DOOMSRCDIR)/%.c
40 $(SILENT)mkdir -p $(dir $@)
41 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(DOOMCFLAGS) -c $< -o $@