Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / locale / countries / mmakefile.src
blob59ff8488e5fda719e5f742d43081752cd1f75821
1 #   $Id$
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)),)
16 LIBICONV := -liconv
17 else
18 LIBICONV :=
19 endif
21 #MM- workbench-locale : workbench-locale-countries
22 #MM workbench-locale-countries : includes
24 #MM
25 workbench-locale-countries: workbench-locale-countries-quick
27 #MM
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)"
48 #MM
49 clean ::
50         -$(RM) $(OBJDIR) *.err
52 %include_deps $(DEPS)