2000-05-28 13:40:48 +00:00
|
|
|
#
|
|
|
|
# makefile for CC65 runtime library
|
|
|
|
#
|
|
|
|
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
@$(CC) $(CFLAGS) $<
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $(*).s
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
|
2000-07-22 11:10:34 +00:00
|
|
|
C_OBJS = fclose.o fgets.o fprintf.o calloc.o _fopen.o\
|
2000-08-11 21:44:39 +00:00
|
|
|
fputs.o fread.o fwrite.o gets.o realloc.o bsearch.o strxfrm.o\
|
|
|
|
printf.o _hextab.o vfprintf.o fdopen.o strtok.o\
|
|
|
|
_afailed.o fopen.o fgetc.o fputc.o puts.o gets.o perror.o getchar.o\
|
2000-11-30 23:04:24 +00:00
|
|
|
vprintf.o vsprintf.o sprintf.o abort.o qsort.o putchar.o\
|
2000-08-11 21:44:39 +00:00
|
|
|
errormsg.o cprintf.o vcprintf.o freopen.o locale.o fsetpos.o\
|
|
|
|
fgetpos.o rewind.o fseek.o ftell.o
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2000-11-30 23:04:24 +00:00
|
|
|
S_OBJS = _fdesc.o \
|
|
|
|
_file.o \
|
|
|
|
_hadd.o \
|
|
|
|
_heap.o \
|
|
|
|
_oserror.o \
|
|
|
|
_printf.o \
|
|
|
|
_stksize.o \
|
2000-07-16 22:09:58 +00:00
|
|
|
_swap.o \
|
|
|
|
_sys.o \
|
|
|
|
abs.o \
|
|
|
|
atexit.o \
|
|
|
|
atoi.o \
|
|
|
|
copydata.o \
|
|
|
|
errno.o \
|
|
|
|
fmisc.o \
|
|
|
|
free.o \
|
|
|
|
getcpu.o \
|
|
|
|
isalnum.o \
|
|
|
|
isalpha.o \
|
|
|
|
isblank.o \
|
|
|
|
iscntrl.o \
|
|
|
|
isdigit.o \
|
|
|
|
isgraph.o \
|
|
|
|
islower.o \
|
2000-08-11 21:44:39 +00:00
|
|
|
isprint.o \
|
2000-07-16 22:09:58 +00:00
|
|
|
ispunct.o \
|
|
|
|
isspace.o \
|
|
|
|
isupper.o \
|
|
|
|
isxdigit.o \
|
|
|
|
itoa.o \
|
|
|
|
labs.o \
|
|
|
|
longjmp.o \
|
2000-07-21 16:57:58 +00:00
|
|
|
ltoa.o \
|
|
|
|
malloc.o \
|
|
|
|
maperrno.o \
|
|
|
|
memchr.o \
|
|
|
|
memcmp.o \
|
|
|
|
memcpy.o \
|
|
|
|
memset.o \
|
|
|
|
rand.o \
|
2000-11-30 23:04:24 +00:00
|
|
|
setjmp.o \
|
2000-07-21 16:57:58 +00:00
|
|
|
stkcheck.o \
|
|
|
|
strcat.o \
|
2000-07-16 22:09:58 +00:00
|
|
|
strchr.o \
|
|
|
|
strcmp.o \
|
|
|
|
strcoll.o \
|
|
|
|
strcpy.o \
|
|
|
|
strcspn.o \
|
2000-07-22 11:10:34 +00:00
|
|
|
strdup.o \
|
2000-07-16 22:09:58 +00:00
|
|
|
strerror.o \
|
|
|
|
stricmp.o \
|
|
|
|
strlen.o \
|
|
|
|
strlower.o \
|
|
|
|
strncat.o \
|
|
|
|
strncmp.o \
|
|
|
|
strncpy.o \
|
|
|
|
strpbrk.o \
|
|
|
|
strrchr.o \
|
|
|
|
strspn.o \
|
|
|
|
strstr.o \
|
|
|
|
strupper.o \
|
|
|
|
tolower.o \
|
|
|
|
toupper.o \
|
|
|
|
zerobss.o
|
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
all: $(C_OBJS) $(S_OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f *~
|
|
|
|
@rm -f $(C_OBJS:.o=.s)
|
|
|
|
@rm -f $(C_OBJS)
|
|
|
|
@rm -f $(S_OBJS)
|
2000-11-20 21:59:43 +00:00
|
|
|
|