Move c/h files implementing/defining standard library stuff into a new libc directory...
[kugel-rb.git] / apps / plugins / doom / doom.make
blob54a63eb707ce20b802789c853dcc73c15b3027c9
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/libc/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 -O2
24 ifndef SIMVER
25 ifeq ($(TARGET), IRIVER_H100)
26 DOOMCCFLAGS += -mstructure-size-boundary=8
27 endif
28 endif
30 $(DOOMBUILDDIR)/doom.rock: $(DOOM_OBJ)
32 # new rule needed to use extra compile flags
33 $(DOOMBUILDDIR)/%.o: $(DOOMSRCDIR)/%.c
34 $(SILENT)mkdir -p $(dir $@)
35 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(DOOMCFLAGS) -c $< -o $@