Build: Use cc65's make avail

This commit is contained in:
Joshua Bell 2019-09-22 21:34:34 -07:00
parent 8893386d38
commit e2ba8c4be5
3 changed files with 16 additions and 6 deletions

11
.travis.yml Normal file
View File

@ -0,0 +1,11 @@
sudo: enabled
os: osx
language: c
install:
- git clone https://github.com/cc65/cc65 /tmp/cc65 &&
sudo make -C /tmp/cc65 ca65 ld65 avail &&
ca65 --version
script:
- make

View File

@ -1,7 +1,6 @@
CC65 = ~/dev/cc65/bin
CAFLAGS = --target apple2enh --list-bytes 0
CCFLAGS = --config apple2-asm.cfg
LDFLAGS = --config apple2-asm.cfg
OUTDIR = out
@ -23,11 +22,11 @@ clean:
$(OUTDIR)/%.o: %.s $(HEADERS)
$(CC65)/ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
$(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o
$(CC65)/ld65 $(CCFLAGS) -o $@ $<
ld65 $(LDFLAGS) -o $@ $<
xattr -wx prodos.AuxType '00 20' $@
$(OUTDIR)/%.CMD: $(OUTDIR)/%.cmd.o
$(CC65)/ld65 $(CCFLAGS) -o $@ $<
ld65 $(LDFLAGS) -o $@ $<

2
path.s
View File

@ -342,7 +342,7 @@ notok: dey
bne compose ; no such file - try next path directory
;; Check to see if type is CMD.
: lda FIFILID
lda FIFILID
cmp #$F0 ; CMD
bne compose ; wrong type - try next path directory