xa51, work in progress
[fw/sdcc] / device / lib / Makefile.in
index 4f282582760c78e7bf0b2346a308f8a9f7355571..8efe2a186ff047ce281b105a9cdf57c746ed26d0 100644 (file)
@@ -44,7 +44,7 @@ SOURCES               = _atoi.c _atol.c _autobaud.c _bp.c _schar2fs.c \
                  _divulong.c _fs2schar.c _fs2sint.c _fs2slong.c \
                  _fs2uchar.c _fs2uint.c _fs2ulong.c _fsadd.c \
                  _fsdiv.c _fseq.c _fsgt.c _fslt.c _fsmul.c \
-                 _fsneq.c _fssub.c _gptrget.c _gptrput.c \
+                 _fsneq.c _fssub.c _gptrget.c _gptrgetc.c _gptrput.c \
                  _sint2fs.c _iscntrl.c _isdigit.c _isgraph.c \
                  _islower.c _isprint.c _ispunct.c _isspace.c \
                  _isupper.c _isxdigit.c _slong2fs.c _memcmp.c \
@@ -57,7 +57,11 @@ SOURCES              = _atoi.c _atol.c _autobaud.c _bp.c _schar2fs.c \
                  _strstr.c _strtok.c _uchar2fs.c _uint2fs.c \
                  _ulong2fs.c malloc.c serial.c ser_ir.c printfl.c \
                  printf_large.c vprintf.c puts.c gets.c \
-                 assert.c _strcat.c time.c printf_fast.c
+                 assert.c _strcat.c time.c printf_fast.c bpx.c \
+                 fabsf.c frexpf.c ldexpf.c expf.c powf.c sincosf.c sinf.c \
+                 cosf.c logf.c log10f.c sqrtf.c tancotf.c tanf.c cotf.c \
+                 asincosf.c asinf.c acosf.c atanf.c atan2f.c sincoshf.c \
+                 sinhf.c coshf.c tanhf.c floorf.c ceilf.c modff.c
 
 OBJECTS                = $(patsubst %.c,$(PORTDIR)/%.rel,$(SOURCES))
 
@@ -86,6 +90,31 @@ Z80SOURCES      = _atoi.c \
 
 Z80OBJECTS      = $(Z80SOURCES:%.c=$(PORTDIR)/%.o)
 
+XA51SOURCES      = _atoi.c _atol.c _schar2fs.c \
+                 _divsint.c _divslong.c _divuint.c \
+                 _divulong.c _fs2schar.c _fs2sint.c _fs2slong.c \
+                 _fs2uchar.c _fs2uint.c _fs2ulong.c _fsadd.c \
+                 _fsdiv.c _fseq.c _fsgt.c _fslt.c _fsmul.c \
+                 _fsneq.c _fssub.c \
+                 _sint2fs.c _iscntrl.c _isdigit.c _isgraph.c \
+                 _islower.c _isprint.c _ispunct.c _isspace.c \
+                 _isupper.c _isxdigit.c _slong2fs.c _memcmp.c \
+                 _memcpy.c _memset.c _modsint.c _modslong.c \
+                 _moduint.c _modulong.c _mulint.c _mullong.c \
+                 _strchr.c _strcmp.c _strcpy.c \
+                 _strcspn.c _strlen.c _strncat.c _strncmp.c \
+                 _strncpy.c _strpbrk.c _strrchr.c _strspn.c \
+                 _strstr.c _strtok.c _uchar2fs.c _uint2fs.c \
+                 _ulong2fs.c malloc.c puts.c gets.c \
+                 printf_large.c puts.c gets.c \
+                 assert.c _strcat.c time.c \
+                 fabsf.c frexpf.c ldexpf.c expf.c powf.c sincosf.c sinf.c \
+                 cosf.c logf.c log10f.c sqrtf.c tancotf.c tanf.c cotf.c \
+                 asincosf.c asinf.c acosf.c atanf.c atan2f.c sincoshf.c \
+                 sinhf.c coshf.c tanhf.c floorf.c ceilf.c modff.c
+
+XA51OBJECTS      = $(XA51SOURCES:%.c=$(PORTDIR)/%.xa)
+
 OEXT            = .rel
 
 include incl.mk
@@ -108,6 +137,14 @@ model-ds390:
          $(MAKE) MODELFLAGS="-mds390" PORT=ds390 objects; \
        fi
 
+model-xa51:
+       if [ "`grep xa51 ../../ports.build`" = xa51 ]; then \
+         $(MAKE) MODELFLAGS="-mxa51" PORT=xa51 objects-xa51 OEXT=.xa; \
+       fi
+
+objects-xa51: build-dir $(XA51OBJECTS) port-specific-objects
+       cd $(PORTDIR); ls *$(OEXT) > $(PORT).lib
+
 model-z80:
        if [ "`grep z80 ../../ports.build`" = z80 ]; then \
          $(MAKE) MODELFLAGS="-mz80" PORT=z80 objects-z80 OEXT=.o; \
@@ -197,7 +234,7 @@ include clean.mk
 $(PORTDIR)/%$(OEXT): %.c
        $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
        mv -f `basename $@` $@
-       mv -f `basename $@ $(OEXT)`.asm $(PORTDIR)
+       -mv -f `basename $@ $(OEXT)`.asm $(PORTDIR)
 
 # Remaking configuration
 # ----------------------