-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (22 loc) · 746 Bytes
/
Makefile
File metadata and controls
33 lines (22 loc) · 746 Bytes
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
SOURCE = MONIT.mac COMP.mac TRAP.mac JMP.mac FLOAT.mac
.PHONY: all clean
all: basic0010
ASM = ../bin/macro11
LINK = ../bin/link11
ODIR=out
_OBJ = $(SOURCE:.mac=.obj)
OBJ = $(ODIR)/BK.obj $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.obj: %.mac
mkdir -p out
$(ASM) -l $<.lst -ysl 16 -d IS -yus -o $@ $<
$(ODIR)/BK.obj: BK.mac GRAF.mac
mkdir -p out
$(ASM) -l $<.lst -ysl 16 -d IS -yus -o $@ BK.mac GRAF.mac
basic0010: $(OBJ)
mkdir -p out
$(LINK) /MAP /STB /BIN /B:120000 /EXECUTE:$(ODIR)/$@ $(OBJ)
full-listing:
$(ASM) -l basic.lst -ysl 16 -d IS -yus -o out/basic.obj BK.mac GRAF.mac MONIT.mac COMP.mac TRAP.mac JMP.mac FLOAT.mac
$(LINK) /MAP /STB /BIN /B:120000 /EXECUTE:out/basic.bin out/basic.obj
clean:
rm -f $(ODIR)/* *.lst