mirror of
https://github.com/cmosher01/Epple-II.git
synced 2025-01-13 21:33:02 +00:00
build roms
This commit is contained in:
parent
f50e73f7f2
commit
b2bcf31857
24
.github/workflows/build.yaml
vendored
Normal file
24
.github/workflows/build.yaml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
"build-roms":
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- name: "prepare runner"
|
||||
run: |
|
||||
set -x
|
||||
sudo apt-get update -qqq
|
||||
sudo apt-get upgrade -qqq
|
||||
sudo apt-get install -qqq xa65
|
||||
|
||||
- uses: "actions/checkout@v3"
|
||||
|
||||
- name: "make"
|
||||
run: |
|
||||
set -x
|
||||
cd rom
|
||||
make
|
@ -22,6 +22,7 @@ RELOC65=reloc65
|
||||
.r65.a65:
|
||||
$(RELOC65) -xt -o $@ $(RELOC65FLAGS) $<
|
||||
|
||||
.PHONY: all
|
||||
all: $(TARGETS)
|
||||
epple2sys.r65: CODE_SEG=64512
|
||||
epple2sys.s65: epple2sys.m4 asm.m4h
|
@ -1,58 +0,0 @@
|
||||
#@configure_input@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
AUTOMAKE_OPTIONS=-Wno-override
|
||||
|
||||
ZEROSEGS=-bd 0 -bb 0 -bz 0
|
||||
|
||||
.m4.s65:
|
||||
$(M4) -I $(srcdir) $(M4FLAGS) $< >$@
|
||||
|
||||
.s65.o65:
|
||||
$(XA65) -C -M -R -c -bt 0 $(ZERO_SEGS) -o $@ $(XA65FLAGS) $<
|
||||
|
||||
.o65.r65:
|
||||
$(LDO65) -bt $(CODE_SEG) $(ZERO_SEGS) -o $@ $(LD65FLAGS) $^
|
||||
|
||||
.r65.a65:
|
||||
$(RELOC65) -xt -o $@ $(RELOC65FLAGS) $<
|
||||
|
||||
libsysdir=$(prefix)/lib/epple2/system
|
||||
libcrddir=$(prefix)/lib/epple2/cards
|
||||
|
||||
libsys_DATA=epple2sys.a65
|
||||
libcrd_DATA=stdin.a65 stdout.a65 clock.a65
|
||||
noinst_DATA=epple2sys.md5 stdin.md5 stdout.md5 clock.md5
|
||||
EXTRA_DIST=epple2sys.m4 asm.m4h stdin.s65 stdout.s65 clock.s65 epple2sys.md5 stdin.md5 stdout.md5 clock.md5
|
||||
|
||||
epple2sys.r65: CODE_SEG=64512
|
||||
epple2sys.s65: epple2sys.m4 asm.m4h
|
||||
|
||||
clock.r65: CODE_SEG=0
|
||||
stdin.r65: CODE_SEG=0
|
||||
stdout.r65: CODE_SEG=0
|
||||
|
||||
define_new_md5: all
|
||||
$(MD5SUM) --binary epple2sys.a65 >$(srcdir)/epple2sys.md5
|
||||
|
||||
check_SCRIPTS=unit_test.sh
|
||||
TESTS=$(check_SCRIPTS)
|
||||
|
||||
unit_test.sh:
|
||||
touch $@
|
||||
if test "X$(MD5SUM)" == X ; \
|
||||
then \
|
||||
echo "echo \"md5sum program not found, so cannot run this test\" >&2" >>$@ ; \
|
||||
echo "exit 1" >>$@ ; \
|
||||
else \
|
||||
echo "set -e" >>$@ ; \
|
||||
echo "$(MD5SUM) --check --status --warn $(srcdir)/epple2sys.md5" >>$@ ; \
|
||||
echo "$(MD5SUM) --check --status --warn $(srcdir)/stdin.md5" >>$@ ; \
|
||||
echo "$(MD5SUM) --check --status --warn $(srcdir)/stdout.md5" >>$@ ; \
|
||||
echo "$(MD5SUM) --check --status --warn $(srcdir)/clock.md5" >>$@ ; \
|
||||
fi
|
||||
chmod +x $@
|
||||
|
||||
|
||||
|
||||
CLEANFILES=unit_test.sh *.a65 *.r65 epple2sys.s65
|
@ -1 +0,0 @@
|
||||
ef0159bc66a6f3b20e2fe6f634361a54 *clock.a65
|
@ -1 +0,0 @@
|
||||
784b0b39ee03b593dc83bb7f989c7205 *epple2sys.a65
|
@ -1 +0,0 @@
|
||||
a09d60bfcbbb5cbdb3334e5ae57ddc8b *stdin.a65
|
@ -1 +0,0 @@
|
||||
a414efb58aa5291e7888fb7a8b088c94 *stdout.a65
|
Loading…
x
Reference in New Issue
Block a user