diff options
author | Bad Diode <bd@badd10de.dev> | 2022-10-15 16:53:50 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-10-15 16:53:50 +0200 |
commit | d822337f5920c1b639695ebfcf0eb9e49fd5e01a (patch) | |
tree | b9243dc0f239600ac49bc699890d2f11e5feccae /Makefile | |
parent | 8864a4d8ef6a8597f351f05cfc24b596f24d19e9 (diff) | |
download | uxn64-d822337f5920c1b639695ebfcf0eb9e49fd5e01a.tar.gz uxn64-d822337f5920c1b639695ebfcf0eb9e49fd5e01a.zip |
Add minimal code for a working video output program
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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. |
13 | SRC_DIR := src | 13 | SRC_DIR := src |
14 | BUILD_DIR := build | 14 | BUILD_DIR := build |
15 | SRC_MAIN := $(SRC_DIR)/onetri.c \ | 15 | SRC_MAIN := $(SRC_DIR)/main.c |
16 | $(SRC_DIR)/dram_stack.c \ | 16 | SRC_OBJ := |
17 | $(SRC_DIR)/rdp_output.c | ||
18 | SRC_OBJ := $(SRC_DIR)/static.c \ | ||
19 | $(SRC_DIR)/cfb.c \ | ||
20 | $(SRC_DIR)/rsp_cfb.c | ||
21 | OBJECTS := $(patsubst $(SRC_DIR)/%.c, $(BUILD_DIR)/%.o, $(SRC_OBJ)) | 17 | OBJECTS := $(patsubst $(SRC_DIR)/%.c, $(BUILD_DIR)/%.o, $(SRC_OBJ)) |
22 | 18 | ||
23 | WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h") | 19 | WATCH_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. |
80 | run: $(BIN) | 77 | run: $(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 | ||