* device/include/float.h: added __INFINITY
[fw/sdcc] / support / regression / ports / mcs51-xstack-auto / spec.mk
index 16fcc2df0a21f55e8ebcc0c30b707163f4c32986..3281a8a4383e672b70d33d6c5caf63a8351d9951 100644 (file)
@@ -1,20 +1,16 @@
-# Port specification for the mcs51 port running with uCsim
+# Regression test specification for the mcs51-xstack-auto target running with uCsim
 #
 # model small xstack-auto
 
-include $(PORTS_DIR)/mcs51/spec.mk
+include $(PORTS_DIR)/mcs51-common/spec.mk
 
 LIBSRCDIR   = $(top_srcdir)/device/lib
 LIBBUILDDIR = $(top_builddir)/device/lib
 LIBDIR      = $(PORT_CASES_DIR)/lib
 
-LIBSDCCFLAGS+= --stack-auto --xstack --std-c99
+LIBSDCCFLAGS+= --stack-auto --xstack --std-c99 -DUSE_FLOATS=1
 SDCCFLAGS   += --stack-auto --xstack --std-sdcc99
 
-# use C sources from mcs51
-$(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/mcs51/%.c
-       $(SDCC) $(SDCCFLAGS) -c $< -o $@
-
 SOURCES = _atoi.c _atol.c _autobaud.c _bp.c _schar2fs.c \
           _decdptr.c _divsint.c _divslong.c _divuint.c \
           _divulong.c _fs2schar.c _fs2sint.c _fs2slong.c \
@@ -22,7 +18,7 @@ SOURCES = _atoi.c _atol.c _autobaud.c _bp.c _schar2fs.c \
           _fsadd.c _fssub.c _fsdiv.c _fsmul.c \
           _fseq.c _fsneq.c _fsgt.c _fslt.c _fscmp.c \
           fabsf.c sqrtf.c logf.c log10f.c powf.c tanf.c \
-          errno.c frexpf.c ldexpf.c tancotf.c \
+          errno.c frexpf.c ldexpf.c expf.c tancotf.c \
           _fsget1arg.c _fsget2args.c _fsnormalize.c \
           _fsreturnval.c _fsrshift.c _fsswapargs.c \
           _gptrget.c _gptrput.c \
@@ -39,7 +35,7 @@ SOURCES = _atoi.c _atol.c _autobaud.c _bp.c _schar2fs.c \
           _strncpy.c _strpbrk.c _strrchr.c _strspn.c \
           _strstr.c _strtok.c \
           _uchar2fs.c _uint2fs.c _ulong2fs.c \
-          _heap.c calloc.c malloc.c realloc.c free.c \
+          _heap.c _calloc.c _malloc.c _realloc.c _free.c \
           serial.c ser_ir.c printfl.c \
           printf_large.c sprintf.c vprintf.c puts.c gets.c \
           assert.c time.c bpx.c