4 include Makefile.common.mk
9 BDIR := build-n-$(ARCH)/
10 BDIR_GCC := $(BDIR)gcc
11 BDIR_BINUTILS := $(BDIR)binutils
13 ENVVARS := PATH=$(OUTDIR)-BUILD/bin:$$PATH
15 include Makefile.rules.mk
20 $(GCC_DIR)/libstdc++-v3/configure: $(GCC_DIR)/libstdc++-v3/crossconfig.m4
21 cd $(GCC_DIR)/libstdc++-v3/ && autoconf
23 $(BDIR_BINUTILS)/Makefile: $(addprefix $(BINUTILS_DIR)/,$(BINUTILS_CHANGES))
24 @mkdir -p $(BDIR_BINUTILS)
25 @cd $(BDIR_BINUTILS) && ../../$(BINUTILS_DIR)/configure --target=$(TARGET) --prefix=$(PREFIX) --disable-nls --enable-shared --without-docdir
27 $(PREFIX)/bin/$(TARGET)-ld: $(BDIR_BINUTILS)/Makefile
28 @make -C $(BDIR_BINUTILS) all -j $(PARLEVEL)
29 @make -C $(BDIR_BINUTILS) install
31 $(BDIR_GCC)/Makefile: Makefile $(addprefix $(GCC_DIR)/,$(GCC_CHANGES)) $(GCC_DIR)/libstdc++-v3/configure
33 @cd $(BDIR_GCC) && $(ENVVARS) ../../$(GCC_DIR)/configure --target=$(TARGET) --prefix=$(PREFIX) --disable-nls --enable-langs=c,c++ --includedir=$(ACESSDIR)/Usermode/include --without-docdir --enable-threads=posix
34 @echo "MAKEINFO = :" >> $(BDIR_GCC)/Makefile
36 $(PREFIX)/bin/$(TARGET)-gcc: $(BDIR_GCC)/Makefile
37 @$(ENVVARS) make -C $(BDIR_GCC) $(GCC_TARGETS:%=all-%) -j $(PARLEVEL)
38 @$(ENVVARS) make -C $(BDIR_GCC) $(GCC_TARGETS:%=install-%)