aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2022-10-15 16:53:50 +0200
committerBad Diode <bd@badd10de.dev>2022-10-15 16:53:50 +0200
commitd822337f5920c1b639695ebfcf0eb9e49fd5e01a (patch)
treeb9243dc0f239600ac49bc699890d2f11e5feccae /Makefile
parent8864a4d8ef6a8597f351f05cfc24b596f24d19e9 (diff)
downloaduxn64-d822337f5920c1b639695ebfcf0eb9e49fd5e01a.tar.gz
uxn64-d822337f5920c1b639695ebfcf0eb9e49fd5e01a.zip
Add minimal code for a working video output program
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 4 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 436fe0a..8917cc9 100644
--- a/Makefile
+++ b/Makefile
@@ -12,12 +12,8 @@ LIBULTRA := $(LIBULTRA_DIR)/usr/lib/libgultra.a
12# Source code location and files to watch for changes. 12# Source code location and files to watch for changes.
13SRC_DIR := src 13SRC_DIR := src
14BUILD_DIR := build 14BUILD_DIR := build
15SRC_MAIN := $(SRC_DIR)/onetri.c \ 15SRC_MAIN := $(SRC_DIR)/main.c
16 $(SRC_DIR)/dram_stack.c \ 16SRC_OBJ :=
17 $(SRC_DIR)/rdp_output.c
18SRC_OBJ := $(SRC_DIR)/static.c \
19 $(SRC_DIR)/cfb.c \
20 $(SRC_DIR)/rsp_cfb.c
21OBJECTS := $(patsubst $(SRC_DIR)/%.c, $(BUILD_DIR)/%.o, $(SRC_OBJ)) 17OBJECTS := $(patsubst $(SRC_DIR)/%.c, $(BUILD_DIR)/%.o, $(SRC_OBJ))
22 18
23WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h") 19WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h")
@@ -74,10 +70,11 @@ $(BIN): $(ELF) $(OBJECTS) $(WATCH_SRC)
74 --cpp_command="$(SDK_BIN)/mips32-elf-gcc" \ 70 --cpp_command="$(SDK_BIN)/mips32-elf-gcc" \
75 --ld_command="$(SDK_BIN)/mips32-elf-ld" \ 71 --ld_command="$(SDK_BIN)/mips32-elf-ld" \
76 --objcopy_command="$(SDK_BIN)/mips32-elf-objcopy" 72 --objcopy_command="$(SDK_BIN)/mips32-elf-objcopy"
73 rm a.out
77 $(MAKEMASK) $(BIN) 74 $(MAKEMASK) $(BIN)
78 75
79# Test the output .n64 in an emulator. 76# Test the output .n64 in an emulator.
80run: $(BIN) 77run: $(BUILD_DIR) $(BIN)
81 # TODO: Test roms with MAME or cen64 instead of mupen64 for better accuracy. 78 # TODO: Test roms with MAME or cen64 instead of mupen64 for better accuracy.
82 mupen64plus $(BIN) 79 mupen64plus $(BIN)
83 80