Added UECIDE option to compiler in target makefiles

This commit is contained in:
Matt Jenkins
2014-04-09 15:26:18 +01:00
parent ce212a68fb
commit 5ef98b2b76
3 changed files with 19 additions and 0 deletions

2
.gitignore vendored
View File

@@ -21,3 +21,5 @@
*.i*86 *.i*86
*.x86_64 *.x86_64
*.hex *.hex
Makefile.user

View File

@@ -1,3 +1,11 @@
# chipKIT PIC32 compiler from UECIDE
ifdef UECIDE
ifndef GCCPREFIX
GCCPREFIX = ${HOME}/.uecide/compilers/pic32-tools/bin/pic32-
LDFLAGS = -Wl,--oformat=elf32-tradlittlemips
endif
endif
# chipKIT PIC32 compiler on Linux # chipKIT PIC32 compiler on Linux
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Download from https://github.com/jasonkajita/chipKIT-cxx/downloads # Download from https://github.com/jasonkajita/chipKIT-cxx/downloads

View File

@@ -1,6 +1,15 @@
MACHINE = mips MACHINE = mips
DESTDIR ?= $(TOPSRC) DESTDIR ?= $(TOPSRC)
# chipKIT PIC32 compiler from UECIDE
ifdef UECIDE
ifndef GCCPREFIX
GCCPREFIX = ${HOME}/.uecide/compilers/pic32-tools/bin/pic32-
LDFLAGS = -Wl,--oformat=elf32-tradlittlemips
INCLUDES = -I${HOME}/.uecide/compilers/pic32-tools/lib/gcc/pic32mx/4.5.1/include
endif
endif
# chipKIT PIC32 compiler on Linux # chipKIT PIC32 compiler on Linux
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Download from https://github.com/jasonkajita/chipKIT-cxx/downloads # Download from https://github.com/jasonkajita/chipKIT-cxx/downloads