-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
78 lines (62 loc) · 3.75 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
73
74
75
76
77
78
all: calc_org sdesb.bin desb.bin sesb.bin esb.bin sb.bin ssb.bin install.asm SQUANCHY.DSK Squanchy.zip
calc_org: calc_org.c
cc -Wall -Werror $^ -o $@
# Squanchy BASIC
sb.bin: equates.asm bas.asm calc_org
lwasm -D COLBASIC -D BASIC_START=32768 -o /dev/null equates.asm bas.asm --symbol-dump=$@.sym
lwasm -D COLBASIC -D BASIC_START=`./calc_org sb.bin.sym` -o $@ equates.asm bas.asm --list=$@.lst --symbol-dump=$@.sym
# Super Squanchy BASIC
ssb.bin: equates.asm bas.asm calc_org
lwasm -D COLBASIC -D COCO3 -D BASIC_START=32768 -o /dev/null equates.asm bas.asm --symbol-dump=$@.sym
lwasm -D COLBASIC -D COCO3 -D BASIC_START=`./calc_org ssb.bin.sym` -o $@ equates.asm bas.asm --list=$@.lst --symbol-dump=$@.sym
# Extended Squanchy BASIC
esb.bin: extbas.asm equates.asm bas.asm calc_org
lwasm -D EXTBASIC -D BASIC_START=32768 -o /dev/null equates.asm bas.asm --symbol-dump=$@.sym
lwasm -D EXTBASIC -D BASIC_START=`./calc_org esb.bin.sym` -o $@ equates.asm bas.asm --list=$@.lst --symbol-dump=$@.sym
# Super Extended Squanchy BASIC
sesb.bin: extbas.asm equates.asm bas.asm calc_org
lwasm -D EXTBASIC -D COCO3 -D BASIC_START=32768 -o /dev/null equates.asm bas.asm --symbol-dump=$@.sym
lwasm -D EXTBASIC -D COCO3 -D BASIC_START=`./calc_org sesb.bin.sym` -o $@ equates.asm bas.asm --list=$@.lst --symbol-dump=$@.sym
# Disk Extended Squanchy BASIC
desb.bin: disk.asm extbas.asm equates.asm bas.asm calc_org
lwasm -D DISKBASIC -D EXTBASIC -D BASIC_START=32768 -o /dev/null equates.asm bas.asm --symbol-dump=$@.sym
lwasm -D DISKBASIC -D EXTBASIC -D BASIC_START=`./calc_org desb.bin.sym` -o $@ equates.asm bas.asm --list=$@.lst --symbol-dump=$@.sym
# Super Disk Extended Squanchy BASIC
sdesb.bin: disk.asm extbas.asm equates.asm bas.asm calc_org
lwasm -D DISKBASIC -D EXTBASIC -D COCO3 -D BASIC_START=32768 -o /dev/null equates.asm bas.asm --symbol-dump=$@.sym
lwasm -D DISKBASIC -D EXTBASIC -D COCO3 -D BASIC_START=`./calc_org sdesb.bin.sym` -o $@ equates.asm bas.asm --list=$@.lst --symbol-dump=$@.sym
instsb.bin: sb.bin.sym install.asm
lwasm -o $@ $^ --list=$@.lst --symbol-dump=$@.sym
instssb.bin: ssb.bin.sym install.asm
lwasm -o $@ $^ --list=$@.lst --symbol-dump=$@.sym
instesb.bin: esb.bin.sym install.asm
lwasm -o $@ $^ --list=$@.lst --symbol-dump=$@.sym
instsesb.bin: sesb.bin.sym install.asm
lwasm -o $@ $^ --list=$@.lst --symbol-dump=$@.sym
instdesb.bin: desb.bin.sym install.asm
lwasm -o $@ $^ --list=$@.lst --symbol-dump=$@.sym
inssdesb.bin: sdesb.bin.sym install.asm
lwasm -o $@ $^ --list=$@.lst --symbol-dump=$@.sym
SQUANCHY.DSK: readme.bas desb.bas esb.bas sb.bas inssdesb.bin instdesb.bin instsb.bin instssb.bin sb.bin ssb.bin instesb.bin esb.bin instsesb.bin sesb.bin desb.bin sdesb.bin
decb dskini SQUANCHY.DSK
decb copy -2b instsb.bin SQUANCHY.DSK,INSTSB.BIN
decb copy -2b sb.bin SQUANCHY.DSK,SB.BIN
decb copy -2b instssb.bin SQUANCHY.DSK,INSTSSB.BIN
decb copy -2b ssb.bin SQUANCHY.DSK,SSB.BIN
decb copy -2b instesb.bin SQUANCHY.DSK,INSTESB.BIN
decb copy -2b esb.bin SQUANCHY.DSK,ESB.BIN
decb copy -2b instsesb.bin SQUANCHY.DSK,INSTSESB.BIN
decb copy -2b sesb.bin SQUANCHY.DSK,SESB.BIN
decb copy -2b instdesb.bin SQUANCHY.DSK,INSTDESB.BIN
decb copy -2b desb.bin SQUANCHY.DSK,DESB.BIN
decb copy -2b inssdesb.bin SQUANCHY.DSK,INSSDESB.BIN
decb copy -2b sdesb.bin SQUANCHY.DSK,SDESB.BIN
decb copy -t desb.bas SQUANCHY.DSK,DESB.BAS
decb copy -t esb.bas SQUANCHY.DSK,ESB.BAS
decb copy -t sb.bas SQUANCHY.DSK,SB.BAS
decb copy -t readme.bas SQUANCHY.DSK,README.BAS
Squanchy.zip: README.md SQUANCHY.DSK desb.bin.lst esb.bin.lst sb.bin.lst sdesb.bin.lst sesb.bin.lst ssb.bin.lst
rm -f Squanchy.zip
zip -9 Squanchy.zip README.md SQUANCHY.DSK desb.bin.lst esb.bin.lst sb.bin.lst sdesb.bin.lst sesb.bin.lst ssb.bin.lst
clean:
-rm -f *.bin *.lst *.sym calc_org Squanchy.zip SQUANCHY.DSK