################################################################################
# Automatically-generated file. Do not edit!
################################################################################

#Include Directories
#INC=-I../../polarssl

ifeq ($(TG_SDK_VER),V4)
    C_FLAGS += -DTEEGRIS_V4
    TG_SDK_PLATFORM_PATH:=$(TG_SDK_PATH)/platforms/TEEGRIS-4.1
else if ($(TG_SDK_VER),V3)
    C_FLAGS += -DTEEGRIS_V3
    TG_SDK_PLATFORM_PATH:=$(TG_SDK_PATH)/platforms/TEEGRIS-3.0
else
    TG_SDK_PLATFORM_PATH:=$(TG_SDK_PATH)/platforms/BF-2.0
endif

ifeq  ($(USE_MTK),true)
    INC=-I../../$(TG_SDK_PLATFORM_PATH)/swd/arch-arm/usr/include/ -I../MTK
else
    INC=-I../../$(TG_SDK_PLATFORM_PATH)/swd/arch-arm/usr/include/
endif

LIBPATH=-L../../$(TG_SDK_PLATFORM_PATH)/swd/arch-arm/usr/lib/

# Add inputs and outputs from these tool invocations to the build variables
USER_OBJS += ./tz_hdcp2_decode_key.o

C_SRCS += \
    ../tz_hdcp2.c  \
    ../tz_hdcp2_crypto.c \
    ../tz_hdcp2_key_WRAPAPI.c \
    ../tz_hdcp2_transmitter.c \
    ../tz_hdcp2_receiver.c

OBJS += \
    ./tz_hdcp2.o \
    ./tz_hdcp2_crypto.o \
    ./tz_hdcp2_key_WRAPAPI.o \
    ./tz_hdcp2_transmitter.o \
    ./tz_hdcp2_receiver.o

C_DEPS += \
    ./tz_hdcp2.d \
    ./tz_hdcp2_crypto.d \
    ./tz_hdcp2_key_WRAPAPI.d \
    ./tz_hdcp2_transmitter.d \
    ./tz_hdcp2_receiver.d

ifeq ($(USE_MTK),true)
    C_FLAGS += -DUSE_MTK
endif

ifeq ($(DEBUG), true)
    C_FLAGS += -DDEBUG
endif

ifeq ($(USE_WFD_TS_MUX_HW), true)
    C_FLAGS += -DUSE_WFD_TS_MUX_HW
endif

# Each subdirectory must supply rules for building sources it contributes
%.o: ../%.c
	@echo 'Building file: $<'
	@echo 'Invoking: GCC C Compiler'
	../../$(TG_TOOLCHAIN)/bin/arm-secureos-gnueabi-gcc $(C_FLAGS) -O0 -v -c $(INC) $(LIBPATH) -fstack-protector -fstack-protector-all -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -g3 -gdwarf-3 -gstrict-dwarf -o "$@" "$<"
	@echo 'Finished building: $<'
	@echo ' '
