Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
128 lines (105 loc) · 2.45 KB
/
Copy pathMakefile
File metadata and controls
128 lines (105 loc) · 2.45 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Super Game Boy Sound Mixer
#
# Copyright (c) 2025 Dmitry Shechtman
VER = jam
NAME = sgb_$(VER)
TITLE = STILLGOTTHEBLUES
TARGET = $(NAME).gb
SYM = $(NAME).sym
RGBASMFLAGS = -I inc -I art
RGBLINKFLAGS = -n $(SYM)
RGBFIXFLAGS = -v -m MBC1 -p 0xFF -t $(TITLE) --sgb-compatible --old-licensee 0x33
OBJS = \
src/main.o \
src/sound.o \
src/update.o \
src/handlers.o \
src/trans.o \
src/shake.o \
src/password.o \
src/sgb.o \
src/joypad.o \
src/a.o \
src/b.o \
src/tiles.o \
src/intro/intro_main.o \
src/intro/intro_drop.o \
src/intro/intro_lut.o \
INC = \
inc/hardware.inc \
inc/defs.inc \
inc/common.inc \
inc/macros.inc \
inc/sound.inc \
inc/update.inc \
inc/handlers.inc \
inc/trans.inc \
inc/charmap.inc \
inc/intro.inc \
1BPP = \
art/borders.1bpp \
art/circles.1bpp \
art/digits.1bpp \
art/alpha.1bpp \
art/logo2.1bpp \
2BPP = \
art/sel_hex.2bpp \
art/sel_quad.2bpp \
art/sel_dir.2bpp \
art/sel_width.2bpp \
art/sel_check.2bpp \
art/obj_labels.2bpp \
art/arrows.2bpp \
art/pushb_hex.2bpp \
art/pushb_quad.2bpp \
art/pushb_dir.2bpp \
art/pushb_width.2bpp \
art/pushb_check.2bpp \
art/labels.2bpp \
art/dis_hex.2bpp \
art/dis_quad.2bpp \
art/dis_dir.2bpp \
art/dis_width.2bpp \
art/dis_check.2bpp \
TILEMAPS = \
art/circles.tilemap \
art/sel_quad.tilemap \
art/pushb_quad.tilemap \
art/dis_quad.tilemap \
INTRO_1BPP = \
art/intro/intro_not.1bpp \
art/intro/intro_top.1bpp \
art/intro/intro_by.1bpp \
art/intro/intro_reg.1bpp \
art/intro/intro_n0.1bpp \
art/intro/intro_i.1bpp \
art/intro/intro_n.1bpp \
art/intro/intro_t.1bpp \
art/intro/intro_e.1bpp \
art/intro/intro_d.1bpp \
art/intro/intro_o.1bpp \
all: $(TARGET)
clean:
rm -f $(1BPP) $(2BPP) $(TILEMAPS) $(INTRO_1BPP) $(OBJS) $(TARGET) $(SYM)
$(TARGET): $(OBJS)
rgblink $(RGBLINKFLAGS) $^ -o $@
rgbfix $(RGBFIXFLAGS) $@
src/tiles.o: src/tiles.asm $(INC) $(1BPP) $(2BPP)
src/intro/intro_main.o: src/intro/intro_main.asm $(INC) $(INTRO_1BPP)
rgbasm $(RGBASMFLAGS) -I art/intro $< -o $@
%.o: %.asm $(INC)
rgbasm $(RGBASMFLAGS) $< -o $@
art/circles.1bpp: art/circles.png
rgbgfx -u -d 1 -T -b 0x20 $< -o $@
art/digits.1bpp: art/digits.png
rgbgfx -Z -d 1 $< -o $@
art/intro/%.1bpp: art/intro/%.png
rgbgfx -Z -d 1 $< -o $@
%.1bpp: %.png
rgbgfx -d 1 $< -o $@
art/%_quad.2bpp: art/%_quad.png
rgbgfx -u -c gbc:art/gbc.pal -T -b 0x50 $< -o $@
art/%_width.2bpp: art/%_width.png
rgbgfx -u -c gbc:art/gbc.pal $< -o $@
%.2bpp: %.png
rgbgfx -c gbc:art/gbc.pal $< -o $@