-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (25 loc) · 860 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
ASM=rgbasm -i src/common
gb = \
src/window_y_trigger/window_y_trigger.gb \
src/window_y_trigger_wx_offscreen/window_y_trigger_wx_offscreen.gb
all: $(gb)
ags-aging-font.chr:
rgbgfx src/common/ags-aging-font.png -o src/common/ags-aging-font.chr
%.o: %.asm ags-aging-font.chr
$(ASM) -o $@ $<
$(gb): %.gb: %.o .FORCE
rgblink -o $@ $<
rgbfix -v -p 0 $@
# Always force a clean rebuild, this is Game Boy assembly, builds are fast.
.PHONY: .FORCE
.PHONY: clean
clean:
rm -f src/window_y_trigger/window_y_trigger.o
rm -f src/window_y_trigger/window_y_trigger.gb
rm -f src/window_y_trigger_wx_offscreen/window_y_trigger_wx_offscreen.o
rm -f src/window_y_trigger_wx_offscreen/window_y_trigger_wx_offscreen.gb
rm -f src/common/ags-aging-font.chr
rm -f release.zip
# -j Store the file name only, ignore the path.
release: all
zip -j release.zip $(gb)