musllvm

musl and LLVM cross-toolchain build system
git clone https://git.daat.foo/repos/musllvm.git
Log | Files | Refs | README | LICENSE

Makefile (1547B)


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