diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-02-25 20:42:19 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:38:07 +0200 |
commit | 4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch) | |
tree | a5d9c84ba2661029ddb2223dacd50529a361c3d5 /libc/i386fp/Makefile | |
parent | f8de35da65c5d93bb733073cf40da154bc1c0748 (diff) | |
parent | 9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff) | |
download | dev86-4c36e9a0c125ccfff37aa440dab2cf58c4152fff.tar.gz |
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'libc/i386fp/Makefile')
-rw-r--r-- | libc/i386fp/Makefile | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/libc/i386fp/Makefile b/libc/i386fp/Makefile index 88158f7..55d06da 100644 --- a/libc/i386fp/Makefile +++ b/libc/i386fp/Makefile @@ -1,19 +1,10 @@ # Makefile for bcc 386 software floating point library -TOP=.. -include $(TOP)/Make.defs - .SUFFIXES: .x # .x files are .s files that need C-preprocessing .x.o: cp $< tmp.c - $(CC) $(CFLAGS) -P tmp.c | $(AS) - -n $* -o $@ - -# $(ASCPP) $(ASCPPFLAGS) $< >tmp -# $(AS) tmp -n $* -l tmp.lst -o $@ - -AS =as86 -3 -ASCPP =/lib/cpp -ASCPPFLAGS =-P -traditional + $(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 \ @@ -26,33 +17,22 @@ 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.lst +JUNK =tmp tmp.c tmp.s tmp.lst LIB =. -test: test.c $(LIB)/libfp.a - $(CC) -o $@ test.c $(LIB)/libfp.a -lm - -$(FPOBJ): fplib.h -fperr.c fperror.x: fperr.h - -$(LIB)/libfp.a: $(FPOBJ) - ar rc $(LIB)/libfp.a $(FPOBJ) - rm -f $(JUNK) +CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS) ifeq ($(LIB_CPU),i386) -libc.a: $(FPOBJ) +all: $(LIBC)($(FPOBJ)) rm -f $(JUNK) - ar rc ../libc.a $(FPOBJ) else -libc.a: +all: + @: endif -dist: $(FPDIST) - /bin/tar cvf - $(FPDIST) | /bin/compress -b 13 >bccfp.tar.Z - uue bccfp.tar.Z +$(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 - -realclean: clean |