Added joystick drivers for C16 and Atari

git-svn-id: svn://svn.cc65.org/cc65/trunk@1818 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-12-21 09:10:15 +00:00
parent 7f8a2feaff
commit f243a15e8e
8 changed files with 156 additions and 4 deletions

View File

@@ -8,6 +8,9 @@ ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) $(CFLAGS) $(ATARIDEFS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
@@ -15,6 +18,18 @@ ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $(ATARIDEFS) $<
%.emd: %.o ../runtime/zeropage.o
@$(LD) -t module -o $@ $^
%.joy: %.o ../runtime/zeropage.o
@$(LD) -t module -o $@ $^
%.tgi: %.o ../runtime/zeropage.o
@$(LD) -t module -o $@ $^
#--------------------------------------------------------------------------
# Object files
OBJS = _scrsize.o \
break.o \
cclear.o \
@@ -68,8 +83,23 @@ OBJS = _scrsize.o \
write.o
all: $(OBJS)
#--------------------------------------------------------------------------
# Drivers
EMDS =
JOYS = atari-stdjoy.joy
TGIS =
#--------------------------------------------------------------------------
# Targets
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@rm -f $(OBJS)
@rm -f $(OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(TGIS:.tgi=.o)