allow the other configure based build templates to pass use_build_env down.
[AROS.git] / tools / collect-aros / mmakefile
blob20bf2e2c6a84e02509f9906053727975c8b520b7
1 -include $(SRCDIR)/config/aros.cfg
3 #MM- development : development-collect-aros
4 #MM- development-collect-aros : development-binutils  development-collect-aros-quick
6 #MM
7 development-collect-aros-quick :
8         $(MAKE) HOST_CC="$(TARGET_CC) $(TARGET_SYSROOT)" HOST_CFLAGS="$(CFLAGS)" \
9         COLLECT-AROS=$(AROS_DEVELOPER)/bin/collect-aros \
10         COLLECT-AROS-BACKEND=backend-bfd.c \
11         USER_CFLAGS="-nix -D_HAVE_LIBIBERTY_ -D_NATIVE_" HOST_LDFLAGS="-L$(GENDIR)/contrib/gnu/binutils/binutils/libiberty -lbfd -liberty -lz"
12         $(STRIP) $(AROS_DEVELOPER)/bin/collect-aros
14 collect-aros-installflag := $(CROSSTOOLSDIR)/.installflag-collect-aros
16 #MM tools-crosstools-collect-aros : tools-crosstools-binutils
17 .PHONY : tools-crosstools-collect-aros
18 tools-crosstools-collect-aros : tools-crosstools-collect-aros-quick
20 #MM
21 tools-crosstools-collect-aros-quick :
22         @$(IF) ! $(TEST) -f $(collect-aros-installflag) ; then \
23                $(MAKE) COLLECT-AROS=$(CROSSTOOLSDIR)/$(AROS_TARGET_CPU)-aros/bin/collect-aros USER_CFLAGS="-D_CROSS_" \
24             && $(HOST_STRIP) $(CROSSTOOLSDIR)/$(AROS_TARGET_CPU)-aros/bin/collect-aros \
25             && $(CP) $(CROSSTOOLSDIR)/$(AROS_TARGET_CPU)-aros/bin/collect-aros $(CROSSTOOLSDIR)/$(AROS_TARGET_CPU)-aros-collect-aros \
26             && $(TOUCH) $(CROSSTOOLSDIR) $(collect-aros-installflag) ; \
27         fi
29 #MM
30 standalone-collect-aros :
31         @$(ECHO) Bulding $(TOOLDIR)/standalone/collect-aros$(HOST_EXE_SUFFIX)...
32         @$(MKDIR) $(TOOLDIR)/standalone
33         @$(MAKE) HOST_CC="$(HOST_CC)" HOST_CFLAGS="$(HOST_CFLAGS) -D_STANDALONE_" AROS_HOST_ARCH=$(AROS_HOST_ARCH) \
34         COLLECT-AROS=$(TOOLDIR)/standalone/collect-aros
35         @$(HOST_STRIP) $(TOOLDIR)/standalone/collect-aros$(HOST_EXE_SUFFIX)