summaryrefslogtreecommitdiff
path: root/src/Makefile.proto
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.proto')
-rw-r--r--src/Makefile.proto6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile.proto b/src/Makefile.proto
index 625ca459..ee3b4d6c 100644
--- a/src/Makefile.proto
+++ b/src/Makefile.proto
@@ -13,9 +13,11 @@ ifndef VERSION
include ../Version
endif
-CFLAGS=--model-small --debug --opt-code-speed
+CFLAGS=--model-small --debug --opt-code-speed -DCODESIZE=$(CODESIZE)
-LDFLAGS=--out-fmt-ihx --code-loc 0x0000 --code-size 0x8000 \
+CODESIZE ?= 0x8000
+
+LDFLAGS=--out-fmt-ihx --code-loc 0x0000 --code-size $(CODESIZE) \
--xram-loc 0xf000 --xram-size 0xda2 --iram-size 0xff
INC = \