Build: Use cc65's make avail

This commit is contained in:
Joshua Bell 2019-09-22 21:33:54 -07:00
parent 2dfb4410a9
commit 754d267c1e
2 changed files with 14 additions and 4 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
@ -21,9 +20,9 @@ clean:
rm -f $(TARGETS)
$(OUTDIR)/%.o: %.s $(HEADERS)
$(CC65)/ca65 $(CAFLAGS) --listing $(basename $@).list -o $@ $<
ca65 $(CAFLAGS) --listing $(basename $@).list -o $@ $<
# System Files .SYS
$(OUTDIR)/%.SYS: $(OUTDIR)/%.o
$(CC65)/ld65 $(CCFLAGS) -o '$@' $<
ld65 $(LDFLAGS) -o '$@' $<
xattr -wx prodos.AuxType '00 20' $@