Absent client's certificate CB
[platform/upstream/iotivity.git] / resource / csdk / arduinodue.properties
1 #Source directories
2 SDIR_ARD_CORE_1 = $(ARDUINO_DIR)/hardware/arduino/sam/cores/arduino
3 SDIR_ARD_CORE_2 = $(ARDUINO_DIR)/hardware/arduino/sam/cores/arduino/USB
4 SDIR_ARD_CORE_3 = $(ARDUINO_DIR)/hardware/arduino/sam/variants/arduino_due_x
5 SDIR_ARD_CORE_4 = $(ARDUINO_DIR)/hardware/arduino/sam/cores/arduino/avr
6 SDIR_ARD_SPI = $(ARDUINO_DIR)/hardware/arduino/sam/libraries/SPI
7 SDIR_ARD_ETH = $(ARDUINO_DIR)/libraries/Ethernet/src
8 SDIR_ARD_ETH_UTIL = $(ARDUINO_DIR)/libraries/Ethernet/src/utility
9 SDIR_ARD_WIFI = $(ARDUINO_DIR)/libraries/WiFi/src
10 SDIR_ARD_WIFI_UTIL = $(ARDUINO_DIR)/libraries/WiFi/src/utility
11 SDIR_ARD_TIME = $(ARDUINO_DIR)/libraries/Time/Time
12
13 SDIR_ARD_PLATFORM = $(SDIR_ARD_CORE_1):$(SDIR_ARD_CORE_2):$(SDIR_ARD_CORE_3):$(SDIR_ARD_CORE_4):$(SDIR_ARD_SPI):\
14                         $(SDIR_ARD_TIME)
15
16 #include directories
17 IDIR_ARD_CORE_1 = $(ARDUINO_DIR)/hardware/arduino/sam/cores/arduino
18 IDIR_ARD_CORE_2 = $(ARDUINO_DIR)/hardware/arduino/sam/system/libsam
19 IDIR_ARD_CORE_3 = $(ARDUINO_DIR)/hardware/arduino/sam/system/CMSIS/CMSIS/Include
20 IDIR_ARD_CORE_4 = $(ARDUINO_DIR)/hardware/arduino/sam/system/CMSIS/Device/ATMEL
21 IDIR_ARD_CORE_5 = $(ARDUINO_DIR)/hardware/arduino/sam/variants/arduino_due_x
22 IDIR_ARD_SPI = $(ARDUINO_DIR)/hardware/arduino/sam/libraries/SPI
23 IDIR_ARD_ETH = $(ARDUINO_DIR)/libraries/Ethernet/src
24 IDIR_ARD_ETH_UTIL = $(ARDUINO_DIR)/libraries/Ethernet/src/utility
25 INCD_ARD_WIFI = $(ARDUINO_DIR)/libraries/WiFi/src
26 INCD_ARD_WIFI_UTIL = $(ARDUINO_DIR)/libraries/WiFi/src/utility
27 INCD_ARD_TIME = $(ARDUINO_DIR)/libraries/Time/Time
28
29
30 INC_DIR_PLATFORM = -I$(IDIR_ARD_CORE_1) -I$(IDIR_ARD_CORE_2) -I$(IDIR_ARD_CORE_3) -I$(IDIR_ARD_CORE_4) -I$(IDIR_ARD_CORE_5) \
31                     -I$(IDIR_ARD_SPI) -I$(INCD_ARD_TIME)
32
33 #Compiler/Linker flags
34 CFLAGS_PLATFORM = -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions \
35                      -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=157 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM \
36                      -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON -DUSB_MANUFACTURER="Unknown" \
37                      -DWITH_ARDUINO -DNDEBUG
38
39 #Compilers
40 CXX=$(ARDUINO_TOOLS_DIR)/arm-none-eabi-g++
41 CC=$(ARDUINO_TOOLS_DIR)/arm-none-eabi-gcc
42 AR=$(ARDUINO_TOOLS_DIR)/arm-none-eabi-ar
43 RANLIB=$(ARDUINO_TOOLS_DIR)/arm-none-eabi-ranlib
44 AVR_PROGRAMMER=$(ARDUINO_TOOLS_DIR)/bossac
45
46 #Needed object files
47 CORE_COBJ = hooks.o dtostrf.o iar_calls_sam3.o WInterrupts.o wiring.o wiring_digital.o wiring_analog.o wiring_shift.o\
48                  wiring_pulse.o USARTClass.o USBCore.o RingBuffer.o cortex_handlers.o
49 CORE_CPPOBJ = itoa.o main.o Stream.o WMath.o WString.o Print.o IPAddress.o HID.o UARTClass.o CDC.o Reset.o cxxabi-compat.o
50 ETH_CPPOBJ = Dhcp.o Dns.o Ethernet.o EthernetUdp.o EthernetClient.o
51 ETH_UTIL_CPPOBJ = socket.o w5100.o
52 WIFI_COBJ = WiFi.o WiFiClient.o WiFiServer.o WiFiUdp.o server_drv.o spi_drv.o wifi_drv.o
53 VARIANT_OBJ = variant.o
54 SPI_OBJ = SPI.o
55 SYSCALLS_SAM3_OBJ = syscalls_sam3.o
56
57 PLATFORM_OBJS = $(SYSCALLS_SAM3_OBJ) $(SPI_OBJ) $(VARIANT_OBJ) $(CORE_COBJ) $(CORE_CPPOBJ)
58
59 #Include sources/objects corresponding to WiFi or Ethernet shield
60 ifeq ($(ARDUINOWIFI),1)
61     INC_DIR_PLATFORM += -I$(INCD_ARD_WIFI) -I$(INCD_ARD_WIFI_UTIL)
62     SDIR_ARD_PLATFORM += :$(SDIR_ARD_WIFI):$(SDIR_ARD_WIFI_UTIL)
63     PLATFORM_OBJS += $(WIFI_COBJ)
64 else
65     INC_DIR_PLATFORM += -I$(IDIR_ARD_ETH) -I$(IDIR_ARD_ETH_UTIL)
66     SDIR_ARD_PLATFORM += :$(SDIR_ARD_ETH):$(SDIR_ARD_ETH_UTIL)
67     PLATFORM_OBJS += $(ETH_CPPOBJ) $(ETH_UTIL_CPPOBJ)
68 endif
69
70