mirror of
https://github.com/cmosher01/Epple-II.git
synced 2025-01-22 16:32:52 +00:00
windows cross-compile
This commit is contained in:
parent
15f86ed1f5
commit
feba596d86
10
.travis.yml
10
.travis.yml
@ -32,13 +32,13 @@ matrix:
|
|||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get -qq update
|
- sudo apt-get -qq update
|
||||||
install:
|
install:
|
||||||
- sudo apt-get install -y build-essential mingw-w64 xa65
|
- sudo apt-get install -y mingw-w64 xa65
|
||||||
- curl -L https://www.libsdl.org/release/SDL2-devel-2.0.9-mingw.tar.gz >SDL2.tar.gz
|
- curl -L https://www.libsdl.org/release/SDL2-devel-2.0.9-mingw.tar.gz >SDL2.tar.gz && tar xzf SDL2.tar.gz
|
||||||
- tar xzf SDL2.tar.gz
|
|
||||||
- cd SDL2-* && sudo make cross CROSS_PATH=/usr ARCHITECTURES=x86_64-w64-mingw32 && cd -
|
- cd SDL2-* && sudo make cross CROSS_PATH=/usr ARCHITECTURES=x86_64-w64-mingw32 && cd -
|
||||||
script:
|
script:
|
||||||
- cd src && make -f Makefile.mingw
|
- make -f Makefile.mingw
|
||||||
- mkdir $NAME && cp $NAME.exe /usr/x86_64-w64-mingw32/bin/SDL2.dll $NAME
|
- mkdir $NAME && cp src/$NAME.exe /usr/x86_64-w64-mingw32/bin/SDL2.dll rom/*.a65 $NAME
|
||||||
|
- cp $NAME.mingw $NAME/$NAME.conf
|
||||||
- zip -r $NAME-windows $NAME
|
- zip -r $NAME-windows $NAME
|
||||||
- unzip -l $NAME-windows
|
- unzip -l $NAME-windows
|
||||||
|
|
||||||
|
4
Makefile.mingw
Normal file
4
Makefile.mingw
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
MAKEFILE=Makefile.mingw
|
||||||
|
all:
|
||||||
|
$(MAKE) -C rom -f $(MAKEFILE)
|
||||||
|
$(MAKE) -C src -f $(MAKEFILE)
|
8
conf/epple2.mingw
Normal file
8
conf/epple2.mingw
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
motherboard ram E MM5290 MM5290 MM5290 MK4116 MM5290 MM5290 MM5290 MK4116
|
||||||
|
motherboard ram D MM5290 MM5290 MK4116 MK4116 MM5290 MK4116 MM5290 MCM4116
|
||||||
|
motherboard ram C MK4116 MK4116 MM5290 MM5290 MM5290 MM5290 MM5290 MM5290
|
||||||
|
motherboard strap E 16K 8000
|
||||||
|
motherboard strap D 16K 4000
|
||||||
|
motherboard strap C 16K 0000
|
||||||
|
import motherboard rom 2C00 epple2sys.a65
|
||||||
|
slot 0 language
|
30
rom/Makefile.mingw
Normal file
30
rom/Makefile.mingw
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
TARGETS=epple2sys.a65 stdin.a65 stdout.a65 clock.a65
|
||||||
|
|
||||||
|
ZEROSEGS=-bd 0 -bb 0 -bz 0
|
||||||
|
|
||||||
|
M4=m4
|
||||||
|
XA65=xa
|
||||||
|
LDO65=ldo65
|
||||||
|
RELOC65=reloc65
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .m4 .s65 .o65 .r65 .a65
|
||||||
|
|
||||||
|
.m4.s65:
|
||||||
|
$(M4) -I ./ $(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) $<
|
||||||
|
|
||||||
|
all: $(TARGETS)
|
||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user