# Copyright (c) 2015-2017, Arm Limited and affiliates.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#--- Inputs ----#
CPPUTEST_HOME = /usr
CPPUTEST_USE_EXTENSIONS = Y
CPPUTEST_USE_VPATH = Y
CPPUTEST_USE_GCOV = Y
CPP_PLATFORM = gcc

INCLUDE_DIRS =\
  .\
  ../stub\
  ../../../../coap-service/\
  ../../../../source/include/\
  ../../../../yotta_modules/mbedtls/ \
  ../../../../yotta_modules/sal-stack-nanostack/nanostack/ \
  ../../../../yotta_modules/nanostack-randlib/mbed-client-randlib/ \
  ../../../../yotta_modules/nanostack-libservice/ \
  ../../../../yotta_modules/nanostack-libservice/mbed-client-libservice/ \
  ../../../../yotta_modules/mbed-coap/ \
  ../../../../yotta_modules/mbed-coap/source/include/ \
  ../../../../yotta_modules/sal-stack-nanostack-eventloop/nanostack-event-loop/ \
  ../../../../yotta_modules/sal-stack-nanostack-eventloop/source/ \
  ../../../../yotta_modules/mbed-trace/ \
  ../../../../../nanostack/nanostack/\
  ../../../../../libService/libService/\
  ../../../../../mbed-coap/\
  ../../../../../mbed-coap/mbed-coap\
  ../../../../../mbed-coap/source/include/\
  ../../../../../event-loop/nanostack-event-loop/\
  ../../../../../event-loop/source/ \
  ../../../../../mbedtls/include/ \
  ../../../../../mbedtls/include/mbedtls/ \
  /usr/include\
  $(CPPUTEST_HOME)/include\

CPPUTESTFLAGS = -D__thumb2__ -w 
CPPUTEST_CFLAGS += -std=gnu99 -DNS_USE_EXTERNAL_MBED_TLS

#if you need to use -std=c++11 or c++0x you need to uncomment this
#CPPUTESTFLAGS += -DCPPUTEST_STD_CPP_LIB_DISABLED 
#CPPUTEST_CXXFLAGS += -std=gnu++0x

