-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
40 lines (30 loc) · 849 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
35
36
37
38
39
40
# Path to Linux utilities
ZXCC = zxcc
VOL180 = ../Tools/linux/vol180/vol180
# Path to CP/M utilities
ZSM4 = ../Tools/cpm/zsm4.com
DRLINK = ../Tools/cpm/drlink.com
TKB = ../Tools/cpm/tkb.com
.PREFIX:
.PREFIX: .mac .rel
SRCS = main.mac \
termdef.mac \
fileio.mac \
scrn.mac \
cmds.mac \
cpmio.mac \
rsxio.mac
OBJS = $(SRCS:.mac=.rel)
all: ted.com ted.tsk
$(OBJS): %.rel: %.mac *.inc
$(ZXCC) $(ZSM4) -"=$<"
ted.com: $(OBJS)
$(ZXCC) $(DRLINK) -"ted=termdef,main,fileio,scrn,cmds,cpmio"
mv ted.sym tedcpm.sym
ted.tsk: $(OBJS) syslib.lib
$(ZXCC) $(TKB) -"ted/ofmt=tsk,tedrsx.sym=termdef,main,fileio,scrn,cmds,rsxio,syslib/lb/task=...TED/ident="`date +%y%m%d`"/pri=65"
copy:
cpmrm -f p112 /dev/fd0 0:ted.com
cpmcp -f p112 /dev/fd0 ted.com 0:
clean:
rm -f ted.com ted.tsk *.rel *.sym *.prn *.map *.crf core *~ *.\$$\$$\$$