6809: Update the library build
authorAlan Cox <alan@linux.intel.com>
Mon, 5 Mar 2018 20:29:55 +0000 (20:29 +0000)
committerAlan Cox <alan@linux.intel.com>
Mon, 5 Mar 2018 20:29:55 +0000 (20:29 +0000)
Build a libm and don't confuse with libc
Build the double libary (or most of it)

Library/libs/Makefile.6809

index 2129dcc..742e4d9 100644 (file)
@@ -83,6 +83,21 @@ SRC_LM += __expo2f.c __float_bits.c __fpclassifyf.c __log1pf.c __signgam.c
 SRC_LM += mathhelper.c
 
 
+#remainder.c seems to crash gcc
+SRC_LM += acos.c acosh.c asin.c asinh.c atan2.c atan.c atanh.c
+SRC_LM += cbrt.c ceil.c copysign.c erf.c exp.c expm1.c
+SRC_LM += fabs.c fdim.c floor.c fmax.c fmin.c fmod.c frexp.c
+SRC_LM += hypot.c j0.c j1.c jn.c
+SRC_LM += ldexp.c lgamma.c lgamma_r.c log.c log2.c log10.c
+SRC_LM += lrint.c lround.c
+SRC_LM += modf.c nearbyint.c pow.c
+SRC_LM += remquo.c rint.c round.c
+SRC_LM += scalbn.c
+SRC_LM += sin.c sincos.c sinh.c
+SRC_LM += sqrt.c tgamma.c
+SRC_LM += __expo2.c __double_bits.c __fpclassify.c __log1p.c
+
+
 OBJ_C = $(SRC_C:.c=.o)
 OBJ_CURS = $(SRC_CURS:.c=.o)
 OBJ_CT = $(SRC_CT:.c=.o)
@@ -97,8 +112,8 @@ $(OBJ_ALL): $(KRN_HEADERS_COPY)
 $(KRN_HEADERS_COPY): $(KRN_HEADERS_SRC)
        cp ../../Kernel/include/$(notdir $@) $@
 
-libc.l:%.l:$(OBJ_ALL)
-       ls $(OBJ_ALL) > libc.l
+libc.l:%.l:$(OBJ_C) $(OBJ_ASM) $(OBJ_HARD)
+       ls $(OBJ_C) $(OBJ_ASM) $(OBJ_HARD)  > libc.l
 
 syscall.l: fuzix$(PLATFORM)/syslib.l
        ../tools/syscall_$(PLATFORM)