-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
51 lines (40 loc) · 2.1 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
41
42
43
44
45
46
47
48
49
50
51
VASM?=vasmarm_std
PYTHON?=python
# The deploy target deploys !Lander to a web server so archi.medes.live can load it
#
# LANDER_PATH should be set to the scp path of the server hosting the build
#
# e.g. export $LANDER_PATH=name@server.com:~/path/to
#
# Once deployed, you can load a URL like this to see the compiled game:
#
# https://archi.medes.live/#ff=14400&disc=https://server.com/path/to/!Lander.zip&autoboot=desktop%20filer_opendir%20HostFS::HostFS.$
.PHONY:all
all:
@$(PYTHON) 2-build-files/convert-to-vasm.py
rm -fr 5-compiled-game-discs/arthur/Game/*
rm -fr 5-compiled-game-discs/riscos/!Lander/*
rm -fr 5-compiled-game-discs/zip/*
$(VASM) -a2 -m2 -quiet -Fbin -L 3-assembled-output/compile.txt -o 3-assembled-output/GameCode.bin 3-assembled-output/Lander.arm
cp 3-assembled-output/GameCode.inf 5-compiled-game-discs/arthur/Game/GameCode.inf
cp 1-source-files/other-sources/arthur/Lander,ffb 5-compiled-game-discs/arthur/Game/Lander,ffb
cp 3-assembled-output/GameCode.bin 5-compiled-game-discs/arthur/Game/GameCode
@$(PYTHON) 2-build-files/export-symbols.py
$(VASM) -a2 -m2 -quiet -Fbin -L 3-assembled-output/compile-RunImage.txt -o 3-assembled-output/!RunImage.bin 3-assembled-output/RunImage.arm
cp 1-source-files/other-sources/riscos/!Run,feb 5-compiled-game-discs/riscos/!Lander/!Run,feb
cp 1-source-files/other-sources/riscos/!Sprites,ff9 5-compiled-game-discs/riscos/!Lander/!Sprites,ff9
cp 1-source-files/other-sources/riscos/MemAlloc,ffa 5-compiled-game-discs/riscos/!Lander/MemAlloc,ffa
cp 3-assembled-output/!RunImage.bin 5-compiled-game-discs/riscos/!Lander/!RunImage,ff8
@$(PYTHON) 2-build-files/convert-to-basic.py
cp 3-assembled-output/LanderSrc,fff 5-compiled-game-discs/LanderSrc,fff
cp -r 5-compiled-game-discs/riscos/!Lander .
zip -r \!Lander.zip !Lander -x "*/.*"
mv \!Lander.zip 5-compiled-game-discs/zip
rm -fr \!Lander
cp -r 5-compiled-game-discs/arthur/Game .
zip -r Game.zip Game -x "*/.*"
mv Game.zip 5-compiled-game-discs/zip
rm -fr Game
@$(PYTHON) 2-build-files/crc32.py 4-reference-binaries 3-assembled-output
deploy:
scp 5-compiled-game-discs/zip/!Lander.zip ${LANDER_PATH}