summaryrefslogtreecommitdiff
path: root/libc/i386fp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/i386fp/Makefile')
-rw-r--r--libc/i386fp/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/libc/i386fp/Makefile b/libc/i386fp/Makefile
new file mode 100644
index 0000000..55d06da
--- /dev/null
+++ b/libc/i386fp/Makefile
@@ -0,0 +1,38 @@
+# Makefile for bcc 386 software floating point library
+
+.SUFFIXES: .x # .x files are .s files that need C-preprocessing
+.x.o:
+ cp $< tmp.c
+ $(CC) $(CFLAGS) -E tmp.c >tmp.s
+ $(CC) $(CFLAGS) -c tmp.s -A-n -A$* -o $@
+
+FPDIST =Makefile $(FPSRC) test.c bccfp.tex
+FPSRC =fadd.x fcomp.x fdiv.x fmul.x fbsr.x \
+ fperr.c fperror.x fptoi.x fpushd.x fpulld.x \
+ fpushi.x fpushf.x fpullf.x frexp.x ftst.x \
+ gcclib.x \
+ fabs.x ldexp.x modf.c \
+ fperr.h fplib.h
+FPOBJ =fadd.o fcomp.o fdiv.o fmul.o fpbsr.o \
+ fperr.o fperror.o fptoi.o fpushd.o fpulld.o \
+ fpushi.o fpushf.o fpullf.o frexp.o ftst.o \
+ fabs.o ldexp.o modf.o
+JUNK =tmp tmp.c tmp.s tmp.lst
+LIB =.
+
+CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
+
+ifeq ($(LIB_CPU),i386)
+all: $(LIBC)($(FPOBJ))
+ rm -f $(JUNK)
+else
+all:
+ @:
+endif
+
+$(LIBC)($(FPOBJ)): fplib.h
+$(LIBC)(fperr.o fperror.o): fperr.h
+
+clean:
+ rm -f $(FPOBJ) $(JUNK) test
+ rm -f $(LIB)/libfp.a bccfp.tar.Z bccfp.uue