-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakedefaults
50 lines (39 loc) · 1.5 KB
/
Makedefaults
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#-*-Makefile-*- vim:syntax=make
### ---
### --- Set standard defaults for user-definable variables
### ---
OPTFLAGS ?= -Os
NESC_FLAGS ?= -Wnesc-all -fnesc-include=tos
NESC_SCHEDULER ?= TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask
NESC_CFILE ?= $(TOSMAKE_BUILD_DIR)/app.c
NESC_SEPARATOR ?= __
# Add the standard TinyOS source directories to the build search path
TOSMAKE_PFLAGS_STD_INCLUDE ?= -I%T/system -I%T/types -I%T/interfaces
### ---
### --- Set common variables that are local to the Make system that are used in
### --- many .rules files.
### ---
# Setup variables for the common output files. Not all toolchains may use all
# these, but this way not all .rules files have to set all of them.
TOSMAKE_BUILD_DIR ?= build/$(TARGET)
MAIN_EXE = $(TOSMAKE_BUILD_DIR)/main.exe
MAIN_LST = $(TOSMAKE_BUILD_DIR)/main.lst
MAIN_SYM = $(TOSMAKE_BUILD_DIR)/main.sym
MAIN_MAP = $(TOSMAKE_BUILD_DIR)/main.map
MAIN_IHEX = $(TOSMAKE_BUILD_DIR)/main.ihex
MAIN_BIN = $(TOSMAKE_BUILD_DIR)/main.bin
MAIN_SREC = $(TOSMAKE_BUILD_DIR)/main.srec
MAIN_ELF = $(TOSMAKE_BUILD_DIR)/main.elf
# Default applications
SET_ID ?= tos-set-symbols
NESC ?= nescc
# Variable name to be replaced when a NODEID is set
TOSMAKE_AMADDR_STR ?= ActiveMessageAddressC__addr
TOSMAKE_TOS_NODE_ID_STR ?= TOS_NODE_ID
# Cause Makerules to include more .extra files
# GOALS += tos_image tos_buildinfo tosboot
GOALS += build_container
define DEFAULT_HELP
Welcome to the TinyOS container make system!
endef
HELP += $(DEFAULT_HELP)