mirror of
https://github.com/cc65/cc65.git
synced 2024-08-17 03:29:15 +00:00
130 lines
1.7 KiB
Makefile
130 lines
1.7 KiB
Makefile
#
|
|
# makefile for CC65 runtime library
|
|
#
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
%.o: %.c
|
|
@$(CC) $(CFLAGS) $<
|
|
@$(AS) -g -o $@ $(AFLAGS) $(*).s
|
|
|
|
%.o: %.s
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
C_OBJS = _afailed.o \
|
|
_fopen.o \
|
|
_hextab.o \
|
|
_scanf.o \
|
|
abort.o \
|
|
bsearch.o \
|
|
calloc.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
|
|
|
|
|
|
S_OBJS = _fdesc.o \
|
|
_file.o \
|
|
_hadd.o \
|
|
_heap.o \
|
|
_oserror.o \
|
|
_printf.o \
|
|
_swap.o \
|
|
_sys.o \
|
|
abs.o \
|
|
atexit.o \
|
|
atoi.o \
|
|
copydata.o \
|
|
cprintf.o \
|
|
errno.o \
|
|
fmisc.o \
|
|
fprintf.o \
|
|
free.o \
|
|
getcpu.o \
|
|
isalnum.o \
|
|
isalpha.o \
|
|
isblank.o \
|
|
iscntrl.o \
|
|
isdigit.o \
|
|
isgraph.o \
|
|
islower.o \
|
|
isprint.o \
|
|
ispunct.o \
|
|
isspace.o \
|
|
isupper.o \
|
|
isxdigit.o \
|
|
itoa.o \
|
|
labs.o \
|
|
longjmp.o \
|
|
ltoa.o \
|
|
malloc.o \
|
|
maperrno.o \
|
|
memchr.o \
|
|
memcmp.o \
|
|
memcpy.o \
|
|
memset.o \
|
|
printf.o \
|
|
rand.o \
|
|
setjmp.o \
|
|
sprintf.o \
|
|
strcat.o \
|
|
strchr.o \
|
|
strcmp.o \
|
|
strcoll.o \
|
|
strcpy.o \
|
|
strcspn.o \
|
|
strdup.o \
|
|
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 \
|
|
vcprintf.o \
|
|
vfprintf.o \
|
|
vsprintf.o \
|
|
zerobss.o
|
|
|
|
|
|
all: $(C_OBJS) $(S_OBJS)
|
|
|
|
clean:
|
|
@rm -f *~
|
|
@rm -f $(C_OBJS:.o=.s)
|
|
@rm -f $(C_OBJS)
|
|
@rm -f $(S_OBJS)
|
|
|