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