-
Notifications
You must be signed in to change notification settings - Fork 6
/
template.makefile
57 lines (41 loc) · 996 Bytes
/
template.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
# default target
default: compile
# commands and tools
include config.makefile
# packer; must match the included unpacker routine
PACK_EXTENSION=zx0
#
# current game name
#
GAME=template
GAME_PATH=\
games\$(GAME)
ROM=\
$(GAME_PATH)\$(GAME).rom
SYM=\
$(GAME_PATH)\$(GAME).sym
SRCS=\
$(GAME_PATH)\$(GAME).asm \
splash\msxlib.bin.$(PACK_EXTENSION) \
DATAS=\
$(GAME_PATH)\charset.png.chr.$(PACK_EXTENSION) \
$(GAME_PATH)\charset.png.clr.$(PACK_EXTENSION) \
$(GAME_PATH)\sprites.png.spr.$(PACK_EXTENSION) \
$(GAME_PATH)\screen.tmx.bin.$(PACK_EXTENSION)
DATAS_INTERMEDIATE=\
$(GAME_PATH)\charset.png.chr \
$(GAME_PATH)\charset.png.clr \
$(GAME_PATH)\sprites.png.spr \
$(GAME_PATH)\screen.tmx.bin
# secondary targets
.secondary: $(DATAS_INTERMEDIATE)
#
# main targets
#
# default targets
include msxlib.makefile
$(ROM) tniasm.sym: $(SRCS) $(MSXLIB) $(DATAS)
$(ASM) $< $@
# cmd /c findstr /b /i "dbg_" tniasm.sym | sort
# secondary targets
.secondary: $(DATAS_INTERMEDIATE)