1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00

Replaced whole bunch for Makefiles with a single generic Makefile.

- No complex shell logic.
- "Source file shadowing" for all targets via vpath.
- Dependency handling.
- True incremental build.
- Don't write into source directories.
- Easy cleanup by just removing 'wrk'.
This commit is contained in:
Oliver Schmidt 2013-05-04 22:10:48 +02:00
parent 2cd8e140ad
commit 008b4c4e1d
138 changed files with 36 additions and 3707 deletions

View File

@ -1,182 +0,0 @@
#
# makefile for CC65 runtime library
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = apple2
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
CO = ../../src/co65/co65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -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) $<
%-emd.o: %.emd
@$(CO) -o $(*)-emd.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-emd.s
%-joy.o: %.joy
@$(CO) -o $(*)-joy.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-joy.s
%-mou.o: %.mou
@$(CO) -o $(*)-mou.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-mou.s
%-ser.o: %.ser
@$(CO) -o $(*)-ser.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-ser.s
%-tgi.o: %.tgi
@$(CO) -o $(*)-tgi.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-tgi.s
%.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 $^
#--------------------------------------------------------------------------
# Object files
C_OBJS= closedir.o \
opendir.o \
readdir.o \
rewinddir.o
S_OBJS= _scrsize.o \
break.o \
cclear.o \
cgetc.o \
chline.o \
close.o \
clrscr.o \
color.o \
cout.o \
cputc.o \
crt0.o \
ctype.o \
curdevice.o \
cvline.o \
devicedir.o \
dioclose.o \
diocommon.o \
dioopen.o \
dioread.o \
diosectcount.o \
diosectsize.o \
diowrite.o \
dosdetect.o \
exec.o \
exehdr.o \
filedes.o \
filename.o \
get_ostype.o \
getdevice.o \
gotoxy.o \
gotoy.o \
home.o \
initcwd.o \
iobuf.o \
irq.o \
isdevice.o \
joy_stat_stddrv.o \
joy_stddrv.o \
kbhit.o \
mainargs.o \
mcbdefault.o \
mli.o \
mouse_stat_stddrv.o \
mouse_stddrv.o \
open.o \
oserrlist.o \
oserror.o \
randomize.o \
rdkey.o \
read.o \
reboot.o \
revers.o \
rwcommon.o \
syschdir.o \
sysmkdir.o \
sysremove.o \
sysrename.o \
sysrmdir.o \
systime.o \
sysuname.o \
tgi_colors.o \
tgi_stat_stddrv.o \
tgi_stddrv.o \
toascii.o \
vtabz.o \
wherex.o \
wherey.o \
write.o \
$(EMDS:.emd=-emd.o) \
$(JOYS:.joy=-joy.o) \
$(MOUS:.mou=-mou.o) \
$(SERS:.ser=-ser.o) \
$(TGIS:.tgi=-tgi.o)
S_EXTRA_OBJS= \
extra/iobuf-0800.o
#--------------------------------------------------------------------------
# Drivers
EMDS = apple2-auxmem.emd
JOYS = apple2-stdjoy.joy
MOUS = apple2-stdmou.mou
SERS = apple2-ssc.ser
TGIS = apple2-280-192-8.tgi apple2-40-48-16.tgi
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS) $(S_EXTRA_OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS) $(S_EXTRA_OBJS) \
$(EMDS:.emd=.o) $(EMDS:.emd=-emd.s) \
$(JOYS:.joy=.o) $(JOYS:.joy=-joy.s) \
$(MOUS:.mou=.o) $(MOUS:.mou=-mou.s) \
$(SERS:.ser=.o) $(SERS:.ser=-ser.s) \
$(TGIS:.tgi=.o) $(TGIS:.tgi=-tgi.s)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)

View File

@ -129,7 +129,7 @@ DEFPALETTE: .byte $00, $01, $02, $03, $04, $05, $06, $07
FONT:
; Beagle Bros Shape Mechanic font F.ASCII.SMALL
; modified to exactly reproduce the text glyphs
.incbin "../apple2/apple2-280-192-8.fnt"
.incbin "a2.hi.fnt"
; ------------------------------------------------------------------------

View File

@ -344,4 +344,4 @@ BAR:
; ------------------------------------------------------------------------
.include "../tgi/tgidrv_line.inc"
.include "../../tgi/tgidrv_line.inc"

View File

@ -1,187 +0,0 @@
#
# makefile for CC65 runtime library
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = apple2enh
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
CO = ../../src/co65/co65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -I../apple2 -I../../asminc
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I ../apple2 -I ../../include
#--------------------------------------------------------------------------
# Rules
%.o: ../apple2/%.c
@$(CC) -o $(notdir $(*).s) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
%.o: ../apple2/%.s
@$(AS) -g -o $@ $(AFLAGS) $<
extra/%.o: ../apple2/extra/%.s
@$(AS) -g -o $@ $(AFLAGS) $<
%-emd.o: %.emd
@$(CO) -o $(*)-emd.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-emd.s
%-joy.o: %.joy
@$(CO) -o $(*)-joy.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-joy.s
%-mou.o: %.mou
@$(CO) -o $(*)-mou.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-mou.s
%-ser.o: %.ser
@$(CO) -o $(*)-ser.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-ser.s
%-tgi.o: %.tgi
@$(CO) -o $(*)-tgi.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-tgi.s
%.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 $^
#--------------------------------------------------------------------------
# Object files
C_OBJS= closedir.o \
opendir.o \
readdir.o \
rewinddir.o
S_OBJS= _scrsize.o \
break.o \
cclear.o \
cgetc.o \
chline.o \
close.o \
clrscr.o \
color.o \
cout.o \
cputc.o \
crt0.o \
ctype.o \
curdevice.o \
cvline.o \
devicedir.o \
dioclose.o \
diocommon.o \
dioopen.o \
dioread.o \
diosectcount.o \
diosectsize.o \
diowrite.o \
dosdetect.o \
exec.o \
exehdr.o \
filedes.o \
filename.o \
get_ostype.o \
getdevice.o \
gotoxy.o \
gotoy.o \
home.o \
initcwd.o \
iobuf.o \
irq.o \
isdevice.o \
joy_stat_stddrv.o \
joy_stddrv.o \
kbhit.o \
mainargs.o \
mcbdefault.o \
mli.o \
mouse_stat_stddrv.o \
mouse_stddrv.o \
open.o \
oserrlist.o \
oserror.o \
randomize.o \
rdkey.o \
read.o \
reboot.o \
revers.o \
rwcommon.o \
syschdir.o \
sysmkdir.o \
sysremove.o \
sysrename.o \
sysrmdir.o \
systime.o \
sysuname.o \
textframe.o \
tgi_colors.o \
tgi_stat_stddrv.o \
tgi_stddrv.o \
toascii.o \
videomode.o \
vtabz.o \
wherex.o \
wherey.o \
write.o \
$(EMDS:.emd=-emd.o) \
$(JOYS:.joy=-joy.o) \
$(MOUS:.mou=-mou.o) \
$(SERS:.ser=-ser.o) \
$(TGIS:.tgi=-tgi.o)
S_EXTRA_OBJS= \
extra/iobuf-0800.o
#--------------------------------------------------------------------------
# Drivers
EMDS = apple2-auxmem.emd
JOYS = apple2-stdjoy.joy
MOUS = apple2-stdmou.mou
SERS = apple2-ssc.ser
TGIS = apple2-280-192-8.tgi apple2-40-48-16.tgi
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS) $(S_EXTRA_OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS) $(S_EXTRA_OBJS) \
$(EMDS:.emd=.o) $(EMDS:.emd=-emd.s) \
$(JOYS:.joy=.o) $(JOYS:.joy=-joy.s) \
$(MOUS:.mou=.o) $(MOUS:.mou=-mou.s) \
$(SERS:.ser=.o) $(SERS:.ser=-ser.s) \
$(TGIS:.tgi=.o) $(TGIS:.tgi=-tgi.s)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)

View File

@ -1,171 +0,0 @@
#
# makefile for CC65 Atari runtime library
#
# NUMDRVS - number of supported drives (max. 16)
# 4 bytes for each device are statically allocated
# LINEBUF - support line buffered reads from E: (the number specifies
# the length of the buffer)
# UCASE_FILENAME - all filenames get uppercased
# DEFAULT_DEVICE - if the string passed to the uppercase function doesn't
# include a device (":" at position 2 or 3), provide "Dn:"
# as a default disk device
# n is the value of DEFAULT_DEVICE, unless DYNAMIC_DD is
# also set, in which case it's overridden by a runtime
# check (on SpartaDOS only)
# needs UCASE_FILENAME to be defined, otherwise no effect
# DYNAMIC_DD - determine default disk device at runtime (SpartaDOS only)
# needs DEFAULT_DEVICE to be defined, otherwise no effect
ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1 -DDEFAULT_DEVICE=1 -DLINEBUF=80
ATARIDEFS += -DDYNAMIC_DD=1
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = atari
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
CO = ../../src/co65/co65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -I../../asminc
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) $(CFLAGS) $(ATARIDEFS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $(ATARIDEFS) $<
%-emd.o: %.emd
@$(CO) -o $(*)-emd.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-emd.s
%-joy.o: %.joy
@$(CO) -o $(*)-joy.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-joy.s
%-tgi.o: %.tgi
@$(CO) -o $(*)-tgi.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-tgi.s
%.emd: %.o ../runtime/zeropage.o
@$(LD) -o $@ -t module $^
%.joy: %.o ../runtime/zeropage.o
@$(LD) -o $@ -t module $^
%.tgi: %.o ../runtime/zeropage.o atari_tgi_common.inc
@$(LD) -o $@ -t module $< ../runtime/zeropage.o
#--------------------------------------------------------------------------
# Object files
OBJS = _scrsize.o \
break.o \
cclear.o \
cgetc.o \
chline.o \
clock.o \
close.o \
clrscr.o \
color.o \
cputc.o \
crt0.o \
ctype.o \
cvline.o \
dio_cts.o \
dio_stc.o \
diopncls.o \
dioqsize.o \
dioread.o \
diowrite.o \
diowritev.o \
do_oserr.o \
dosdetect.o \
fdtable.o \
fdtab.o \
fdtoiocb.o \
getargs.o \
getdefdev.o \
getfd.o \
gotox.o \
gotoy.o \
gotoxy.o \
graphics.o \
initcwd.o \
inviocb.o \
irq.o \
joy_stat_stddrv.o \
joy_stddrv.o \
kbhit.o \
lseek.o \
mul40.o \
open.o \
oserrlist.o \
oserror.o \
ostype.o \
posixdirent.o \
randomize.o \
read.o \
revers.o \
rwcommon.o \
savevec.o \
scroll.o \
setcolor.o \
siocall.o \
syschdir.o \
sysmkdir.o \
sysremove.o \
sysrmdir.o \
systime.o \
sysuname.o \
tgi_colors.o \
tgi_stat_stddrv.o \
tgi_stddrv.o \
toascii.o \
tvtype.o \
ucase_fn.o \
wherex.o \
wherey.o \
write.o \
$(EMDS:.emd=-emd.o) \
$(JOYS:.joy=-joy.o) \
$(TGIS:.tgi=-tgi.o)
#--------------------------------------------------------------------------
# Drivers
EMDS = atari-130xe.emd
JOYS = atari-stdjoy.joy atari-multijoy.joy
TGIS = atari-3.tgi atari-4.tgi atari-5.tgi atari-6.tgi atari-7.tgi atari-8.tgi \
atari-9.tgi atari-10.tgi atari-11.tgi atari-14.tgi atari-15.tgi atari-8p2.tgi \
atari-9p2.tgi atari-10p2.tgi atari-15p2.tgi
#--------------------------------------------------------------------------
# Targets
all: $(OBJS) $(EMDS) $(JOYS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(OBJS) \
$(EMDS:.emd=.o) $(EMDS:.emd=-emd.s) \
$(JOYS:.joy=.o) $(JOYS:.joy=-joy.s) \
$(TGIS:.tgi=.o) $(TGIS:.tgi=-tgi.s)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(TGIS)

16
libsrc/atari/Makefile.inc Normal file
View File

@ -0,0 +1,16 @@
# NUMDRVS - number of supported drives (max. 16)
# 4 bytes for each device are statically allocated
# LINEBUF - support line buffered reads from E: (the number specifies
# the length of the buffer)
# UCASE_FILENAME - all filenames get uppercased
# DEFAULT_DEVICE - if the string passed to the uppercase function doesn't
# include a device (":" at position 2 or 3), provide "Dn:"
# as a default disk device
# n is the value of DEFAULT_DEVICE, unless DYNAMIC_DD is
# also set, in which case it's overridden by a runtime
# check (on SpartaDOS only)
# needs UCASE_FILENAME to be defined, otherwise no effect
# DYNAMIC_DD - determine default disk device at runtime (SpartaDOS only)
# needs DEFAULT_DEVICE to be defined, otherwise no effect
CFLAGS += -Wa -DNUMDRVS=4,-DLINEBUF=80,-DUCASE_FILENAME=1,-DDEFAULT_DEVICE=1,-DDYNAMIC_DD=1

View File

@ -1,141 +0,0 @@
#
# makefile for CC65 runtime library
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = atmos
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
CO = ../../src/co65/co65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -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) $<
%-emd.o: %.emd
@$(CO) -o $(*)-emd.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-emd.s
%-joy.o: %.joy
@$(CO) -o $(*)-joy.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-joy.s
%-mou.o: %.mou
@$(CO) -o $(*)-mou.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-mou.s
%-ser.o: %.ser
@$(CO) -o $(*)-ser.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-ser.s
%-tgi.o: %.tgi
@$(CO) -o $(*)-tgi.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-tgi.s
%.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 $^
#--------------------------------------------------------------------------
# Object files
OBJS = _scrsize.o \
atmos_load.o \
atmos_save.o \
cclear.o \
cgetc.o \
chline.o \
clock.o \
clrscr.o \
color.o \
cputc.o \
crt0.o \
ctype.o \
cvline.o \
gotox.o \
gotoxy.o \
gotoy.o \
irq.o \
joy_stat_stddrv.o \
joy_stddrv.o \
kbhit.o \
mainargs.o \
oserrlist.o \
oserror.o \
revers.o \
store_filename.o \
systime.o \
sysuname.o \
tgi_colors.o \
tgi_stat_stddrv.o \
tgi_stddrv.o \
toascii.o \
wherex.o \
wherey.o \
write.o \
$(EMDS:.emd=-emd.o) \
$(JOYS:.joy=-joy.o) \
$(MOUS:.mou=-mou.o) \
$(SERS:.ser=-ser.o) \
$(TGIS:.tgi=-tgi.o)
#--------------------------------------------------------------------------
# Drivers
EMDS =
JOYS = atmos-pase.joy
MOUS =
SERS = atmos-acia.ser
TGIS = atmos-240-200-2.tgi atmos-228-200-3.tgi
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(OBJS) \
$(EMDS:.emd=.o) $(EMDS:.emd=-emd.s) \
$(JOYS:.joy=.o) $(JOYS:.joy=-joy.s) \
$(MOUS:.mou=.o) $(MOUS:.mou=-mou.s) \
$(SERS:.ser=.o) $(SERS:.ser=-ser.s) \
$(TGIS:.tgi=.o) $(TGIS:.tgi=-tgi.s)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)

View File

@ -1,147 +0,0 @@
#
# makefile for CC65 runtime library
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = c128
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
CO = ../../src/co65/co65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -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) $<
%-emd.o: %.emd
@$(CO) -o $(*)-emd.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-emd.s
%-joy.o: %.joy
@$(CO) -o $(*)-joy.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-joy.s
%-mou.o: %.mou
@$(CO) -o $(*)-mou.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-mou.s
%-ser.o: %.ser
@$(CO) -o $(*)-ser.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-ser.s
%-tgi.o: %.tgi
@$(CO) -o $(*)-tgi.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-tgi.s
%.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 $^
#--------------------------------------------------------------------------
# Object files
OBJS = _scrsize.o \
break.o \
c64mode.o \
cgetc.o \
clrscr.o \
conio.o \
crt0.o \
color.o \
cputc.o \
devnum.o \
fast.o \
get_tv.o \
irq.o \
joy_stat_stddrv.o \
joy_stddrv.o \
kbhit.o \
kernal.o \
mainargs.o \
mcbdefault.o \
mouse_stat_stddrv.o \
mouse_stddrv.o \
randomize.o \
revers.o \
slow.o \
status.o \
systime.o \
sysuname.o \
tgi_colors.o \
tgi_stat_stddrv.o \
tgi_stddrv.o \
toggle_videomode.o \
videomode.o \
$(EMDS:.emd=-emd.o) \
$(JOYS:.joy=-joy.o) \
$(MOUS:.mou=-mou.o) \
$(SERS:.ser=-ser.o) \
$(TGIS:.tgi=-tgi.o)
#--------------------------------------------------------------------------
# Drivers
EMDS = c128-georam.emd \
c128-ram.emd \
c128-ram2.emd \
c128-ramcart.emd \
c128-reu.emd \
c128-vdc.emd
JOYS = c128-ptvjoy.joy \
c128-stdjoy.joy
MOUS = c128-1351.mou \
c128-joymouse.mou \
c128-potmouse.mou
SERS = c128-swlink.ser
TGIS = c128-640-200-2.tgi \
c128-640-480-2.tgi
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(OBJS) \
$(EMDS:.emd=.o) $(EMDS:.emd=-emd.s) \
$(JOYS:.joy=.o) $(JOYS:.joy=-joy.s) \
$(MOUS:.mou=.o) $(MOUS:.mou=-mou.s) \
$(SERS:.ser=.o) $(SERS:.ser=-ser.s) \
$(TGIS:.tgi=.o) $(TGIS:.tgi=-tgi.s)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)

View File

@ -775,4 +775,4 @@ VDCWriteReg:
; ------------------------------------------------------------------------
.include "../tgi/tgidrv_line.inc"
.include "../../tgi/tgidrv_line.inc"

View File

@ -789,4 +789,4 @@ VDCWriteReg:
; ------------------------------------------------------------------------
.include "../tgi/tgidrv_line.inc"
.include "../../tgi/tgidrv_line.inc"

View File

@ -1,118 +0,0 @@
#
# makefile for CC65 runtime library (C16)
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = c16
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
CO = ../../src/co65/co65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -I. -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) $<
%-emd.o: %.emd
@$(CO) -o $(*)-emd.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-emd.s
%-joy.o: %.joy
@$(CO) -o $(*)-joy.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-joy.s
%-ser.o: %.ser
@$(CO) -o $(*)-ser.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-ser.s
%-tgi.o: %.tgi
@$(CO) -o $(*)-tgi.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-tgi.s
%.emd: %.o ../runtime/zeropage.o
@$(LD) -o $@ -t module $^
%.joy: %.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 $^
#--------------------------------------------------------------------------
# Object files
OBJS = _scrsize.o \
break.o \
cgetc.o \
clrscr.o \
color.o \
conio.o \
cputc.o \
crt0.o \
devnum.o \
get_tv.o \
irq.o \
joy_stat_stddrv.o \
joy_stddrv.o \
kbhit.o \
kclose.o \
kernal.o \
mainargs.o \
randomize.o \
revers.o \
status.o \
systime.o \
sysuname.o \
$(EMDS:.emd=-emd.o) \
$(JOYS:.joy=-joy.o) \
$(SERS:.ser=-ser.o) \
$(TGIS:.tgi=-tgi.o)
#--------------------------------------------------------------------------
# Drivers
EMDS = c16-ram.emd
JOYS = c16-stdjoy.joy
SERS =
TGIS =
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(SERS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(OBJS) \
$(EMDS:.emd=.o) $(EMDS:.emd=-emd.s) \
$(JOYS:.joy=.o) $(JOYS:.joy=-joy.s) \
$(SERS:.ser=.o) $(SERS:.ser=-ser.s) \
$(TGIS:.tgi=.o) $(TGIS:.tgi=-tgi.s)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS)

View File

@ -5,5 +5,5 @@
; Ullrich von Bassewitz, 2002-12-21
;
.include "../plus4/plus4-stdjoy.s"
.include "../../plus4/joy/plus4-stdjoy.s"

View File

@ -1,148 +0,0 @@
#
# makefile for CC65 runtime library
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = c64
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
CO = ../../src/co65/co65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -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) $<
%-emd.o: %.emd
@$(CO) -o $(*)-emd.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-emd.s
%-joy.o: %.joy
@$(CO) -o $(*)-joy.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-joy.s
%-mou.o: %.mou
@$(CO) -o $(*)-mou.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-mou.s
%-ser.o: %.ser
@$(CO) -o $(*)-ser.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-ser.s
%-tgi.o: %.tgi
@$(CO) -o $(*)-tgi.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-tgi.s
%.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 $^
#--------------------------------------------------------------------------
# Object files
OBJS = _scrsize.o \
break.o \
crt0.o \
cgetc.o \
clrscr.o \
color.o \
conio.o \
cputc.o \
devnum.o \
get_ostype.o \
get_tv.o \
irq.o \
joy_stat_stddrv.o \
joy_stddrv.o \
kbhit.o \
kernal.o \
kplot.o \
mainargs.o \
mcbdefault.o \
mouse_stat_stddrv.o \
mouse_stddrv.o \
randomize.o \
revers.o \
status.o \
systime.o \
sysuname.o \
tgi_colors.o \
tgi_stat_stddrv.o \
tgi_stddrv.o \
$(EMDS:.emd=-emd.o) \
$(JOYS:.joy=-joy.o) \
$(MOUS:.mou=-mou.o) \
$(SERS:.ser=-ser.o) \
$(TGIS:.tgi=-tgi.o)
#--------------------------------------------------------------------------
# Drivers
EMDS = c64-c256k.emd \
c64-dqbb.emd \
c64-georam.emd \
c64-isepic.emd \
c64-ram.emd \
c64-ramcart.emd \
c64-reu.emd \
c64-vdc.emd \
dtv-himem.emd
JOYS = c64-hitjoy.joy \
c64-numpad.joy \
c64-ptvjoy.joy \
c64-stdjoy.joy
MOUS = c64-1351.mou \
c64-joymouse.mou \
c64-potmouse.mou
SERS = c64-swlink.ser
TGIS = c64-320-200-2.tgi
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(OBJS) \
$(EMDS:.emd=.o) $(EMDS:.emd=-emd.s) \
$(JOYS:.joy=.o) $(JOYS:.joy=-joy.s) \
$(MOUS:.mou=.o) $(MOUS:.mou=-mou.s) \
$(SERS:.ser=.o) $(SERS:.ser=-ser.s) \
$(TGIS:.tgi=.o) $(TGIS:.tgi=-tgi.s)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(MOUS) $(SERS) $(TGIS)

0
libsrc/c64/c64-c256k.s → libsrc/c64/emd/c64-c256k.s Executable file → Normal file
View File

0
libsrc/c64/c64-dqbb.s → libsrc/c64/emd/c64-dqbb.s Executable file → Normal file
View File

View File

View File

View File

View File

@ -1,114 +0,0 @@
#
# 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) --forget-inc-paths -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 \
opendir.o \
readdir.o \
seekdir.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_getin.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_filetype.o \
cbm_open.o \
cbm_read.o \
cbm_write.o \
cclear.o \
chline.o \
clock.o \
close.o \
closedir.o \
ctype.o \
curdevice.o \
cvline.o \
devicedir.o \
dir.o \
diskcmd.o \
diskinit.o \
exehdr.o \
filedes.o \
filename.o \
filetype.o \
filevars.o \
getdevice.o \
gotox.o \
gotoxy.o \
gotoy.o \
initcwd.o \
loadaddr.o \
open.o \
oserrlist.o \
oserror.o \
read.o \
rewinddir.o \
rwcommon.o \
scratch.o \
syschdir.o \
sysremove.o \
sysrename.o \
telldir.o \
toascii.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

View File

@ -1,128 +0,0 @@
#
# makefile for CC65 runtime library
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = cbm510
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
CO = ../../src/co65/co65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -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) $<
%-emd.o: %.emd
@$(CO) -o $(*)-emd.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-emd.s
%-joy.o: %.joy
@$(CO) -o $(*)-joy.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-joy.s
%-ser.o: %.ser
@$(CO) -o $(*)-ser.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-ser.s
%-tgi.o: %.tgi
@$(CO) -o $(*)-tgi.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-tgi.s
%.emd: %.o ../runtime/zeropage.o extzp.o
@$(LD) -o $@ -t module $^
%.joy: %.o ../runtime/zeropage.o extzp.o
@$(LD) -o $@ -t module $^
%.ser: %.o ../runtime/zeropage.o extzp.o
@$(LD) -o $@ -t module $^
%.tgi: %.o ../runtime/zeropage.o extzp.o
@$(LD) -o $@ -t module $^
#--------------------------------------------------------------------------
# Object files
OBJS = _scrsize.o \
banking.o \
break.o \
cgetc.o \
clrscr.o \
color.o \
cputc.o \
crt0.o \
devnum.o \
extzp.o \
irq.o \
joy_stat_stddrv.o \
joy_stddrv.o \
kbhit.o \
kclose.o \
kernal.o \
kiobase.o \
kopen.o \
krdtim.o \
kreadst.o \
kscnkey.o \
kscreen.o \
ksetnam.o \
ksettim.o \
kudtim.o \
mainargs.o \
peeksys.o \
pokesys.o \
randomize.o \
revers.o \
systime.o \
sysuname.o \
$(EMDS:.emd=-emd.o) \
$(JOYS:.joy=-joy.o) \
$(SERS:.ser=-ser.o) \
$(TGIS:.tgi=-tgi.o)
#--------------------------------------------------------------------------
# Drivers
EMDS = cbm510-ram.emd
JOYS = cbm510-stdjoy.joy
SERS = cbm510-stdser.ser
TGIS =
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(SERS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(OBJS) \
$(EMDS:.emd=.o) $(EMDS:.emd=-emd.s) \
$(JOYS:.joy=.o) $(JOYS:.joy=-joy.s) \
$(SERS:.ser=.o) $(SERS:.ser=-ser.s) \
$(TGIS:.tgi=.o) $(TGIS:.tgi=-tgi.s)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS)

View File

@ -6,12 +6,11 @@
;
.include "zeropage.inc"
.include "extzp.inc"
.include "../extzp.inc"
.include "joy-kernel.inc"
.include "joy-error.inc"
.include "cbm510.inc"
.include "extzp.inc"
.macpack generic

View File

@ -22,7 +22,7 @@
;
.include "zeropage.inc"
.include "extzp.inc"
.include "../extzp.inc"
.include "ser-kernel.inc"
.include "ser-error.inc"
.include "cbm510.inc"

View File

@ -1,127 +0,0 @@
#
# makefile for CC65 runtime library
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = cbm610
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
CO = ../../src/co65/co65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -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) $<
%-emd.o: %.emd
@$(CO) -o $(*)-emd.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-emd.s
%-joy.o: %.joy
@$(CO) -o $(*)-joy.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-joy.s
%-ser.o: %.ser
@$(CO) -o $(*)-ser.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-ser.s
%-tgi.o: %.tgi
@$(CO) -o $(*)-tgi.s --code-label _$(subst -,_,$(*)) $<
@$(AS) -o $@ $(AFLAGS) $(*)-tgi.s
%.emd: %.o ../runtime/zeropage.o extzp.o
@$(LD) -o $@ -t module $^
%.joy: %.o ../runtime/zeropage.o extzp.o
@$(LD) -o $@ -t module $^
%.ser: %.o ../runtime/zeropage.o extzp.o
@$(LD) -o $@ -t module $^
%.tgi: %.o ../runtime/zeropage.o extzp.o
@$(LD) -o $@ -t module $^
#--------------------------------------------------------------------------
# Object files
OBJS = _scrsize.o \
banking.o \
break.o \
cgetc.o \
clrscr.o \
color.o \
cputc.o \
crt0.o \
crtc.o \
devnum.o \
extzp.o \
get_tv.o \
irq.o \
kbhit.o \
kclose.o \
kernal.o \
kiobase.o \
kopen.o \
krdtim.o \
kreadst.o \
kscnkey.o \
kscreen.o \
ksetnam.o \
ksettim.o \
kudtim.o \
mainargs.o \
peeksys.o \
pokesys.o \
randomize.o \
revers.o \
systime.o \
sysuname.o \
$(EMDS:.emd=-emd.o) \
$(JOYS:.joy=-joy.o) \
$(SERS:.ser=-ser.o) \
$(TGIS:.tgi=-tgi.o)
#--------------------------------------------------------------------------
# Drivers
EMDS = cbm610-ram.emd
JOYS =
SERS = cbm610-stdser.ser
TGIS =
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS) $(EMDS) $(JOYS) $(SERS) $(TGIS)
../runtime/zeropage.o:
$(MAKE) -C $(dir $@) $(notdir $@)
clean:
@$(RM) $(OBJS) \
$(EMDS:.emd=.o) $(EMDS:.emd=-emd.s) \
$(JOYS:.joy=.o) $(JOYS:.joy=-joy.s) \
$(SERS:.ser=.o) $(SERS:.ser=-ser.s) \
$(TGIS:.tgi=.o) $(TGIS:.tgi=-tgi.s)
zap: clean
@$(RM) $(EMDS) $(JOYS) $(SERS) $(TGIS)

View File

@ -22,7 +22,7 @@
;
.include "zeropage.inc"
.include "extzp.inc"
.include "../extzp.inc"
.include "ser-kernel.inc"
.include "ser-error.inc"
.include "cbm610.inc"

View File

@ -1,223 +0,0 @@
# -*- makefile -*-
#
# makefile for CC65's common 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) --forget-inc-paths -I../../asminc
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) $(CFLAGS) $<
@$(AS) -g -o $@ $(AFLAGS) $(*).s
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Rules to help us see what code the compiler and assembler make.
%.s : %.c
@$(CC) $(CFLAGS) -S $<
%.lst : %.s
@$(AS) $(AFLAGS) -l -o /dev/null $<
#--------------------------------------------------------------------------
# Object files
# From C source-files
C_OBJS = _afailed.o \
_hextab.o \
_longminstr.o \
_poserror.o \
_scanf.o \
abort.o \
asctime.o \
bsearch.o \
errormsg.o \
fdopen.o \
fgetc.o \
fgetpos.o \
fgets.o \
fputc.o \
fputs.o \
freopen.o \
fseek.o \
fsetpos.o \
ftell.o \
getchar.o \
getopt.o \
gets.o \
gmtime.o \
locale.o \
localtime.o \
mktime.o \
perror.o \
pmemalign.o \
puts.o \
qsort.o \
realloc.o \
rewind.o \
sleep.o \
strftime.o \
strtok.o \
strtol.o \
strtoul.o \
strxfrm.o \
system.o \
timezone.o
# From assembly source-files
S_OBJS = _cwd.o \
_environ.o \
_fdesc.o \
_file.o \
_fopen.o \
_heap.o \
_heapadd.o \
_heapblocksize.o \
_heapmaxavail.o \
_heapmemavail.o \
_oserror.o \
_printf.o \
_seterrno.o \
_swap.o \
_sys.o \
abs.o \
atexit.o \
atoi.o \
calloc.o \
cc65_idiv32by16r16.o \
cc65_imul16x16r32.o \
cc65_sincos.o \
cc65_udiv32by16r16.o \
cc65_umul16x16r32.o \
cc65_umul16x8r32.o \
chdir.o \
copydata.o \
creat.o \
ctime.o \
divt.o \
errno.o \
fclose.o \
fmisc.o \
fopen.o \
fprintf.o \
fread.o \
free.o \
fscanf.o \
fwrite.o \
getcpu.o \
getcwd.o \
getenv.o \
interrupt.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 \
memchr.o \
memcmp.o \
memcpy.o \
memmove.o \
memset.o \
mkdir.o \
modfree.o \
modload.o \
printf.o \
putchar.o \
putenv.o \
rand.o \
raise.o \
remove.o \
rename.o \
rmdir.o \
scanf.o \
searchenv.o \
setjmp.o \
signal.o \
sigtable.o \
snprintf.o \
sprintf.o \
sscanf.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 \
strnicmp.o \
stroserr.o \
strpbrk.o \
strrchr.o \
strspn.o \
strstr.o \
strtoimax.o \
strtoumax.o \
strupper.o \
time.o \
tolower.o \
toupper.o \
uname.o \
ungetc.o \
unlink.o \
utscopy.o \
vfprintf.o \
vfscanf.o \
vprintf.o \
vscanf.o \
vsnprintf.o \
vsprintf.o \
vsscanf.o \
zerobss.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS)
clean:
@$(RM) *~ *.lst
@$(RM) $(C_OBJS:.o=.s)
@$(RM) $(C_OBJS)
@$(RM) $(S_OBJS)
zap: clean

View File

@ -1,63 +0,0 @@
# -*- makefile -*-
#
# makefile for CC65's console 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) --forget-inc-paths -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) $<
#--------------------------------------------------------------------------
# Rules to help us see what code the compiler and assembler make.
#%.s : %.c
# @$(CC) $(CFLAGS) -S $<
%.lst : %.s
@$(AS) $(AFLAGS) -l -o /dev/null $<
#--------------------------------------------------------------------------
# Object files
OBJS = _cursor.o \
cprintf.o \
cputhex.o \
cputs.o \
cscanf.o \
cursor.o \
scrsize.o \
vcprintf.o \
vcscanf.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(OBJS)
clean:
@$(RM) *~ *.lst $(OBJS)
zap: clean

View File

@ -1,47 +0,0 @@
#
# 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) --forget-inc-paths -I../../asminc
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) $(CFLAGS) $<
@$(AS) -g -o $@ $(AFLAGS) $(*).s
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS = dbg.o
S_OBJS = asmtab.o dbgdasm.o dbgdump.o dbgisram.o dbgsupp.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS)
clean:
@$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
zap: clean

View File

@ -1,56 +0,0 @@
#
# Makefile for the extended memory 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) --forget-inc-paths -I../../asminc
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) $(CFLAGS) $<
@$(AS) -g -o $@ $(AFLAGS) $(*).s
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
#--------------------------------------------------------------------------
# Object files
C_OBJS =
S_OBJS = em-kernel.o \
em_commit.o \
em_copyto.o \
em_copyfrom.o \
em_load.o \
em_map.o \
em_pagecount.o \
em_unload.o \
em_use.o
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
all: $(C_OBJS) $(S_OBJS)
clean:
@$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
zap: clean

View File

@ -1,83 +0,0 @@
#
# makefile for CC65 runtime library
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = geos-apple2
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -I. -I../geos-common -I../../asminc
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) -o $(notdir $(*).s) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
%.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
DIRS = disk
#--------------------------------------------------------------------------
# Drivers
EMDS =
JOYS =
MOUS =
SERS =
TGIS =
#--------------------------------------------------------------------------
# Directives
include $(addsuffix /Makefile, $(DIRS))
vpath %.c $(DIRS)
vpath %.s $(DIRS)
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
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) $(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 @@
CFLAGS += -Wa -Igeos-apple,-Igeos-common

View File

@ -1,10 +0,0 @@
#
# makefile for CC65 runtime library
#
#--------------------------------------------------------------------------
# Object files
S_OBJS += enterturbo.o \
exitturbo.o \
purgeturbo.o

View File

@ -1,87 +0,0 @@
#
# makefile for CC65 runtime library
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = geos-cbm
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -I. -I../geos-common -I../../asminc
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) -o $(notdir $(*).s) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
%.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
DIRS = disk \
drivers \
file \
memory \
system
#--------------------------------------------------------------------------
# Drivers
EMDS = geos-vdc.emd
JOYS = geos-stdjoy.joy
MOUS =
SERS =
TGIS = geos-tgi.tgi
#--------------------------------------------------------------------------
# Directives
include $(addsuffix /Makefile, $(DIRS))
vpath %.c $(DIRS)
vpath %.s $(DIRS)
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
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) $(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 @@
CFLAGS += -Wa -Igeos-cbm,-Igeos-common

View File

@ -1,29 +0,0 @@
#
# makefile for CC65 runtime library
#
#--------------------------------------------------------------------------
# Object files
S_OBJS += changediskdevice.o \
chkdkgeos.o \
dio_cts.o \
dio_openclose.o \
dio_params.o \
dio_qcount.o \
dio_qsize.o \
dio_read.o \
dio_stc.o \
dio_write.o \
dio_writev.o \
enterturbo.o \
exitturbo.o \
findbambit.o \
newdisk.o \
purgeturbo.o \
readblock.o \
readbuff.o \
setgeosdisk.o \
writeblock.o \
writebuff.o \
verwriteblock.o

View File

@ -1,10 +0,0 @@
#
# makefile for CC65 runtime library
#
#--------------------------------------------------------------------------
# Object files
S_OBJS += joy_stddrv.o \
tgi_colors.o \
tgi_stddrv.o

View File

@ -1,8 +0,0 @@
#
# makefile for CC65 runtime library
#
#--------------------------------------------------------------------------
# Object files
S_OBJS += followchain.o

View File

@ -1,12 +0,0 @@
#
# makefile for CC65 runtime library
#
#--------------------------------------------------------------------------
# Object files
S_OBJS += fetchram.o \
reuregs.o \
stashram.o \
swapram.o \
verifyram.o

View File

@ -1,12 +0,0 @@
#
# makefile for CC65 runtime library
#
#--------------------------------------------------------------------------
# Object files
S_OBJS += get_ostype.o \
getserialnumber.o \
initdoneio.o \
setdevice.o \
tobasic.o

View File

@ -1,94 +0,0 @@
#
# makefile for CC65 runtime library
#
.SUFFIXES: .o .s .c
#--------------------------------------------------------------------------
# Programs and flags
SYS = geos-cbm
AS = ../../src/ca65/ca65
CC = ../../src/cc65/cc65
LD = ../../src/ld65/ld65
AFLAGS = -t $(SYS) --forget-inc-paths -I. -I../$(SYS) -I../../asminc
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
#--------------------------------------------------------------------------
# Rules
%.o: %.c
@$(CC) -o $(notdir $(*).s) $(CFLAGS) $<
@$(AS) -o $@ $(AFLAGS) $(*).s
%.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
DIRS = common \
conio \
dlgbox \
disk \
file \
graph \
memory \
menuicon \
mousesprite \
process \
runtime \
system
#--------------------------------------------------------------------------
# Drivers
EMDS =
JOYS =
MOUS = #geos-stdmou.mou
SERS =
TGIS =
#--------------------------------------------------------------------------
# Directives
include $(addsuffix /Makefile, $(DIRS))
vpath %.c $(DIRS)
vpath %.s $(DIRS)
#--------------------------------------------------------------------------
# Targets
.PHONY: all clean zap
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) $(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

@ -1,18 +0,0 @@
#
# makefile for CC65 runtime library
#
#--------------------------------------------------------------------------
# Object files
C_OBJS += _afailed.o \
_poserror.o \
abort.o \
perror.o \
sleep.o
S_OBJS += copydata.o \
memcpy.o \
memmove.o \
memset.o \
zerobss.o

View File

@ -1,18 +0,0 @@
#
# makefile for CC65 runtime library
#
#--------------------------------------------------------------------------
# Object files
S_OBJS += _scrsize.o \
cclear.o \
cgetc.o \
chline.o \
clrscr.o \
cputc.o \
cvline.o \
dummies.o \
gotoxy.o \
kbhit.o \
where.o

Some files were not shown because too many files have changed in this diff Show More