summary refs log tree commit diff
path: root/misc/n64/Makefile
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-06-16 10:35:45 +0300
committerWlodekM <[email protected]>2024-06-16 10:35:45 +0300
commitabef6da56913f1c55528103e60a50451a39628b1 (patch)
treeb3c8092471ecbb73e568cd0d336efa0e7871ee8d /misc/n64/Makefile
initial commit
Diffstat (limited to 'misc/n64/Makefile')
-rw-r--r--misc/n64/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/misc/n64/Makefile b/misc/n64/Makefile
new file mode 100644
index 0000000..e14986c
--- /dev/null
+++ b/misc/n64/Makefile
@@ -0,0 +1,26 @@
+all: ClassiCube-n64.z64
+
+BUILD_DIR = build-n64
+SOURCE_DIR = src
+N64_ROM_TITLE = "ClassiCube"
+N64_ROM_RTC = true
+
+CFILES 	:= $(notdir $(wildcard src/*.c))
+OFILES 	:= $(CFILES:.c=.o)
+OBJS 	:= $(addprefix $(BUILD_DIR)/,$(OFILES))
+CFLAGS	:= -Wno-error=missing-braces -Wno-error=strict-aliasing -Wno-error=incompatible-pointer-types -Wno-error=maybe-uninitialized
+
+include $(N64_INST)/include/n64.mk
+
+ClassiCube-n64.z64: N64_ROM_TITLE = "ClassiCube"
+ClassiCube-n64.z64: $(BUILD_DIR)/filesystem.dfs
+
+$(BUILD_DIR)/filesystem.dfs: misc/n64/default.zip
+
+$(BUILD_DIR)/ClassiCube-n64.elf: $(OBJS)
+
+clean:
+	rm -rf $(BUILD_DIR) *.z64
+.PHONY: clean
+
+-include $(wildcard $(BUILD_DIR)/*.d)