summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-04-27 14:41:49 +0200
committerBad Diode <bd@badd10de.dev>2021-04-27 14:41:49 +0200
commit778fe214d136efeda7d072f933a0cf8ff1840f85 (patch)
treeefa86b0ac8cbf713f6d83bb0760b237854dc8387 /Makefile
parent3e38d5561d3e2e60f79ec5387f167bb12170c0f9 (diff)
downloadgba-experiments-778fe214d136efeda7d072f933a0cf8ff1840f85.tar.gz
gba-experiments-778fe214d136efeda7d072f933a0cf8ff1840f85.zip
Testing BIOS calls
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1979bf8..7202bb9 100644
--- a/Makefile
+++ b/Makefile
@@ -14,8 +14,10 @@ LIBGBA += $(LIBGBA_DIR)/lib/libmm.a
14# Source code location and files to watch for changes. 14# Source code location and files to watch for changes.
15SRC_DIR := src 15SRC_DIR := src
16SRC_MAIN := $(SRC_DIR)/main.c 16SRC_MAIN := $(SRC_DIR)/main.c
17ASM_FILES := $(wildcard $(SRC_DIR)/*.s)
17WATCH_SRC := $(wildcard $(SRC_DIR)/*.c) 18WATCH_SRC := $(wildcard $(SRC_DIR)/*.c)
18WATCH_SRC += $(wildcard $(SRC_DIR)/*.h) 19WATCH_SRC += $(wildcard $(SRC_DIR)/*.h)
20WATCH_SRC += $(wildcard $(SRC_DIR)/*.s)
19 21
20# Output library names and executables. 22# Output library names and executables.
21TARGET := experiments 23TARGET := experiments
@@ -57,7 +59,7 @@ $(BIN): $(ELF)
57 59
58# Link files. 60# Link files.
59$(ELF): $(SRC_MAIN) $(WATCH_SRC) 61$(ELF): $(SRC_MAIN) $(WATCH_SRC)
60 $(CC) $(CFLAGS) $(LDFLAGS) -o $(ELF) $(SRC_MAIN) $(LDLIBS) 62 $(CC) $(CFLAGS) $(LDFLAGS) -o $(ELF) $(SRC_MAIN) $(ASM_FILES) $(LDLIBS)
61 63
62# Create build directory if needed. 64# Create build directory if needed.
63$(BUILD_DIR): 65$(BUILD_DIR):