-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
72 lines (58 loc) · 1.79 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.PHONY: behaviors clean charset disks diska diskb jmuddle muddle tools
all: diska diskb
clean:
rm -rf *.out *.prg dist/*
rm -f Actions/*.bin
rm -f Images/Heads/*.bin
rm -f Images/Props/*.bin
$(MAKE) -C Behaviors clean
$(MAKE) -C Launcher clean
$(MAKE) -C Main clean
$(MAKE) -C Sounds clean
$(MAKE) -C Tools/a65toprg clean
$(MAKE) -C Tools/filldisk clean
$(MAKE) -C Tools/habdiska clean
$(MAKE) -C Tools/macross clean
$(MAKE) -C Tools/mcmgtrim clean
$(MAKE) -C Tools/mtobin clean
$(MAKE) -C Tools/muddle clean
$(MAKE) -C Tools/slinky clean
tools:
$(MAKE) -C Tools/a65toprg
$(MAKE) -C Tools/filldisk
$(MAKE) -C Tools/habdiska
$(MAKE) -C Tools/macross macross
$(MAKE) -C Tools/mcmgtrim
$(MAKE) -C Tools/mtobin
$(MAKE) -C Tools/muddle all
$(MAKE) -C Tools/slinky
behaviors: tools
$(MAKE) -C Behaviors
images: tools
$(MAKE) -C Images/Heads props
$(MAKE) -C Images/Props props
sounds: tools
$(MAKE) -C Sounds sounds
main: tools
$(MAKE) -C Main
mkdist:
mkdir -p Dist
diska: mkdist launcher
launcher: main
$(MAKE) -C Launcher
jmuddle: tools
echo jmuddle: beta.mud
./Tools/muddle/jmuddle < beta.mud > beta.jlist || true
muddle: tools
echo muddle: beta.mud
./Tools/muddle/muddle < beta.mud > beta.list || true
charset: tools
echo making on_disk_charset.bin
./Tools/macross/macross -c -p -o on_disk_charset.obj on_disk_charset.m
./Tools/mtobin/mtobin on_disk_charset.obj on_disk_charset.dat
diskb: mkdist behaviors images sounds muddle jmuddle charset
dd if=image.dat of=image1.dat bs=30720 count=1 # block size 30720 == 0x7800
dd if=image.dat of=image2.dat bs=30720 count=1 skip=1 # add conv=sync if padding with zeros needed
dd if=head.dat of=head1.dat bs=30720 count=1
dd if=head.dat of=head2.dat bs=30720 count=1 skip=1
./Tools/filldisk/filldisk class_equates.m Dist/Habitat-B.d64