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:
parent
35b91319f9
commit
0e08577ac7
8
Makefile
8
Makefile
@ -41,7 +41,7 @@ BINUTILS_SOURCES = https://ftp.gnu.org/gnu/binutils/$(BINUTILS_NAME).tar.xz
|
||||
|
||||
#ENV
|
||||
export NTHREADS := $(shell nproc)
|
||||
export PREFIX := $(shell pwd)/bin
|
||||
export PREFIX := $(shell pwd)/cross-cc
|
||||
export TARGET := x86_64-elf
|
||||
export PATH := $(PREFIX)/bin:$(PATH)
|
||||
export XZ_DEFAULTS := -T $(NTHREADS)
|
||||
@ -91,7 +91,7 @@ binutils: configurebinutils
|
||||
@echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3}
|
||||
cd build-binutils && make -j $(NTHREADS)
|
||||
@echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3}
|
||||
@mkdir -p bin
|
||||
@mkdir -p cross-cc
|
||||
cd build-binutils && make install -j $(NTHREADS)
|
||||
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||
|
||||
@ -107,7 +107,7 @@ gcc: binutils configuregcc
|
||||
@echo ${CL2}[$@] ${NC}Compiling $(GCC_NAME)...${CL3}
|
||||
cd build-gcc && make all-gcc -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-target-libgcc -j $(NTHREADS)
|
||||
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||
@ -116,7 +116,7 @@ clean:
|
||||
@mkdir -p build-gcc build-binutils
|
||||
@cd build-gcc && rm -rf *
|
||||
@cd build-binutils && rm -rf *
|
||||
@rm -rf bin
|
||||
@rm -rf cross-cc
|
||||
@echo ${CL2}[$@] ${CL}Success.${CL3}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user