-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: clean
assemble: build/warships.a2
all: build/warships.a2 build/warships.wav build/disk.dsk
build/warships.a2: deps/a2asm warships.6502
mkdir -p build
deps/a2asm warships.6502 >build/warships.a2
build/warships.wav: build/warships.a2 deps/c2t
mkdir -p build
deps/c2t/bin/c2t-96h -2 build/warships.a2 build/warships.wav
build/disk.dsk: build/warships.a2 deps/ac.jar deps/disk.dsk
cp deps/disk.dsk build/disk.dsk
java -jar deps/ac.jar -dos build/disk.dsk WARSHIPS B <build/warships.a2
deps/ac.jar:
mkdir -p deps
curl -L 'https://github.com/AppleCommander/AppleCommander/releases/download/v1-5-0/AppleCommander-ac-1.5.0.jar' >deps/ac.jar
deps/disk.dsk:
mkdir -p deps
curl -L 'https://github.com/AppleWin/AppleWin/raw/master/bin/MASTER.DSK' >deps/disk.dsk
deps/a2asm:
mkdir -p deps
git clone https://github.com/taeber/a2asm deps/a2asm.git
cd deps/a2asm.git && \
go build -o ../a2asm cmd/a2asm/main.go
deps/c2t:
mkdir -p deps
git clone https://github.com/datajerk/c2t.git deps/c2t
cd deps/c2t && \
make
clean:
rm -rf ./build/ ./deps/