2 include $(TOP)/config/make.cfg
4 COUNTRIES := $(basename $(call WILDCARD, *.c))
6 COUNTRYDIR := $(AROS_LOCALE)/Countries
7 MAKECOUNTRY := $(OBJDIR)/makecountry
8 OBJDIR := $(GENDIR)/$(CURDIR)
9 COUNTIFF := $(foreach f,$(COUNTRIES),$(COUNTRYDIR)/$(f).country)
10 OBJS := $(foreach f,countryprefs $(COUNTRIES),$(OBJDIR)/$(f).o)
11 DEPS := $(foreach f,countryprefs $(COUNTRIES),$(OBJDIR)/$(f).d)
12 USER_CFLAGS := -D_EURO
14 # FIXME: Building makecountry on Cygwin and AROS requires to explicitly specify -liconv. Probably this should
15 # be handled by configure script
16 ifeq ($(filter-out aros cygwin,$(AROS_HOST_ARCH)),)
22 #MM- workbench-locale : workbench-locale-countries
23 #MM workbench-locale-countries : includes
25 workbench-locale-countries: $(MAKECOUNTRY) $(COUNTIFF)
28 workbench-locale-countries-quick : workbench-locale-countries
30 $(COUNTIFF) : | $(MAKECOUNTRY) $(COUNTRYDIR)
31 $(COUNTRYDIR)/%.country : $(OBJDIR)/%.o
32 @$(ECHO) "Making $(notdir $@)..."
33 @cd $(SRCDIR)/$(CURDIR); $(MAKECOUNTRY) $(COUNTRYDIR)/ $*
35 $(MAKECOUNTRY) : $(OBJS) $(OBJDIR)/makecountry.o
36 @$(ECHO) "Making $(@F)..."
37 @$(HOST_CC) $(HOST_LDFLAGS) $^ -o $@ $(LIBICONV)
39 $(OBJDIR)/makecountry.o : | $(OBJDIR)
40 %rule_compile basename="makecountry/makecountry" \
41 cflags="$(HOST_CFLAGS)" targetdir=$(OBJDIR) compiler=host
43 $(OBJS) $(DEPS) : | $(OBJDIR)
44 %rule_compile_multi basenames="makecountry/countryprefs $(COUNTRIES)" \
45 cflags="$(HOST_CFLAGS) -I$(AROS_INCLUDES)" targetdir=$(OBJDIR) compiler=host
47 %rule_makedirs dirs="$(OBJDIR) $(COUNTRYDIR)"
52 -$(RM) $(OBJDIR) *.err