-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
57 lines (54 loc) · 2.05 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
52
53
54
55
56
57
BEEBASM?=beebasm
PYTHON?=python
# A make command with no arguments will build the Acornsoft variant with
# crc32 verification of the game binaries
#
# Optional arguments for the make command are:
#
# variant=<release> Build the specified variant:
#
# acornsoft (default)
# 4tracks
# superior
# revsplus
#
# verify=no Disable crc32 verification of the game binaries
#
# So, for example:
#
# make variant=revsplus verify=no
#
# will build the Revs+ variant with no crc32 verification
ifeq ($(variant), superior)
variant-number=2
folder=superior
suffix=-superior
else ifeq ($(variant), 4tracks)
variant-number=3
folder=4tracks
suffix=-4tracks
else ifeq ($(variant), revsplus)
variant-number=4
folder=revsplus
suffix=-plus
else
variant-number=1
folder=acornsoft
suffix=-acornsoft
endif
.PHONY:all
all:
echo _VARIANT=$(variant-number) > 1-source-files/main-sources/revs-build-options.asm
$(BEEBASM) -i 1-source-files/main-sources/revs-silverstone.asm -v > 3-assembled-output/compile.txt
$(BEEBASM) -i 1-source-files/main-sources/revs-brandshatch.asm -v >> 3-assembled-output/compile.txt
$(BEEBASM) -i 1-source-files/main-sources/revs-doningtonpark.asm -v >> 3-assembled-output/compile.txt
$(BEEBASM) -i 1-source-files/main-sources/revs-oultonpark.asm -v >> 3-assembled-output/compile.txt
$(BEEBASM) -i 1-source-files/main-sources/revs-snetterton.asm -v >> 3-assembled-output/compile.txt
$(BEEBASM) -i 1-source-files/main-sources/revs-nurburgring.asm -v >> 3-assembled-output/compile.txt
$(BEEBASM) -i 1-source-files/main-sources/revs-loader.asm -v >> 3-assembled-output/compile.txt
$(BEEBASM) -i 1-source-files/main-sources/revs-source.asm -v >> 3-assembled-output/compile.txt
$(PYTHON) 2-build-files/revs-checksum.py
$(BEEBASM) -i 1-source-files/main-sources/revs-disc.asm -do 5-compiled-game-discs/revs$(suffix).ssd -opt 3 -title "CAR"
ifneq ($(verify), no)
@$(PYTHON) 2-build-files/crc32.py 4-reference-binaries/$(folder) 3-assembled-output
endif