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 633a174..d442655 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,9 @@ $(BUILD):
# -- Host-side C compilation (sdcc on host) --------------------------------------------
$(BUILD)/%.hex: fw/%.c | $(BUILD)
- cd $(BUILD) && sdcc --use-non-free -mpic14 -p16f84a $(CURDIR)/fw/$*.c
+ cd $(BUILD) && sdcc --use-non-free -mpic14 -p16f84a \
+ -Wl-s -Wl$(CURDIR)/fw/fpga_pic.lkr \
+ $(CURDIR)/fw/$*.c
# program.hex is what the testbench loads at runtime
$(BUILD)/program.hex: $(BUILD)/$(PROG).hex