-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
60 lines (51 loc) · 2.65 KB
/
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
58
59
60
all: breadcodes.z64
.PHONY: all
BUILD_DIR = build
include $(N64_INST)/include/n64.mk
SRC = src/main.c src/globals.c src/utils.c src/Actor/actor.c src/Actor/player.c src/Actor/npc.c src/Maps/map.c
OBJS = $(SRC:%.c=$(BUILD_DIR)/%.o)
DEPS = $(SRC:%.c=$(BUILD_DIR)/%.d)
SPRITE_DIR=filesystem
PNG_DIR=assets
SPRITE_MANIFEST_TXT := $(PNG_DIR)/manifest.txt
MKSPRITE := mksprite
REDIRECT_STDOUT := >/dev/null
breadcodes.z64: N64_ROM_TITLE = "breadcodes"
breadcodes.z64: $(BUILD_DIR)/breadcodes.dfs
$(BUILD_DIR)/breadcodes.dfs: $(wildcard filesystem/*)
$(BUILD_DIR)/breadcodes.elf: $(OBJS)
clean:
rm -rf $(BUILD_DIR) *.z64
.PHONY: clean
assets:
mksprite 16 2 2 assets/venusaur.png filesystem/venusaur.sprite
mksprite 16 9 2 assets/aang.png filesystem/aang.sprite
mksprite 16 3 4 assets/player.png filesystem/player.sprite
mksprite 16 3 4 assets/npc_ghost.png filesystem/npc_ghost.sprite
mksprite 16 9 2 assets/peach.png filesystem/peach.sprite
mksprite 16 9 2 assets/yugi.png filesystem/yugi.sprite
mksprite 16 9 1 assets/rick.png filesystem/rick.sprite
mksprite 16 1 1 assets/cursor.png filesystem/cursor.sprite
mksprite 16 8 133 assets/tileset.png filesystem/tileset.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_0.png filesystem/tileset_0.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_1.png filesystem/tileset_1.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_2.png filesystem/tileset_2.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_3.png filesystem/tileset_3.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_4.png filesystem/tileset_4.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_5.png filesystem/tileset_5.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_6.png filesystem/tileset_6.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_7.png filesystem/tileset_7.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_8.png filesystem/tileset_8.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_9.png filesystem/tileset_9.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_10.png filesystem/tileset_10.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_11.png filesystem/tileset_11.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_12.png filesystem/tileset_12.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_13.png filesystem/tileset_13.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_14.png filesystem/tileset_14.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_15.png filesystem/tileset_15.sprite
mksprite 16 8 8 tileset_generated_parts/tileset_16.png filesystem/tileset_16.sprite
.PHONY: assets
libdragon-tools:
cd libdragon/ && make tools install
.PHONY: tools
-include $(DEPS)