-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (30 loc) · 771 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
41
42
43
44
45
46
47
48
49
50
51
52
all: BUILD_DSK BNDSH.ROM
DSK_FNAME=bndsh.dsk
LOAD_ADDRESS=x8000
vpath %.asm src/
include CPC.mk
exec.o: $(wildcard src/*.asm)
rom.o: $(wildcard src/*.asm)
BNDSH: exec.o
$(call SET_HEADER,$^,$@,$(AMSDOS_BINARY),$(LOAD_ADDRESS),$(LOAD_ADDRESS))
BNDSH.ROM: rom.o
cp $^ $@
$(DSK_FNAME):
$(call CREATE_DSK,$(DSK_FNAME))
BUILD_DSK: BNDSH $(DSK_FNAME)
$(call PUT_FILE_INTO_DSK,$(DSK_FNAME),BNDSH)
clean:
-rm *.o
-rm *.exo
-rm *.NOHEADER
-rm *.lst
-rm BNDSH
distclean: clean
-rm $(DSK_FNAME)
launch: BUILD_DSK
xdg-open $(DSK_FNAME)
CPCWIFI?= 192.168.1.24
test_rom:
./bootstrap.sh make && ../cpcxfer/xfer -f $(CPCWIFI) ./BNDSH.ROM 1 BNDSH && ../cpcxfer/xfer -r $(CPCWIFI)
test_exec:
./bootstrap.sh make && ../cpcxfer/xfer -y $(CPCWIFI) BNDSH