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 USER_INCLUDES := -I$(SRCDIR)/$(CURDIR)/makecountry -idirafter $(AROS_INCLUDES)
37 USER_CPPFLAGS := -D_EURO
39 $(OBJDIR)/makecountry.o : | $(OBJDIR)
40 %rule_compile basename="makecountry/makecountry" \
41 cflags="" targetdir=$(OBJDIR) compiler=host
43 $(OBJS) $(DEPS) : | $(OBJDIR)
44 %rule_compile_multi basenames="makecountry/countryprefs $(COUNTRIES)" \
45 cflags="" targetdir=$(OBJDIR) compiler=host
47 %rule_makedirs dirs="$(OBJDIR) $(COUNTRYDIR)"
51 -$(RM) $(OBJDIR) *.err