Initial 800x480 cabbiev2 port, based on 480x800x16 one
[kugel-rb.git] / apps / apps.make
bloba4302888704fcb6ce2d25c9c0b317580b75e7cc2
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 INCLUDES += -I$(APPSDIR) $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
11 ifdef APP_TYPE
12 INCLUDES += -I$(APPSDIR)/hosted
13 endif
14 SRC += $(call preprocess, $(APPSDIR)/SOURCES)
16 # apps/features.txt is a file that (is preprocessed and) lists named features
17 # based on defines in the config-*.h files. The named features will be passed
18 # to genlang and thus (translated) phrases can be used based on those names.
19 # button.h is included for the HAS_BUTTON_HOLD define.
21 # Kludge: depends on config.o which only depends on config-*.h to have config.h
22 # changes trigger a genlang re-run
24 $(BUILDDIR)/apps/features: $(APPSDIR)/features.txt $(BUILDDIR)/firmware/common/config.o
25 $(SILENT)mkdir -p $(BUILDDIR)/apps
26 $(SILENT)mkdir -p $(BUILDDIR)/lang
27 $(call PRINTS,PP $(<F))
28 $(SILENT)$(CC) $(PPCFLAGS) \
29 -E -P -imacros "config.h" -imacros "button.h" -x c $< | \
30 grep -v "^\#" | grep -v "^ *$$" > $(BUILDDIR)/apps/features; \
32 $(BUILDDIR)/apps/genlang-features: $(BUILDDIR)/apps/features
33 $(call PRINTS,GEN $(subst $(BUILDDIR)/,,$@))tr \\n : < $< > $@
35 ASMDEFS_SRC += $(APPSDIR)/core_asmdefs.c