-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
44 lines (35 loc) · 989 Bytes
/
Makefile
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
PACKAGES_DIR=../../packages
LWM2M_DIR=$(PACKAGES_DIR)/AwaLWM2M
CONTIKI_PROJECT=lwm2m-client-button-sensor
VERSION?=$(shell git describe --abbrev=4 --dirty --always --tags)
CONTIKI=../../constrained-os/contiki
CONTIKI_WITH_IPV6 = 1
CONTIKI_WITH_RPL = 0
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\" -DVERSION='\"$(VERSION)\"'
CFLAGS += -Wall -Wno-pointer-sign -DLWM2M_CLIENT
CFLAGS += -I$(LWM2M_DIR)/api/include
ifneq (,$(filter $(TARGET),seedeye mikro-e))
CFLAGS += -fno-short-double
LDFLAGS += -Wl,--defsym,_min_heap_size=64000
endif
APPS += er-coap
APPS += rest-engine
APPS += client
APPS += common
APPS += jsmn
APPS += b64
APPS += hmac
APPS += libobjects
ifeq ($(TARGET),minimal-net)
APPS += xml
endif
APPDIRS += $(LWM2M_DIR)/lib
APPDIRS += $(LWM2M_DIR)/core/src
APPDIRS += $(PACKAGES_DIR)
all: $(CONTIKI_PROJECT)
xc32-bin2hex $(CONTIKI_PROJECT).$(TARGET)
distclean: cleanall
cleanall:
rm -f $(CONTIKI_PROJECT).hex
rm -f symbols.*
include $(CONTIKI)/Makefile.include