summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVäinö Kauppila <vaino@vke.fi>2026-04-20 15:11:08 +0300
committerVäinö Kauppila <vaino@vke.fi>2026-04-20 15:11:08 +0300
commitb33ebdfd1087bd1de038e23fd256ad5cc6576cfd (patch)
tree4d1118c3c7f3a2bc9d283049ea07f6726048ceda /Makefile
parent922c620bf0921a60e15e8abe627b3199e7e1e12a (diff)
downloadvhdl_pic-b33ebdfd1087bd1de038e23fd256ad5cc6576cfd.tar.gz
vhdl_pic-b33ebdfd1087bd1de038e23fd256ad5cc6576cfd.zip
4K progmem
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