forked from OS2World/APP-EMULATOR-zmakebas
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
34 lines (24 loc) · 806 Bytes
/
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
ZMAKEBAS := ../zmakebas
RM := rm
MKDIR := mkdir
BD := ./compiled
all: $(BD) zxspectrum zxnext zx81
zxspectrum: $(BD)/demo.tap $(BD)/demolbl.tap
zxnext: $(BD)/zx-next-demo.bas $(BD)/zx-next-demolbl.bas
zx81: $(BD)/zx81-basic-demo.p $(BD)/zx81-basic-demo-lbl.p
$(BD)/demo.tap: demo.bas
$(ZMAKEBAS) -a 10 -o $@ -n "$(basename $^)" $^
$(BD)/demolbl.tap: demolbl.bas
$(ZMAKEBAS) -i 10 -a 10 -l -o $@ -n "$(basename $^)" $^
$(BD)/zx-next-demo.bas: zx-next-demo.bas
$(ZMAKEBAS) -a 10 -3 -o $@ $^
$(BD)/zx-next-demolbl.bas: zx-next-demolbl.bas
$(ZMAKEBAS) -i 10 -a 10 -3 -l -o $@ $^
$(BD)/zx81-basic-demo.p: zx81-basic-demo.bas
$(ZMAKEBAS) -a 10 -p -o $@ $^
$(BD)/zx81-basic-demo-lbl.p: zx81-basic-demo-lbl.bas
$(ZMAKEBAS) -i 10 -a 10 -l -p -o $@ $^
$(BD):
$(MKDIR) -p $(BD)
clean:
$(RM) $(BD)/*