all: buildtest clean: if test -f print; then rm print; fi if test -f print_x64; then rm print_x64; fi if test -f print_aarch64; then rm print_aarch64; fi if test -f print_mips32; then rm print_mips32; fi if test -f bldtst; then rm bldtst; fi if test -f bldtst_llvm; then rm bldtst_llvm; fi if test -f bldtst_x64; then rm bldtst_x64; fi if test -f bldtst_aarch64; then rm bldtst_aarch64; fi if test -f bldtst_mips32; then rm bldtst_mips32; fi buildtest: bldtst bldtst_llvm bldtst_x64 bldtst_aarch64 bldtst_mips32 .PHONY: all buildtest clean bldtst: buildtest.c arch/*.c gcc -static -nostdlib -Wno-builtin-declaration-mismatch -fno-stack-protector -o bldtst buildtest.c arch/*.c bldtst_llvm: buildtest.c arch/*.c clang -nostdlib -static -fuse-ld=lld -fno-stack-protector -o bldtst_llvm buildtest.c arch/*.c bldtst_x64: buildtest.c arch/x86_64.c clang --target=x86_64-linux-gnu -nostdlib -static -fuse-ld=lld -fno-stack-protector -o bldtst_x64 buildtest.c arch/x86_64.c bldtst_aarch64: buildtest.c clang --target=aarch64-linux-gnu -nostdlib -static -fuse-ld=lld -fno-stack-protector -o bldtst_aarch64 buildtest.c arch/aarch64.c bldtst_mips32: buildtest.c clang --target=mips-linux-gnu -nostdlib -static -fuse-ld=lld -fno-stack-protector -fno-pic -o bldtst_mips32 buildtest.c arch/mips.c