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 CONTIKI_SOURCEFILES += mtarch.c rtimer-arch.c elfloader-stub.c watchdog.c
### Compiler definitions ### Compiler definitions
CC = gcc CC ?= gcc
LD = gcc LD ?= gcc
AS = as AS ?= as
NM = nm NM ?= nm
OBJCOPY = objcopy OBJCOPY ?= objcopy
STRIP = strip STRIP ?= strip
ifdef WERROR ifdef WERROR
CFLAGSWERROR=-Werror -pedantic -std=c99 -Werror CFLAGSWERROR=-Werror -pedantic -std=c99 -Werror
endif endif