aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1dd6375..2c58d00 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,8 @@ LIBGBA += $(LIBGBA_DIR)/lib/libmm.a
15SRC_DIR := src 15SRC_DIR := src
16BUILD_DIR := build 16BUILD_DIR := build
17SRC_MAIN := $(SRC_DIR)/main.c 17SRC_MAIN := $(SRC_DIR)/main.c
18ASM_FILES := $(wildcard $(SRC_DIR)/*.s) 18SRC_BDGBA := $(wildcard $(SRC_DIR)/gba/*.s)
19SRC_BDGBA += $(wildcard $(SRC_DIR)/gba/*.c)
19WATCH_SRC := $(shell find $(SRC_DIR) -name *.c -or -name *.s -or -name *.h) 20WATCH_SRC := $(shell find $(SRC_DIR) -name *.c -or -name *.s -or -name *.h)
20INC_DIRS := $(shell find $(SRC_DIR) -type d) 21INC_DIRS := $(shell find $(SRC_DIR) -type d)
21INC_DIRS += $(BUILD_DIR) 22INC_DIRS += $(BUILD_DIR)
@@ -64,7 +65,7 @@ $(BIN): $(ELF)
64 65
65# Link files. 66# Link files.
66$(ELF): $(SRC_MAIN) $(WATCH_SRC) 67$(ELF): $(SRC_MAIN) $(WATCH_SRC)
67 $(CC) $(CFLAGS) $(LDFLAGS) -o $(ELF) $(SRC_MAIN) $(ASM_FILES) $(LDLIBS) 68 $(CC) $(CFLAGS) $(LDFLAGS) -o $(ELF) $(SRC_MAIN) $(SRC_BDGBA) $(LDLIBS)
68 69
69# Create build directory if needed. 70# Create build directory if needed.
70$(BUILD_DIR): 71$(BUILD_DIR):