Joren's new library make system (minus Makefiles)

This commit is contained in:
Ben Gras
2006-01-16 15:44:55 +00:00
parent c461b0c63d
commit 34d445c0af
113 changed files with 1500 additions and 4225 deletions
+7 -4
View File
@@ -5,15 +5,18 @@
# only optimizes scratch register allocation a bit with -O. To the 32-bit
# compiler -O is a no-op.)
case $#:$1 in
1:*.fc) ;;
case $#:$2 in
2:*.fc) ;;
*) echo "$0: $1: not a FC file" >&2; exit 1
esac
base="`basename "$1" .fc`"
dst=$1
src=$2
base="`basename "$src" .fc`"
trap 'rm -f tmp.c tmp.s"; exit 1' 2
cp "$1" tmp.c &&
cp "$src" tmp.c &&
cc -O -I. -D_MINIX -D_POSIX_SOURCE -S tmp.c &&
sed -f FP.script tmp.s > "$base.s" &&
cc -c -o $dst "$base.s" &&
rm tmp.c tmp.s