diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-03-27 17:22:52 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-03-27 17:22:52 +0100 |
commit | 1409f389c08499427b5646ca30233599a9b78712 (patch) | |
tree | 64084d590c208bcec23aba2a865e534f7424642d | |
parent | 3401df05350e6f5b5e99a960f7d2c8bfce0b818f (diff) | |
download | freertos-1409f389c08499427b5646ca30233599a9b78712.tar.gz freertos-1409f389c08499427b5646ca30233599a9b78712.tar.bz2 freertos-1409f389c08499427b5646ca30233599a9b78712.tar.xz |
Give the user the ability to choose a device and set where are SDCC library path for PIC18
-rw-r--r-- | Demo/PIC18_SDCC/Makefile | 16 |
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 |