Made work --enable-crosstools so the generated cross tool chain can
[AROS.git] / tools / collect-aros / mmakefile
blobf3411a2f49f1d9c3f628a25f7cb2f4b858529858
1 -include $(TOP)/config/make.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)" HOST_CFLAGS="$(CFLAGS)" \
9         COLLECT-AROS=$(AROS_DEVELOPMENT)/bin/collect-aros \
10         COLLECT-AROS-BACKEND=backend-bfd.c \
11         USER_CFLAGS="-nix -O2 -D_HAVE_LIBIBERTY_ -D_NATIVE_" HOST_LDFLAGS="-lbfd -liberty -lz"
12         $(STRIP) $(AROS_DEVELOPMENT)/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