Scanf improvements by Greg King

git-svn-id: svn://svn.cc65.org/cc65/trunk@3377 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2005-02-14 09:19:59 +00:00
parent a4f6f14a6b
commit d406a9f677
8 changed files with 615 additions and 358 deletions

View File

@@ -1,5 +1,6 @@
# -*- makefile -*-
#
# makefile for CC65 runtime library
# makefile for CC65's common library
#
.SUFFIXES: .o .s .c
@@ -26,9 +27,19 @@ CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Rules to help us see what code the compiler and assembler make.
%.s : %.c
@$(CC) $(CFLAGS) -S $<
%.lst : %.s
@$(AS) $(AFLAGS) -l -o /dev/null $<
#--------------------------------------------------------------------------
# Object files
# From C source-files
C_OBJS = _afailed.o \
_aligned_malloc.o \
_hextab.o \
@@ -59,7 +70,6 @@ C_OBJS = _afailed.o \
qsort.o \
realloc.o \
rewind.o \
scanf.o \
sleep.o \
strftime.o \
strxfrm.o \
@@ -67,7 +77,7 @@ C_OBJS = _afailed.o \
system.o \
timezone.o
# From assembly source-files
S_OBJS = _cwd.o \
_fdesc.o \
_file.o \
@@ -134,6 +144,7 @@ S_OBJS = _cwd.o \
raise.o \
remove.o \
rename.o \
scanf.o \
setjmp.o \
signal.o \
sigtable.o \
@@ -183,10 +194,10 @@ S_OBJS = _cwd.o \
all: $(C_OBJS) $(S_OBJS)
clean:
@rm -f *~
@rm -f $(C_OBJS:.o=.s)
@rm -f $(C_OBJS)
@rm -f $(S_OBJS)
@$(RM) *~ *.lst
@$(RM) $(C_OBJS:.o=.s)
@$(RM) $(C_OBJS)
@$(RM) $(S_OBJS)
zap: clean