-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (37 loc) · 1.03 KB
/
Makefile
File metadata and controls
47 lines (37 loc) · 1.03 KB
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
PACKAGES_DIR=../../packages
LWM2M_DIR=$(PACKAGES_DIR)/AwaLWM2M
CONTIKI_PROJECT=lwm2m-client-motion-sensor
VERSION?=$(shell git describe --abbrev=4 --dirty --always --tags)
CONTIKI=../../constrained-os/contiki
CONTIKI_WITH_IPV6 = 1
CONTIKI_WITH_RPL = 0
MOTION_CLICK = motion-click
CFLAGS += -fno-short-double
LDFLAGS += -Wl,--defsym,_min_heap_size=64000
CFLAGS += -DMOTION_CLICK
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\" -DVERSION='\"$(VERSION)\"'
CFLAGS += -Wall -Wno-pointer-sign -DLWM2M_CLIENT
CFLAGS += -I$(LWM2M_DIR)/api/include
APPS += er-coap
APPS += rest-engine
APPS += client
APPS += common
APPS += jsmn
APPS += b64
APPS += hmac
APPS += libobjects
APPS += motion-click
ifeq ($(TARGET),minimal-net)
APPS += xml
endif
APPDIRS += $(LWM2M_DIR)/lib
APPDIRS += $(LWM2M_DIR)/core/src
APPDIRS += $(PACKAGES_DIR)
APPDIRS += $(CONTIKI)/platform/mikro-e/dev/
all: $(CONTIKI_PROJECT)
xc32-bin2hex $(CONTIKI_PROJECT).$(TARGET)
distclean: cleanall
cleanall:
rm -f $(CONTIKI_PROJECT).hex
rm -f symbols.*
include $(CONTIKI)/Makefile.include