-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
79 lines (59 loc) · 1.71 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
79
AS := ca65
CC := cl65
C1541 := c1541
X128 := x128
TIME := $(shell date +%y%m%d%H%M%S)
VOLNAME := run64 ${TIME},sy
PROGRAMS :=
VOLUMES := blank.d81 run64.d64 run64.d71 run64.d81
ifdef CC65_HOME
AS := $(CC65_HOME)/bin/$(AS)
CC := $(CC65_HOME)/bin/$(CC)
endif
ifdef VICE_HOME
C1541 := $(VICE_HOME)/$(C1541)
X128 := $(VICE_HOME)/$(X128)
endif
.PHONY: all clean check zap
ASFLAGS = --create-dep $(@:.o=.dep)
all: subdirs blank.d81 run64.d81
clean:
rm -f $(PROGRAMS)
rm -f $(VOLUMES)
rm -rf *.o $(VOLUMES)
zap: clean
rm -rf *.dep
test: clean subdirs blank.d81
# $(X128) -debugcart -limitcycles 10000000 -sounddev dummy -silent -console -8 $+
$(X128) blank.d81
disks: subdirs issue blank.d81 run64.d64 run64.d71 run64.d81
subdirs:
cd boot ; make clean ; make
cd tools ; make clean ; make
cd vdc64 ; make clean ; make
# cd fifth ; make $+
issue:
echo "${VOLNAME}" > s/issue,s
echo >> s/issue,s ; echo >> s/issue,s
fortune -s > s/issue,s
echo >> s/issue,s ; echo >> s/issue,s
fortune -l >> s/issue,s
# echo >> s/issue,s ; echo >> s/issue,s
# fortune -o >> s/issue,s
blank.d81: ${PROGRAMS} Makefile
$(C1541) -format "${VOLNAME}" d81 blank.d81
./install_boot.sh blank.d81
run64.d64: ${PROGRAMS} Makefile
$(C1541) -format "${VOLNAME}" d64 run64.d64
./install.sh run64.d64 c1541
run64.d71: ${PROGRAMS} Makefile
$(C1541) -format "${VOLNAME}" d71 run64.d71
./install.sh run64.d71 c1541 c1571
run64.d81: ${PROGRAMS} Makefile
$(C1541) -format "${VOLNAME}" d81 run64.d81
./install.sh run64.d81 c1541 c1571 c1581
cobol: run64.d81
cd cobol ; ./install.sh ../run64.d81
chicli: run64.d81
cd chicli ; ./install.sh ../run64.d81
-include *.dep