Use dist Makefile style in examples Makefiles
This commit is contained in:
parent
b157304481
commit
a60a0a2cf7
@ -1,15 +1,18 @@
|
|||||||
# name of your project
|
# name of your project
|
||||||
export PROJECT = ccn-lite-client
|
export PROJECT = ccn-lite-client
|
||||||
|
|
||||||
# for easy switching of boards
|
# If not BOARD is found in the environment, use this default:
|
||||||
ifeq ($(strip $(BOARD)),)
|
export BOARD ?= native
|
||||||
export BOARD = native
|
|
||||||
endif
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
# This has to be the absolute path to the RIOT base directory:
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
export RIOTBASE ?= $(CURDIR)/../../
|
||||||
|
|
||||||
# uncomment this to enable scheduler statistics for ps
|
# Uncomment these lines if you want to use platform support from external
|
||||||
|
# repositories:
|
||||||
|
#export RIOTCPU ?= $(CURDIR)/../../RIOT/thirdparty_cpu
|
||||||
|
#export RIOTBOARD ?= $(CURDIR)/../../RIOT/thirdparty_boards
|
||||||
|
|
||||||
|
# Uncomment this to enable scheduler statistics for ps:
|
||||||
#CFLAGS += -DSCHEDSTATISTICS
|
#CFLAGS += -DSCHEDSTATISTICS
|
||||||
|
|
||||||
# If you want to use valgrind, you should recompile native with either
|
# If you want to use valgrind, you should recompile native with either
|
||||||
@ -20,7 +23,15 @@ export RIOTBASE = $(CURDIR)/../..
|
|||||||
#CFLAGS += -DHAVE_VALGRIND_VALGRIND_H
|
#CFLAGS += -DHAVE_VALGRIND_VALGRIND_H
|
||||||
#CFLAGS += -DHAVE_VALGRIND_H
|
#CFLAGS += -DHAVE_VALGRIND_H
|
||||||
|
|
||||||
## Modules to include.
|
# Uncomment this to enable code in RIOT that does safety checking
|
||||||
|
# which is not needed in a production environment but helps in the
|
||||||
|
# development process:
|
||||||
|
#CFLAGS += -DDEVELHELP
|
||||||
|
|
||||||
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
|
export QUIET ?= 1
|
||||||
|
|
||||||
|
## Modules to include:
|
||||||
|
|
||||||
USEMODULE += config
|
USEMODULE += config
|
||||||
USEMODULE += shell
|
USEMODULE += shell
|
||||||
|
|||||||
@ -1,15 +1,18 @@
|
|||||||
# name of your project
|
# name of your project
|
||||||
export PROJECT = ccn-lite-relay
|
export PROJECT = ccn-lite-relay
|
||||||
|
|
||||||
# for easy switching of boards
|
# If not BOARD is found in the environment, use this default:
|
||||||
ifeq ($(strip $(BOARD)),)
|
export BOARD ?= native
|
||||||
export BOARD = native
|
|
||||||
endif
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
# This has to be the absolute path to the RIOT base directory:
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
export RIOTBASE ?= $(CURDIR)/../../
|
||||||
|
|
||||||
# uncomment this to enable scheduler statistics for ps
|
# Uncomment these lines if you want to use platform support from external
|
||||||
|
# repositories:
|
||||||
|
#export RIOTCPU ?= $(CURDIR)/../../RIOT/thirdparty_cpu
|
||||||
|
#export RIOTBOARD ?= $(CURDIR)/../../RIOT/thirdparty_boards
|
||||||
|
|
||||||
|
# Uncomment this to enable scheduler statistics for ps:
|
||||||
#CFLAGS += -DSCHEDSTATISTICS
|
#CFLAGS += -DSCHEDSTATISTICS
|
||||||
|
|
||||||
# If you want to use valgrind, you should recompile native with either
|
# If you want to use valgrind, you should recompile native with either
|
||||||
@ -20,7 +23,15 @@ export RIOTBASE = $(CURDIR)/../..
|
|||||||
#CFLAGS += -DHAVE_VALGRIND_VALGRIND_H
|
#CFLAGS += -DHAVE_VALGRIND_VALGRIND_H
|
||||||
#CFLAGS += -DHAVE_VALGRIND_H
|
#CFLAGS += -DHAVE_VALGRIND_H
|
||||||
|
|
||||||
## Modules to include.
|
# Uncomment this to enable code in RIOT that does safety checking
|
||||||
|
# which is not needed in a production environment but helps in the
|
||||||
|
# development process:
|
||||||
|
#CFLAGS += -DDEVELHELP
|
||||||
|
|
||||||
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
|
export QUIET ?= 1
|
||||||
|
|
||||||
|
## Modules to include:
|
||||||
|
|
||||||
USEMODULE += config
|
USEMODULE += config
|
||||||
USEMODULE += uart0
|
USEMODULE += uart0
|
||||||
|
|||||||
@ -1,15 +1,18 @@
|
|||||||
# name of your project
|
# name of your project
|
||||||
export PROJECT = default
|
export PROJECT = default
|
||||||
|
|
||||||
# for easy switching of boards
|
# If not BOARD is found in the environment, use this default:
|
||||||
ifeq ($(strip $(BOARD)),)
|
export BOARD ?= native
|
||||||
export BOARD = native
|
|
||||||
endif
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
# This has to be the absolute path to the RIOT base directory:
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
export RIOTBASE ?= $(CURDIR)/../../
|
||||||
|
|
||||||
# uncomment this to enable scheduler statistics for ps
|
# Uncomment these lines if you want to use platform support from external
|
||||||
|
# repositories:
|
||||||
|
#export RIOTCPU ?= $(CURDIR)/../../RIOT/thirdparty_cpu
|
||||||
|
#export RIOTBOARD ?= $(CURDIR)/../../RIOT/thirdparty_boards
|
||||||
|
|
||||||
|
# Uncomment this to enable scheduler statistics for ps:
|
||||||
#CFLAGS += -DSCHEDSTATISTICS
|
#CFLAGS += -DSCHEDSTATISTICS
|
||||||
|
|
||||||
# If you want to use valgrind, you should recompile native with either
|
# If you want to use valgrind, you should recompile native with either
|
||||||
@ -20,6 +23,16 @@ export RIOTBASE = $(CURDIR)/../..
|
|||||||
#CFLAGS += -DHAVE_VALGRIND_VALGRIND_H
|
#CFLAGS += -DHAVE_VALGRIND_VALGRIND_H
|
||||||
#CFLAGS += -DHAVE_VALGRIND_H
|
#CFLAGS += -DHAVE_VALGRIND_H
|
||||||
|
|
||||||
|
# Uncomment this to enable code in RIOT that does safety checking
|
||||||
|
# which is not needed in a production environment but helps in the
|
||||||
|
# development process:
|
||||||
|
#CFLAGS += -DDEVELHELP
|
||||||
|
|
||||||
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
|
export QUIET ?= 1
|
||||||
|
|
||||||
|
## Modules to include:
|
||||||
|
|
||||||
USEMODULE += posix
|
USEMODULE += posix
|
||||||
USEMODULE += uart0
|
USEMODULE += uart0
|
||||||
USEMODULE += shell
|
USEMODULE += shell
|
||||||
|
|||||||
@ -1,14 +1,13 @@
|
|||||||
# name of your project
|
# name of your project
|
||||||
export PROJECT = hello-world
|
export PROJECT = hello-world
|
||||||
|
|
||||||
# for easy switching of boards
|
# If not BOARD is found in the environment, use this default:
|
||||||
ifeq ($(strip $(BOARD)),)
|
export BOARD ?= native
|
||||||
export BOARD = native
|
|
||||||
endif
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
# This has to be the absolute path to the RIOT base directory:
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
export RIOTBASE ?= $(CURDIR)/../../
|
||||||
|
|
||||||
export QUIET := 1
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
|
export QUIET ?= 1
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -1,12 +1,13 @@
|
|||||||
# name of your project
|
# name of your project
|
||||||
export PROJECT = ipc_pingpong
|
export PROJECT = ipc_pingpong
|
||||||
|
|
||||||
# for easy switching of boards
|
# If not BOARD is found in the environment, use this default:
|
||||||
ifeq ($(strip $(BOARD)),)
|
export BOARD ?= native
|
||||||
export BOARD = native
|
|
||||||
endif
|
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
# This has to be the absolute path to the RIOT base directory:
|
||||||
export RIOTBASE = $(CURDIR)/../..
|
export RIOTBASE ?= $(CURDIR)/../../
|
||||||
|
|
||||||
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
|
export QUIET ?= 1
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -1,18 +1,40 @@
|
|||||||
# name of your project
|
# name of your project
|
||||||
export PROJECT = rpl_udp
|
export PROJECT = rpl_udp
|
||||||
|
|
||||||
# for easy switching of boards
|
# If not BOARD is found in the environment, use this default:
|
||||||
ifeq ($(strip $(BOARD)),)
|
export BOARD ?= native
|
||||||
export BOARD = native
|
|
||||||
endif
|
# This has to be the absolute path to the RIOT base directory:
|
||||||
|
export RIOTBASE ?= $(CURDIR)/../../
|
||||||
|
|
||||||
|
# Uncomment these lines if you want to use platform support from external
|
||||||
|
# repositories:
|
||||||
|
#export RIOTCPU ?= $(CURDIR)/../../RIOT/thirdparty_cpu
|
||||||
|
#export RIOTBOARD ?= $(CURDIR)/../../RIOT/thirdparty_boards
|
||||||
|
|
||||||
|
# Uncomment this to enable scheduler statistics for ps:
|
||||||
|
#CFLAGS += -DSCHEDSTATISTICS
|
||||||
|
|
||||||
|
# If you want to use valgrind, you should recompile native with either
|
||||||
|
# HAVE_VALGRIND_H or HAVE_VALGRIND_VALGRIND_H depending on the location
|
||||||
|
# of the valgrind header (i.e. <valgrind.h> or <valgrind/valgrind.h>)
|
||||||
|
# For more information about the valgrind support of RIOT read:
|
||||||
|
# RIOT/cpu/native/README
|
||||||
|
#CFLAGS += -DHAVE_VALGRIND_VALGRIND_H
|
||||||
|
#CFLAGS += -DHAVE_VALGRIND_H
|
||||||
|
|
||||||
|
# Uncomment this to enable code in RIOT that does safety checking
|
||||||
|
# which is not needed in a production environment but helps in the
|
||||||
|
# development process:
|
||||||
|
#CFLAGS += -DDEVELHELP
|
||||||
|
|
||||||
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
|
export QUIET ?= 1
|
||||||
|
|
||||||
# get rid of the mandatory RPL warning
|
# get rid of the mandatory RPL warning
|
||||||
CFLAGS += "-Wno-cpp"
|
CFLAGS += "-Wno-cpp"
|
||||||
|
|
||||||
# this has to be the absolute path of the RIOT-base dir
|
## Modules to include:
|
||||||
export RIOTBASE =$(CURDIR)/../..
|
|
||||||
|
|
||||||
## Modules to include.
|
|
||||||
|
|
||||||
USEMODULE += auto_init
|
USEMODULE += auto_init
|
||||||
USEMODULE += shell
|
USEMODULE += shell
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user