Enable native target for cross-compiling -

by now it would have worked if you set CC via
command line (e.g. `make CC=clang`, though it
wouldn't work when CC is set in the platform
makefile which includes `Makefile.native`.
This commit is contained in:
Ilya Dmitrichenko 2012-07-11 00:06:39 +01:00 committed by Ilya Dmitrichenko
parent 6690c5f13e
commit 092c69639c

View File

@ -3,12 +3,12 @@ CONTIKI_CPU_DIRS = . net
CONTIKI_SOURCEFILES += mtarch.c rtimer-arch.c elfloader-stub.c watchdog.c
### Compiler definitions
CC = gcc
LD = gcc
AS = as
NM = nm
OBJCOPY = objcopy
STRIP = strip
CC ?= gcc
LD ?= gcc
AS ?= as
NM ?= nm
OBJCOPY ?= objcopy
STRIP ?= strip
ifdef WERROR
CFLAGSWERROR=-Werror -pedantic -std=c99 -Werror
endif