Build: Use cc65's make avail
This commit is contained in:
parent
8893386d38
commit
e2ba8c4be5
|
@ -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
|
9
Makefile
9
Makefile
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
CC65 = ~/dev/cc65/bin
|
|
||||||
CAFLAGS = --target apple2enh --list-bytes 0
|
CAFLAGS = --target apple2enh --list-bytes 0
|
||||||
CCFLAGS = --config apple2-asm.cfg
|
LDFLAGS = --config apple2-asm.cfg
|
||||||
|
|
||||||
OUTDIR = out
|
OUTDIR = out
|
||||||
|
|
||||||
|
@ -23,11 +22,11 @@ clean:
|
||||||
|
|
||||||
|
|
||||||
$(OUTDIR)/%.o: %.s $(HEADERS)
|
$(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
|
$(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o
|
||||||
$(CC65)/ld65 $(CCFLAGS) -o $@ $<
|
ld65 $(LDFLAGS) -o $@ $<
|
||||||
xattr -wx prodos.AuxType '00 20' $@
|
xattr -wx prodos.AuxType '00 20' $@
|
||||||
|
|
||||||
$(OUTDIR)/%.CMD: $(OUTDIR)/%.cmd.o
|
$(OUTDIR)/%.CMD: $(OUTDIR)/%.cmd.o
|
||||||
$(CC65)/ld65 $(CCFLAGS) -o $@ $<
|
ld65 $(LDFLAGS) -o $@ $<
|
||||||
|
|
2
path.s
2
path.s
|
@ -342,7 +342,7 @@ notok: dey
|
||||||
bne compose ; no such file - try next path directory
|
bne compose ; no such file - try next path directory
|
||||||
|
|
||||||
;; Check to see if type is CMD.
|
;; Check to see if type is CMD.
|
||||||
: lda FIFILID
|
lda FIFILID
|
||||||
cmp #$F0 ; CMD
|
cmp #$F0 ; CMD
|
||||||
bne compose ; wrong type - try next path directory
|
bne compose ; wrong type - try next path directory
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue