Joren's new library make system (minus Makefiles)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
# Makefile for lib/float.
|
||||
|
||||
CC1 = /bin/sh ./FP.compile
|
||||
|
||||
LIBRARIES = libfp
|
||||
|
||||
libfp_OBJECTS = \
|
||||
add_ext.o \
|
||||
adder.o \
|
||||
adf4.o \
|
||||
adf8.o \
|
||||
cff4.o \
|
||||
cff8.o \
|
||||
cfi.o \
|
||||
cfu.o \
|
||||
cif4.o \
|
||||
cif8.o \
|
||||
cmf4.o \
|
||||
cmf8.o \
|
||||
compact.o \
|
||||
cuf4.o \
|
||||
cuf8.o \
|
||||
div_ext.o \
|
||||
dvf4.o \
|
||||
dvf8.o \
|
||||
extend.o \
|
||||
fef4.o \
|
||||
fef8.o \
|
||||
fif4.o \
|
||||
fif8.o \
|
||||
fptrp.o \
|
||||
mlf4.o \
|
||||
mlf8.o \
|
||||
mul_ext.o \
|
||||
ngf4.o \
|
||||
ngf8.o \
|
||||
nrm_ext.o \
|
||||
sbf4.o \
|
||||
sbf8.o \
|
||||
sft_ext.o \
|
||||
shifter.o \
|
||||
sub_ext.o \
|
||||
zrf4.o \
|
||||
zrf8.o \
|
||||
zrf_ext.o \
|
||||
|
||||
include ../../Makefile.ack.inc
|
||||
|
||||
#extra commands to convert the c files to the correct assembler files
|
||||
|
||||
%.s: %.fc
|
||||
/bin/sh ./FP.compile $<
|
||||
|
||||
#1. make a assembler file of the c file
|
||||
#%.fs: %.fc
|
||||
# -cp $< $(<:.fc=.c) && cc -O -I. -D_MINIX -D_POSIX_SOURCE -S $(<:.fc=.c) && cp $(<:.fc=.s) $(<:.fc=.fs)
|
||||
# @rm $(<:.fc=.c) $(<:.fc=.s)
|
||||
|
||||
#2. modify the assembler file
|
||||
#%.s: %.fs
|
||||
# sed -f FP.script $< > $@
|
||||
61
lib/ack/float/Makefile.in
Normal file
61
lib/ack/float/Makefile.in
Normal file
@@ -0,0 +1,61 @@
|
||||
# Makefile for lib/float.
|
||||
|
||||
#CC1 = /bin/sh ./FP.compile
|
||||
|
||||
LIBRARIES=libfp
|
||||
|
||||
libfp_FILES=" \
|
||||
add_ext.fc \
|
||||
adder.fc \
|
||||
adf4.fc \
|
||||
adf8.fc \
|
||||
cff4.fc \
|
||||
cff8.fc \
|
||||
cfi.fc \
|
||||
cfu.fc \
|
||||
cif4.fc \
|
||||
cif8.fc \
|
||||
cmf4.fc \
|
||||
cmf8.fc \
|
||||
compact.fc \
|
||||
cuf4.fc \
|
||||
cuf8.fc \
|
||||
div_ext.fc \
|
||||
dvf4.fc \
|
||||
dvf8.fc \
|
||||
extend.fc \
|
||||
fef4.fc \
|
||||
fef8.fc \
|
||||
fif4.fc \
|
||||
fif8.fc \
|
||||
fptrp.s \
|
||||
mlf4.fc \
|
||||
mlf8.fc \
|
||||
mul_ext.fc \
|
||||
ngf4.fc \
|
||||
ngf8.fc \
|
||||
nrm_ext.fc \
|
||||
sbf4.fc \
|
||||
sbf8.fc \
|
||||
sft_ext.fc \
|
||||
shifter.fc \
|
||||
sub_ext.fc \
|
||||
zrf4.fc \
|
||||
zrf8.fc \
|
||||
zrf_ext.fc"
|
||||
|
||||
TYPE=ack
|
||||
|
||||
#extra commands to convert the c files to the correct assembler files
|
||||
|
||||
#%.s: %.fc
|
||||
# /bin/sh ./FP.compile $<
|
||||
|
||||
#1. make a assembler file of the c file
|
||||
#%.fs: %.fc
|
||||
# -cp $< $(<:.fc=.c) && cc -O -I. -D_MINIX -D_POSIX_SOURCE -S $(<:.fc=.c) && cp $(<:.fc=.s) $(<:.fc=.fs)
|
||||
# @rm $(<:.fc=.c) $(<:.fc=.s)
|
||||
|
||||
#2. modify the assembler file
|
||||
#%.s: %.fs
|
||||
# sed -f FP.script $< > $@
|
||||
Reference in New Issue
Block a user