summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-10-23 21:36:38 -0600
committerAlejandro Soto <alejandro@34project.org>2022-10-23 21:36:38 -0600
commit1b64062b29fe03957700e2f35b1c044ff755b2ed (patch)
tree7140ee24a54897237bb2ff8f8de816097f24a236 /Makefile
parent0b6aedb9b51878e6d5e4917b58d8c7466e7c669d (diff)
Compile sim tests with debug info
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 841af53..52a0f06 100644
--- a/Makefile
+++ b/Makefile
@@ -37,15 +37,15 @@ $(SIM_OBJ_DIR)/%.bin: $(SIM_OBJ_DIR)/%
$(CROSS_OBJCOPY) -O binary --only-section=._img $< $@
$(SIM_OBJ_DIR)/%: $(SIM_OBJ_DIR)/%.o $(SIM_OBJ_DIR)/start.o
- $(CROSS_CC) $(CROSS_LDFLAGS) -o $@ -T $(SIM_DIR)/link.ld -nostartfiles -nostdlib $^
+ $(CROSS_CC) $(CROSS_LDFLAGS) -o $@ -g -T $(SIM_DIR)/link.ld -nostartfiles -nostdlib $^
$(SIM_OBJ_DIR)/%.o: $(SIM_DIR)/%.c
@mkdir -p $(SIM_OBJ_DIR)
- $(CROSS_CC) $(CROSS_CFLAGS) -o $@ -c $< -mcpu=arm810
+ $(CROSS_CC) $(CROSS_CFLAGS) -o $@ -g -c $< -mcpu=arm810
$(SIM_OBJ_DIR)/%.o: $(SIM_DIR)/%.S
@mkdir -p $(SIM_OBJ_DIR)
- $(CROSS_CC) $(CROSS_CFLAGS) -o $@ -c $<
+ $(CROSS_CC) $(CROSS_CFLAGS) -o $@ -g -c $<
exe: exe/$(TOP)