2 include $(TOP)/config/make.cfg
4 LANGUAGES := $(basename $(call WILDCARD, *.c))
6 MODDIR := $(AROS_LOCALE)/Languages
7 OBJDIR := $(GENDIR)/$(CURDIR)
8 MODULES := $(addprefix $(MODDIR)/,$(addsuffix .language,$(LANGUAGES)))
9 OBJS := $(addprefix $(OBJDIR)/,$(addsuffix .o,$(LANGUAGES)))
10 DEPS := $(addprefix $(OBJDIR)/,$(addsuffix .d,$(LANGUAGES)))
12 #MM- workbench-locale : workbench-locale-languages
13 #MM workbench-locale-languages : includes linklibs
15 workbench-locale-languages : $(MODULES)
17 $(MODULES) : | $(MODDIR)
18 $(MODDIR)/%.language : $(OBJDIR)/%.o
19 %link_module_q err="$(notdir $(basename $<)).err" objs=$< module="$(notdir $@)"
21 %rule_compile_multi basenames=$(LANGUAGES) targetdir=$(OBJDIR)
23 %include_deps deps=$(DEPS)
25 $(OBJS) $(DEPS) : | $(OBJDIR)
27 %rule_makedirs dirs="$(OBJDIR) $(MODDIR)"