-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
49 lines (37 loc) · 918 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
45
46
47
48
49
all: udp-client udp-server
extra: example tools tests
CONTIKI=contiki
WITH_UIP6=1
UIP_CONF_IPV6=1
include Makefile.curve
CURVE_DIR=ecc/curve-params
CFLAGS+= -DUIP_CONF_IPV6_RPL \
-DSHA2_USE_INTTYPES_H \
-DWITH_SHA256 \
-D$(DOMAIN_PARAMS) \
-DTHIRTYTWO_BIT_PROCESSOR \
-DDOMAIN_PARAMS=$(DOMAIN_PARAMS)
PROJECT_SOURCEFILES += ecc.c ecdsa.c nn.c sha2.c certificate.c
PROJECTDIRS += sha2 ecc $(CURVE_DIR) certificate
include ecc/curve-params/Makefile.curve_params
# mc1322x is little endian only
ifeq ($(TARGET),econotag)
CFLAGS+= -DWORDS_LITTLEENDIAN
endif
ifdef WITH_COMPOWER
APPS+=powertrace
CFLAGS+= -DCONTIKIMAC_CONF_COMPOWER=1 -DWITH_COMPOWER=1 -DQUEUEBUF_CONF_NUM=4
endif
ifdef SERVER_REPLY
CFLAGS+=-DSERVER_REPLY=$(SERVER_REPLY)
endif
ifdef PERIOD
CFLAGS+=-DPERIOD=$(PERIOD)
endif
include $(CONTIKI)/Makefile.include
example:
make -C example
tools:
make -C tools
tests:
make -C tests