-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.cpm86
More file actions
38 lines (28 loc) · 771 Bytes
/
Copy pathMakefile.cpm86
File metadata and controls
38 lines (28 loc) · 771 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
34
35
36
37
38
CC=aztec34_cc
CFLAGS=-D__CPM86__
STRIP=aztec34_sqz
LDFLAGS=-lm -lc86
LD=aztec34_link
BINEXT=.cmd
TOOLS=cmdinfo$(BINEXT) bin2cmd$(BINEXT) exe2cmd$(BINEXT)
all: $(TOOLS)
bin2cmd$(BINEXT): bin2cmd.o
$(LD) -o $@ $< $(LDFLAGS)
cmdinfo$(BINEXT): cmdinfo.o
$(LD) -o $@ $< $(LDFLAGS)
exe2cmd$(BINEXT): exe2cmd.o
$(LD) -o $@ $< $(LDFLAGS)
.c.o:
$(CC) $(CFLAGS) $<
$(STRIP) $@
clean:
$(RM) *.o $(TOOLS) cpmtest.img
cpmtest.img: $(TOOLS) Makefile
cp base.img cpmtest.img
cpmcp -f ibmpc-514ss cpmtest.img *.cmd 0:
cpmls -F -f ibmpc-514ss cpmtest.img 0:*.*
cpm86.img:
[ ! -f cpm86.img ] && wget https://github.com/tsupplis/cpm86-kernel/releases/download/v1.1-03-01/cpm86-1.img
[ ! -f cpm86.img ] && mv cpm86-1.img cpm86.img
test: cpmtest.img cpm86.img
./cpm86