diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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. |
15 | SRC_DIR := src | 15 | SRC_DIR := src |
16 | SRC_MAIN := $(SRC_DIR)/main.c | 16 | SRC_MAIN := $(SRC_DIR)/main.c |
17 | ASM_FILES := $(wildcard $(SRC_DIR)/*.s) | ||
17 | WATCH_SRC := $(wildcard $(SRC_DIR)/*.c) | 18 | WATCH_SRC := $(wildcard $(SRC_DIR)/*.c) |
18 | WATCH_SRC += $(wildcard $(SRC_DIR)/*.h) | 19 | WATCH_SRC += $(wildcard $(SRC_DIR)/*.h) |
20 | WATCH_SRC += $(wildcard $(SRC_DIR)/*.s) | ||
19 | 21 | ||
20 | # Output library names and executables. | 22 | # Output library names and executables. |
21 | TARGET := experiments | 23 | TARGET := 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): |