-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
80 lines (62 loc) · 1.47 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
80
# (k) ALL RIGHTS REVERSED - Reprint what you like
#
# Prickle-Prickle, the 53rd day of Confusion in the YOLD 3179
#
# Albert Veli
PROGGY = furelise
# Main source file
SRC = $(PROGGY).asm
# Sources included from main source file
INCSRCS = abengine.asm octave.asm
# Probably no need to change anything below this line
TAP = $(PROGGY).tap
BIN = $(PROGGY).bin
ZXTAP = ZX_Tap/zxtap
# zxtap options
REMS = \
-r " __" \
-r " |--| _" \
-r " | | |~" \
-r " () () |" \
-r " |\ ()" \
-r " | \\" \
-r " () |" \
-r " |" \
-r " ()"
SCREEN = ZX_Tap/examples/beethoven.scr
ZXTOPTS = $(REMS) -s $(SCREEN) -b 0 -p 7 -i 0
ASDIR = z80asm
AS = $(ASDIR)/z80asm
# Flags (for freqs.c)
CFLAGS = -O2 -W -Wall
all: $(TAP) engines
$(TAP): $(BIN) $(ZXTAP)
$(ZXTAP) -o $@ $(ZXTOPTS) $(BIN)
$(BIN): $(SRC) $(AS) $(INCSRCS)
$(AS) -o $@ $(SRC)
$(ZXTAP):
make -C ZX_Tap
$(AS): $(AS).c
make -C $(ASDIR)
$(AS).c:
@echo ""
@echo "It looks like the z80asm submodule is missing!"
@echo "I will try to fetch it for you."
@echo "If this fails, run the following commands manually:"
@echo ""
@echo " git submodule init"
@echo " git submodule update"
@echo ""
git submodule init
git submodule update
freqs: freqs.o
$(CC) $(LDFLAGS) -o $@ freqs.o $(LIBS)
.PHONY: clean distclean engines
engines:
make -C engines
clean:
rm -f $(TAP) $(BIN) freqs freqs.o *~
distclean: clean
make -C ZX_Tap clean
make -C $(ASDIR) clean
make -C engines clean