3 include $(SRCDIR)/config/aros.cfg
5 LANGUAGES := $(basename $(call WILDCARD, *.c))
7 MODDIR := $(AROS_LOCALE)/Languages
8 OBJDIR := $(GENDIR)/$(CURDIR)
9 MODULES := $(addprefix $(MODDIR)/,$(addsuffix .language,$(LANGUAGES)))
10 OBJS := $(addprefix $(OBJDIR)/,$(addsuffix .o,$(LANGUAGES)))
11 DEPS := $(addprefix $(OBJDIR)/,$(addsuffix .d,$(LANGUAGES)))
13 #MM- workbench-locale : workbench-locale-languages
14 #MM workbench-locale-languages : includes linklibs
16 workbench-locale-languages : $(MODULES)
18 $(MODULES) : | $(MODDIR)
19 $(MODDIR)/%.language : $(OBJDIR)/%.o
20 %link_module_q err="$(notdir $(basename $<)).err" objs=$< module="$(notdir $@)"
22 %rule_compile_multi basenames=$(LANGUAGES) targetdir=$(OBJDIR)
24 %include_deps deps=$(DEPS)
26 $(OBJS) $(DEPS) : | $(OBJDIR)
28 %rule_makedirs dirs="$(OBJDIR) $(MODDIR)"