mirror of
https://github.com/a2stuff/prodos-drivers.git
synced 2024-06-07 04:29:30 +00:00
Build: Use cc65's make avail
This commit is contained in:
parent
b5b5b96d2a
commit
3c9c491bae
|
@ -3,8 +3,9 @@ os: osx
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- git clone https://github.com/cc65/cc65 /tmp/cc65 &&
|
- git clone https://github.com/cc65/cc65 /tmp/cc65 &&
|
||||||
make -C /tmp/cc65 ca65 ld65
|
sudo make -C /tmp/cc65 ca65 ld65 avail &&
|
||||||
|
ca65 --version
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make CC65=/tmp/cc65/bin
|
- make
|
||||||
|
|
11
Makefile
11
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
|
||||||
|
|
||||||
|
@ -32,12 +31,12 @@ clean:
|
||||||
rm -f $(OUTDIR)/*.o
|
rm -f $(OUTDIR)/*.o
|
||||||
rm -f $(OUTDIR)/*.list
|
rm -f $(OUTDIR)/*.list
|
||||||
rm -f $(OUTDIR)/$(TARGETS)
|
rm -f $(OUTDIR)/$(TARGETS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(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' $@
|
||||||
|
|
Loading…
Reference in New Issue
Block a user