summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-11 17:31:18 -0400
committerrealtradam <[email protected]>2024-05-11 17:31:18 -0400
commitb34e7bd903f7c20912cfe696947641a7f37e029d (patch)
tree08153acffa182ae56c3b61b5061699b09ad83953 /Makefile
parent3c1eda45872ce11e82cebc729dd1981e73b79b49 (diff)
downloadtojam2024-b34e7bd903f7c20912cfe696947641a7f37e029d.tar.gz
tojam2024-b34e7bd903f7c20912cfe696947641a7f37e029d.zip
rendering player
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5b66644..cf1f603 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,13 @@
BUILD_DIR=build
+SRC_DIRS := ./src
include $(N64_INST)/include/n64.mk
-src = main.c
+//src = src/main.c
+src := $(shell find $(SRC_DIRS) -name '*.cpp' -or -name '*.c' -or -name '*.s')
+OBJS := $(SRCS:%=$(BUILD_DIR)/%.o)
+DEPS := $(OBJS:.o=.d)
+INC_DIRS := $(shell find $(SRC_DIRS) -type d)
+N64_INCLUDEDIR := $(addprefix -I,$(INC_DIRS))
assets_png = $(wildcard assets/*.png)
#assets_m3d = $(wildcard assets/*.m3d)