-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (33 loc) · 1.22 KB
/
Copy pathMakefile
File metadata and controls
37 lines (33 loc) · 1.22 KB
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
BEEBASM?=beebasm
PYTHON?=python
# A make command with no arguments will build the Play It Again Sam 6
# variant with crc32 verification of the game binaries
#
# Optional arguments for the make command are:
#
# variant=<release> Build the specified variant:
#
# sam6 (default)
#
# verify=no Disable crc32 verification of the game binaries
#
# So, for example:
#
# make variant=sam6 verify=no
#
# will build the Play It Again Sam 6 variant with no crc32 verification
variant-number=1
folder=sam6
suffix=-sam6
.PHONY:all
all:
echo _VARIANT=$(variant-number) > 1-source-files/main-sources/the-sentinel-build-options.asm
$(BEEBASM) -i 1-source-files/main-sources/the-sentinel-source.asm -v > 3-assembled-output/compile.txt
$(BEEBASM) -i 1-source-files/main-sources/the-sentinel-disc.asm -do 5-compiled-game-discs/the-sentinel$(suffix).ssd -opt 3 -title "The Sentinel"
ifneq ($(verify), no)
@$(PYTHON) 2-build-files/crc32.py 4-reference-binaries/$(folder) 3-assembled-output
endif
.PHONY:b2
b2:
curl -G "http://localhost:48075/reset/b2"
curl -H "Content-Type:application/binary" --upload-file "5-compiled-game-discs/the-sentinel$(suffix).ssd" "http://localhost:48075/run/b2?name=sentinel$(suffix).ssd"