summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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):