-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·35 lines (24 loc) · 963 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
BUILD_DIR = build
include $(N64_INST)/include/n64.mk
OBJS = $(BUILD_DIR)/*.o
N64_CFLAGS += -Wno-error
assets = $(wildcard assets/*.wav)
assets_conv = $(addprefix filesystem/,$(notdir $(assets:%.wav=%.wav64)))
all: dodgeblock.z64
# Run audioconv on all WAV files under assets/
# We do this file by file, but we could even do it just once for the whole
# directory, because audioconv64 supports directory walking.
filesystem/%.wav64: assets/%.wav
@mkdir -p $(dir $@)
@echo " [AUDIO] $@"
@$(N64_AUDIOCONV) -o filesystem $<
$(BUILD_DIR)/dodgeblock.dfs: $(assets_conv) #$(wildcard filesystem/*)
$(N64_INST)/bin/mksprite 32 16 8 filesystem/libdragon-font.png filesystem/libdragon-font.sprite
$(N64_MKDFS) $@ filesystem
$(BUILD_DIR)/dodgeblock.elf: $(OBJS)
dodgeblock.z64: N64_ROM_TITLE = "DodgeBlock"
dodgeblock.z64: $(BUILD_DIR)/dodgeblock.dfs
clean:
rm -rf $(BUILD_DIR) *.z64 $(assets_conv)
-include $(wildcard $(BUILD_DIR)/*.d)
.PHONY: all clean