3 include $(SRCDIR)/config/aros.cfg
5 COUNTRIES := $(basename $(call WILDCARD, *.c))
7 COUNTRYDIR := $(AROS_LOCALE)/Countries
8 MAKECOUNTRY := $(OBJDIR)/makecountry
9 OBJDIR := $(GENDIR)/$(CURDIR)
10 OBJS := $(foreach f,countryprefs $(COUNTRIES),$(OBJDIR)/$(f).o)
11 DEPS := $(foreach f,countryprefs $(COUNTRIES),$(OBJDIR)/$(f).d)
13 # FIXME: Building makecountry on these systems requires to explicitly specify -liconv. Probably this should
14 # be handled by configure script
15 ifeq ($(filter-out aros cygwin mingw32,$(AROS_HOST_ARCH)),)
21 #MM- workbench-locale : workbench-locale-countries
22 #MM workbench-locale-countries : includes
25 workbench-locale-countries: workbench-locale-countries-quick
28 workbench-locale-countries-quick: $(MAKECOUNTRY) $(COUNTRYDIR)
29 @$(ECHO) "Making country files..."
30 @cd $(SRCDIR)/$(CURDIR); $(MAKECOUNTRY) $(COUNTRYDIR)/ --all
32 $(MAKECOUNTRY) : $(OBJS) $(OBJDIR)/makecountry.o
33 @$(ECHO) "Making $(@F)..."
34 @$(HOST_CC) $(HOST_LDFLAGS) $^ -o $@ $(LIBICONV)
36 $(OBJDIR)/makecountry.o : | $(OBJDIR)
37 %rule_compile basename="makecountry/makecountry" \
38 cflags="$(HOST_CFLAGS)" targetdir=$(OBJDIR) compiler=host
40 HOST_CFLAGS := $(HOST_CFLAGS) -I$(AROS_INCLUDES) -I$(SRCDIR)/$(CURDIR)/makecountry -D_EURO
42 $(OBJS) $(DEPS) : | $(OBJDIR)
43 %rule_compile_multi basenames="makecountry/countryprefs $(COUNTRIES)" \
44 cflags="$(HOST_CFLAGS)" targetdir=$(OBJDIR) compiler=host
46 %rule_makedirs dirs="$(OBJDIR) $(COUNTRYDIR)"
50 -$(RM) $(OBJDIR) *.err