1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/boards/native/Makefile.include
Ludwig Ortmann b6781cdf0f add native flash and term targets
flash does nothing
term starts the project with PORT misused for the tap interface
PORT is unset if nativenet is not used
2014-01-09 12:53:40 +01:00

30 lines
595 B
Makefile

export INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
export CPU = native
# toolchain config
export PREFIX =
#export CC = $(PREFIX)gcc
export AR = $(PREFIX)ar
export CFLAGS += -std=gnu99 -Wall -Wextra -pedantic -m32
export ASFLAGS =
export AS = $(PREFIX)as
export LINK = $(PREFIX)gcc
export SIZE = $(PREFIX)size
export OBJCOPY = $(PREFIX)objcopy
LINKFLAGS += -m32 -gc -ldl
TERMPROG = $(BINDIR)/$(PROJECT).elf
FLASHER = true
ifneq (,$(findstring nativenet,$(USEMODULE)))
ifeq ($(strip $(PORT)),)
export PORT = tap0
endif
else
export PORT =
endif
include $(RIOTBOARD)/$(BOARD)/Makefile.dep