summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Demo/PIC18_SDCC/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/Demo/PIC18_SDCC/Makefile b/Demo/PIC18_SDCC/Makefile
index 1c47309a..f1ceb945 100644
--- a/Demo/PIC18_SDCC/Makefile
+++ b/Demo/PIC18_SDCC/Makefile
@@ -25,9 +25,23 @@
CC=sdcc
AS=gpasm
LD=gplink
+
+#Device selection
+ifeq ($(DEVICE),)
DEVICE=18f452
+else
+DEVICE=$(DEVICE)
+endif
+
+#SDCC pic16 libraries
+ifeq ($(PIC16_LIB_PATH),)
+PIC16_LIB_PATH=/usr/local/share/sdcc/lib/pic16
+else
+PIC16_LIB_PATH=$(PIC16_LIB_PATH)
+endif
+
+#type of pic used
ARCH=pic16
-PIC16_LIB_PATH=/usr/src/walsimou/staging_dir/share/sdcc/lib/pic16/
# Setup paths to source code
SOURCE_PATH=../../Source