summaryrefslogtreecommitdiff
path: root/apps/apps.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/apps.make')
-rw-r--r--apps/apps.make25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/apps.make b/apps/apps.make
new file mode 100644
index 0000000000..1b0bf648f4
--- /dev/null
+++ b/apps/apps.make
@@ -0,0 +1,25 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id: Makefile 19082 2008-11-10 23:54:24Z zagor $
8#
9
10INCLUDES += -I$(APPSDIR) $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
11SRC += $(call preprocess, $(APPSDIR)/SOURCES)
12
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.
17#
18features $(BUILDDIR)/apps/features $(BUILDDIR)/apps/genlang-features: $(APPSDIR)/features.txt
19 $(SILENT)mkdir -p $(dir $@)
20 $(call PRINTS,PP $(<F))
21 $(SILENT)$(CC) $(PPCFLAGS) \
22 -E -P -imacros "config.h" -imacros "button.h" -x c $< | \
23 grep -v "^\#" | grep -v "^$$" > $@; \
24 for f in `cat $@`; do feat="$$feat:$$f" ; done ; \
25 echo "$$feat" >$(BUILDDIR)/apps/genlang-features