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) $<
|
|
|
|
|
2001-03-10 14:19:21 +00:00
|
|
|
C_OBJS = _afailed.o \
|
|
|
|
_fopen.o \
|
|
|
|
_hextab.o \
|
2001-04-19 06:46:30 +00:00
|
|
|
_scanf.o \
|
2001-03-10 14:19:21 +00:00
|
|
|
abort.o \
|
|
|
|
bsearch.o \
|
|
|
|
errormsg.o \
|
|
|
|
fclose.o \
|
|
|
|
fdopen.o \
|
|
|
|
fgetc.o \
|
|
|
|
fgetpos.o \
|
|
|
|
fgets.o \
|
|
|
|
fopen.o \
|
|
|
|
fputc.o \
|
|
|
|
fputs.o \
|
|
|
|
fread.o \
|
|
|
|
freopen.o \
|
|
|
|
fseek.o \
|
|
|
|
fsetpos.o \
|
|
|
|
ftell.o \
|
|
|
|
fwrite.o \
|
|
|
|
getchar.o \
|
|
|
|
gets.o \
|
|
|
|
locale.o \
|
|
|
|
perror.o \
|
|
|
|
putchar.o \
|
|
|
|
puts.o \
|
|
|
|
qsort.o \
|
|
|
|
realloc.o \
|
|
|
|
rewind.o \
|
|
|
|
sscanf.o \
|
|
|
|
strxfrm.o \
|
|
|
|
strtok.o \
|
|
|
|
vprintf.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 \
|
2000-07-16 22:09:58 +00:00
|
|
|
_swap.o \
|
|
|
|
_sys.o \
|
|
|
|
abs.o \
|
|
|
|
atexit.o \
|
|
|
|
atoi.o \
|
2001-11-15 21:53:00 +00:00
|
|
|
calloc.o \
|
2000-07-16 22:09:58 +00:00
|
|
|
copydata.o \
|
2000-12-01 15:13:07 +00:00
|
|
|
cprintf.o \
|
2000-07-16 22:09:58 +00:00
|
|
|
errno.o \
|
|
|
|
fmisc.o \
|
2000-12-01 17:25:07 +00:00
|
|
|
fprintf.o \
|
2000-07-16 22:09:58 +00:00
|
|
|
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 \
|
2000-12-01 17:32:59 +00:00
|
|
|
memcpy.o \
|
|
|
|
memset.o \
|
2002-04-21 14:29:30 +00:00
|
|
|
modfree.o \
|
|
|
|
modload.o \
|
2000-12-01 17:32:59 +00:00
|
|
|
printf.o \
|
|
|
|
rand.o \
|
|
|
|
setjmp.o \
|
|
|
|
sprintf.o \
|
2000-07-21 16:57:58 +00:00
|
|
|
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 \
|
2002-07-18 13:29:04 +00:00
|
|
|
stroserr.o \
|
2000-07-16 22:09:58 +00:00
|
|
|
strpbrk.o \
|
|
|
|
strrchr.o \
|
|
|
|
strspn.o \
|
|
|
|
strstr.o \
|
|
|
|
strupper.o \
|
|
|
|
tolower.o \
|
|
|
|
toupper.o \
|
2000-12-02 09:15:43 +00:00
|
|
|
vcprintf.o \
|
2000-12-01 15:05:46 +00:00
|
|
|
vfprintf.o \
|
2000-12-01 22:57:32 +00:00
|
|
|
vsprintf.o \
|
2002-03-24 13:26:18 +00:00
|
|
|
vsscanf.o \
|
2000-07-16 22:09:58 +00:00
|
|
|
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
|
|
|
|