1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/test_pnet/Makefile

48 lines
1.1 KiB
Makefile
Raw Normal View History

2014-01-17 12:49:48 +01:00
####
#### Sample Makefile for building apps with the RIOT OS
####
#### The Sample Filesystem Layout is:
#### /this makefile
#### ../../RIOT
2014-01-17 12:49:48 +01:00
#### ../../boards for board definitions (if you have one or more)
####
2014-01-17 12:49:48 +01:00
# name of your project
export PROJECT =test_pnet
# for easy switching of boards
ifeq ($(strip $(BOARD)),)
export BOARD = native
endif
# this has to be the absolute path of the RIOT-base dir
export RIOTBASE =$(CURDIR)/../..
export RIOTBOARD =$(RIOTBASE)/boards
ifeq ($(BOARD),stm32f4discovery)
include Makefile.$(BOARD)
endif
## Modules to include.
2014-01-17 12:49:48 +01:00
USEMODULE += auto_init
USEMODULE += posix
USEMODULE += pnet
USEMODULE += vtimer
ifeq ($(strip $(BOARD)),native)
USEMODULE += nativenet
else ifeq ($(strip $(BOARD)),msba2)
USEMODULE += cc110x_ng
endif
ifeq ($(BOARD),native)
CFLAGS += -isystem $(RIOTBASE)/sys/net/include \
-isystem $(RIOTBASE)/sys/posix/pnet/include
else
export INCLUDES += -I$(RIOTBASE)/sys/net/include \
-I$(RIOTBASE)/sys/posix/pnet/include \
-I$(RIOTBASE)/sys/posix/include
endif
include $(RIOTBASE)/Makefile.include