Skip to content

Instantly share code, notes, and snippets.

@benpicco
Created May 12, 2014 15:38
Show Gist options
  • Save benpicco/c53707dcb5a69b6ec25b to your computer and use it in GitHub Desktop.
Save benpicco/c53707dcb5a69b6ec25b to your computer and use it in GitHub Desktop.
####
#### Sample Makefile for building apps with the RIOT OS
####
#### The Sample Filesystem Layout is:
#### /this makefile
#### ../../RIOT
#### ../../boards for board definitions (if you have one or more)
####
# name of your application
export PROJECT = olsr_node
export BOARD ?= native
export RIOTBASE ?= $(CURDIR)/../..
USEPKG += oonf_api
export CFLAGS = -DRIOT -DENABLE_NAME
## Modules to include.
USEMODULE += rtc
USEMODULE += uart0
USEMODULE += posix
USEMODULE += ps
USEMODULE += shell
USEMODULE += shell_commands
USEMODULE += random
USEMODULE += config
USEMODULE += olsr2
SEMODULE += defaulttransceiver
ifeq ($(BOARD),native)
export CFLAGS += -DINIT_ON_START
endif
ifeq ($(BOARD),msba2)
export CFLAGS += -DINIT_ON_START -DENABLE_LEDS
endif
include $(RIOTBASE)/Makefile.include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment