2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 # the header we generate
11 HEADER
= $(BUILDDIR
)/max_language_size.h
13 # This sets up 'SRC' based on the files mentioned in SOURCES
14 include $(TOOLSDIR
)/makesrc.inc
17 # OUTP is the list of files to depend upon
18 OUTP
= $(patsubst %.lang
,$(OBJDIR
)/%.lng
, $(SOURCES
))
20 # the generated file with features specified genlang-style
21 FEATS
=$(BUILDDIR
)/apps
/genlang-features
26 PRINTS
=$(SILENT
)$(call
info,$(1))
30 # generic rule for creating .lng from .lang
31 $(OBJDIR
)/%.lng
: %.lang
$(FEATS
)
32 $(call PRINTS
,GENLANG
$<)
33 $(SILENT
)$(TOOLSDIR
)/genlang
-e
=$(APPSDIR
)/lang
/english.lang
-t
=$(MODELNAME
)`cat $(FEATS)` -i
=$(TARGET_ID
) -b
=$@
$<
36 $(call PRINTS
,Make
$(HEADER
))
37 echo
"#define MAX_LANGUAGE_SIZE `du -b $(OBJDIR)/* |sort -n |tail -n 1 |cut -f 1`" > $(HEADER
)