Makefile (1581B)
1 include config.mk 2 3 export ARCH TARGET PREFIX BUILD_DIR SOURCES_DIR SOURCES_FILE LLVM_MODE JOBS LINK_JOBS 4 export BOOTSTRAP_LLVM_MODE 5 export HOST_CC HOST_CXX TARGET_CFLAGS HOST_CFLAGS HOST_CXXFLAGS HOST_LDFLAGS RUNNER 6 7 all: build 8 9 build: 10 sh scripts/build.sh all 11 12 pull: 13 sh scripts/check.sh pull 14 15 verify-sources: 16 sh scripts/check.sh verify 17 18 doctor: 19 sh scripts/build.sh doctor 20 21 show-config: 22 sh scripts/build.sh config 23 24 headers builtins musl atomic runtimes toolchain configure-llvm: 25 sh scripts/build.sh $@ 26 27 verify: 28 sh scripts/verify.sh 29 30 package: 31 sh scripts/package.sh 32 33 check: 34 sh scripts/test.sh 35 36 clean: 37 sh scripts/build.sh clean 38 39 help: 40 @printf '%s\n' \ 41 'make [ARCH=x86_64|aarch64] [LLVM_MODE=system|source|static] [JOBS=2]' \ 42 ' build build and verify the complete cross toolchain (default)' \ 43 ' doctor check host dependencies' \ 44 ' show-config print paths and target configuration' \ 45 ' pull download and verify pinned source archives' \ 46 ' verify-sources check downloaded archives without network access' \ 47 ' verify compile, inspect, and optionally run C and C++ programs' \ 48 ' package archive a completed source or static toolchain' \ 49 ' check run offline build-driver tests' \ 50 ' clean remove the selected toolchain and its work directory' \ 51 ' configure-llvm configure the optional LLVM source build' 52 53 .PHONY: all build pull verify-sources doctor show-config headers builtins musl 54 .PHONY: atomic runtimes toolchain configure-llvm verify package check clean help