4 include Makefile.common.mk
6 PREFIX := $(OUTDIR)-BUILD
9 BDIR_BINUTILS := $(BDIR)binutils
11 include Makefile.rules.mk
15 mkdir -p $(SYSROOT)/usr
16 ln -sf $(ACESSDIR)/Usermode/include $(SYSROOT)/usr/include
17 ln -sf $(ACESSDIR)/Usermode/Output/$(ARCH)/Libs $(SYSROOT)/usr/lib
19 $(GCC_DIR)/libstdc++-v3/configure: $(GCC_DIR)/libstdc++-v3/crossconfig.m4
20 cd $(GCC_DIR)/libstdc++-v3/ && autoconf
22 $(BDIR_BINUTILS)/Makefile: $(addprefix $(BINUTILS_DIR)/,$(BINUTILS_CHANGES))
23 @mkdir -p $(BDIR_BINUTILS)
24 @cd $(BDIR_BINUTILS) && ../../$(BINUTILS_DIR)/configure --target=$(TARGET) --prefix=$(PREFIX) --disable-nls "--with-sysroot=$(SYSROOT)" --enable-shared --without-docdir
26 $(PREFIX)/bin/$(TARGET)-ld: $(BDIR_BINUTILS)/Makefile
27 @make -C $(BDIR_BINUTILS) all -j $(PARLEVEL)
28 @make -C $(BDIR_BINUTILS) install
30 $(BDIR_GCC)/Makefile: Makefile $(addprefix $(GCC_DIR)/,$(GCC_CHANGES)) $(GCC_DIR)/libstdc++-v3/configure
32 @cd $(BDIR_GCC) && PATH=$(PREFIX)/bin:$$PATH ../../$(GCC_DIR)/configure --target=$(TARGET) --prefix=$(PREFIX) --disable-nls --enable-langs=c,c++ --includedir=$(ACESSDIR)/Usermode/include "--with-sysroot=$(SYSROOT)" --without-docdir --enable-threads=posix
33 @echo "MAKEINFO = :" >> $(BDIR_GCC)/Makefile
35 $(PREFIX)/bin/$(TARGET)-gcc: $(BDIR_GCC)/Makefile
36 @PATH=$(PREFIX)/bin:$$PATH make -C $(BDIR_GCC) $(GCC_TARGETS:%=all-%) -j $(PARLEVEL)
37 @PATH=$(PREFIX)/bin:$$PATH make -C $(BDIR_GCC) $(GCC_TARGETS:%=install-%)