1
0
mirror of https://gitlab.os-k.eu/os-k-team/cross-cc-builder.git synced 2023-08-25 14:03:10 +02:00

Automatization works

This commit is contained in:
Adrien Bourmault 2020-06-01 21:13:01 +02:00
parent 35b91319f9
commit 0e08577ac7
No known key found for this signature in database
GPG Key ID: AFEE5788AEE3F4EC

View File

@ -41,7 +41,7 @@ BINUTILS_SOURCES = https://ftp.gnu.org/gnu/binutils/$(BINUTILS_NAME).tar.xz
#ENV #ENV
export NTHREADS := $(shell nproc) export NTHREADS := $(shell nproc)
export PREFIX := $(shell pwd)/bin export PREFIX := $(shell pwd)/cross-cc
export TARGET := x86_64-elf export TARGET := x86_64-elf
export PATH := $(PREFIX)/bin:$(PATH) export PATH := $(PREFIX)/bin:$(PATH)
export XZ_DEFAULTS := -T $(NTHREADS) export XZ_DEFAULTS := -T $(NTHREADS)
@ -91,7 +91,7 @@ binutils: configurebinutils
@echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3} @echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3}
cd build-binutils && make -j $(NTHREADS) cd build-binutils && make -j $(NTHREADS)
@echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3} @echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3}
@mkdir -p bin @mkdir -p cross-cc
cd build-binutils && make install -j $(NTHREADS) cd build-binutils && make install -j $(NTHREADS)
@echo ${CL2}[$@] ${CL}Success.${CL3} @echo ${CL2}[$@] ${CL}Success.${CL3}
@ -107,7 +107,7 @@ gcc: binutils configuregcc
@echo ${CL2}[$@] ${NC}Compiling $(GCC_NAME)...${CL3} @echo ${CL2}[$@] ${NC}Compiling $(GCC_NAME)...${CL3}
cd build-gcc && make all-gcc -j $(NTHREADS) cd build-gcc && make all-gcc -j $(NTHREADS)
cd build-gcc && make all-target-libgcc -j $(NTHREADS) cd build-gcc && make all-target-libgcc -j $(NTHREADS)
@mkdir -p bin @mkdir -p cross-cc
cd build-gcc && make install-gcc -j $(NTHREADS) cd build-gcc && make install-gcc -j $(NTHREADS)
cd build-gcc && make install-target-libgcc -j $(NTHREADS) cd build-gcc && make install-target-libgcc -j $(NTHREADS)
@echo ${CL2}[$@] ${CL}Success.${CL3} @echo ${CL2}[$@] ${CL}Success.${CL3}
@ -116,7 +116,7 @@ clean:
@mkdir -p build-gcc build-binutils @mkdir -p build-gcc build-binutils
@cd build-gcc && rm -rf * @cd build-gcc && rm -rf *
@cd build-binutils && rm -rf * @cd build-binutils && rm -rf *
@rm -rf bin @rm -rf cross-cc
@echo ${CL2}[$@] ${CL}Success.${CL3} @echo ${CL2}[$@] ${CL}Success.${CL3}