mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
931add050e
routine reads the TOD clock of CIA1 on the C64 and C128. Since systime was a dummy routine common for all CBMs before, this change adds an individual dummy routine for all other CBM systems. CBM510/610 do also have a TOD clock, so a similar function as in the C64 could be used ... git-svn-id: svn://svn.cc65.org/cc65/trunk@3974 b7a2c559-68d2-44c3-8de9-860c34a00d81
98 lines
1.9 KiB
Makefile
98 lines
1.9 KiB
Makefile
#
|
|
# makefile for CC65 runtime library
|
|
#
|
|
|
|
.SUFFIXES: .o .s .c
|
|
|
|
#--------------------------------------------------------------------------
|
|
# Programs and flags
|
|
|
|
SYS = none
|
|
|
|
AS = ../../src/ca65/ca65
|
|
CC = ../../src/cc65/cc65
|
|
LD = ../../src/ld65/ld65
|
|
|
|
AFLAGS = -t $(SYS) -I../../asminc
|
|
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
|
|
|
|
#--------------------------------------------------------------------------
|
|
# Rules
|
|
|
|
%.o: %.c
|
|
@$(CC) $(CFLAGS) $<
|
|
@$(AS) -o $@ $(AFLAGS) $(*).s
|
|
|
|
%.o: %.s
|
|
@$(AS) -g -o $@ $(AFLAGS) $<
|
|
|
|
#--------------------------------------------------------------------------
|
|
# Object files
|
|
|
|
C_OBJS = cbm_dir.o \
|
|
cbm_load.o \
|
|
cbm_save.o
|
|
|
|
S_OBJS = c_acptr.o \
|
|
c_basin.o \
|
|
c_bsout.o \
|
|
c_chkin.o \
|
|
c_ciout.o \
|
|
c_ckout.o \
|
|
c_clall.o \
|
|
c_close.o \
|
|
c_clrch.o \
|
|
c_iobase.o \
|
|
c_listen.o \
|
|
c_load.o \
|
|
c_open.o \
|
|
c_readst.o \
|
|
c_save.o \
|
|
c_setlfs.o \
|
|
c_setnam.o \
|
|
c_talk.o \
|
|
c_unlsn.o \
|
|
c_untlk.o \
|
|
cbm_close.o \
|
|
cbm_open.o \
|
|
cbm_read.o \
|
|
cbm_write.o \
|
|
cclear.o \
|
|
chline.o \
|
|
clock.o \
|
|
close.o \
|
|
ctype.o \
|
|
cvline.o \
|
|
diskcmd.o \
|
|
filedes.o \
|
|
filename.o \
|
|
filevars.o \
|
|
gotox.o \
|
|
gotoxy.o \
|
|
gotoy.o \
|
|
initcwd.o \
|
|
open.o \
|
|
oserrlist.o \
|
|
oserror.o \
|
|
read.o \
|
|
rwcommon.o \
|
|
scratch.o \
|
|
sysremove.o \
|
|
sysrename.o \
|
|
wherex.o \
|
|
wherey.o \
|
|
write.o
|
|
|
|
#--------------------------------------------------------------------------
|
|
# Targets
|
|
|
|
.PHONY: all clean zap
|
|
|
|
all: $(C_OBJS) $(S_OBJS)
|
|
|
|
clean:
|
|
@$(RM) *~ *.bck $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
|
|
|
|
zap: clean
|
|
|