1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00

Prepared infrastructure for a shared loadable generic mouse driver based the GEOS API.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5496 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2012-02-08 14:30:07 +00:00
parent baa6c53dec
commit 75dc65c217
9 changed files with 47 additions and 9 deletions

View File

@ -57,7 +57,7 @@ EMDS = geos-vdc.emd
JOYS = geos-stdjoy.joy
MOUS = #geos-stdmou.mou
MOUS =
SERS =

View File

@ -5,9 +5,6 @@
#--------------------------------------------------------------------------
# Object files
S_OBJS += fio_module.o \
joy_stddrv.o \
mcbdefault.o \
mouse_stddrv.o \
S_OBJS += joy_stddrv.o \
tgi_colors.o \
tgi_stddrv.o

View File

@ -26,6 +26,21 @@ CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
%.emd: %.o ../runtime/zeropage.o
@$(LD) -o $@ -t module $^
%.joy: %.o ../runtime/zeropage.o
@$(LD) -o $@ -t module $^
%.mou: %.o ../runtime/zeropage.o
@$(LD) -o $@ -t module $^
%.ser: %.o ../runtime/zeropage.o
@$(LD) -o $@ -t module $^
%.tgi: %.o ../runtime/zeropage.o
@$(LD) -o $@ -t module $^
#--------------------------------------------------------------------------
# Directories
@ -42,6 +57,19 @@ DIRS = common \
runtime \
system
#--------------------------------------------------------------------------
# Drivers
EMDS =
JOYS =
MOUS = #geos-stdmou.mou
SERS =
TGIS =
#--------------------------------------------------------------------------
# Directives
@ -54,9 +82,13 @@ vpath %.s $(DIRS)
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS)
all: $(C_OBJS) $(S_OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
@$(RM) $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS) $(EMDS:.emd=.o) $(JOYS:.joy=.o) $(MOUS:.mou=.o) $(SERS:.ser=.o) $(TGIS:.tgi=.o)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)

View File

@ -0,0 +1,10 @@
#
# makefile for CC65 runtime library
#
#--------------------------------------------------------------------------
# Object files
S_OBJS += fio_module.o \
mcbdefault.o \
mouse_stddrv.o

View File

@ -17,5 +17,4 @@ S_OBJS += startmousemode.o \
inittextprompt.o \
promptoff.o \
prompton.o \
getnextchar.o \
mouse.o
getnextchar.o