From 06e5eea08d5c06fcca00a469608b288696ae81d1 Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Wed, 27 Nov 2024 20:55:42 +0100 Subject: Include directive. Variable assignment from environment --- compile_make.sh | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 compile_make.sh (limited to 'compile_make.sh') diff --git a/compile_make.sh b/compile_make.sh deleted file mode 100755 index 78bc6c0..0000000 --- a/compile_make.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -e - -defined() { - [ x"$2" = x ] && echo $1 is undefined && exit 1 - echo $1 = $2 -} - -pexec() { - echo $@ - $@ -} - -defined CC "$CC" -defined LD "$LD" - -arch=x86_64 - -gcc_prefix=$(dirname $(gcc -print-libgcc-file-name)) - -tool_cflags="-Wall -nostdinc -Wno-main \ - -ffreestanding -fno-pic -fno-stack-protector \ - -Igenerated/include -Iarch/$arch \ - -I${gcc_prefix}/include -Iarch/generic" - -cflags="$tool_cflags $CFLAGS" - -pexec $CC $cflags -c -o tools/common.o tools/common.c -pexec $CC $cflags -c -o tools/make.o tools/make.c -pexec $LD -nostdlib -o tools/make tools/make.o tools/common.o -- cgit v1.2.3