vpath % C:/ti/ipc_3_47_02_00/packages/
vpath %.c C:/ti/xdctools_3_50_07_20_core/packages/

CCOPTS = -mcpu=cortex-a15 -mfpu=neon -mfloat-abi=hard -mabi=aapcs -g    -Wunused -Wunknown-pragmas -ffunction-sections -fdata-sections   -Dfar= -D__DYNAMIC_REENT__   -mapcs 

BUILD_DEFS =  -Dti_sdo_ipc_MessageQ_traceFlag__D=FALSE -Dti_sdo_ipc_family_ti81xx_InterruptDucati_videoProcId__D=65535 -Dti_sdo_ipc_family_ti81xx_InterruptDucati_hostProcId__D=65535 -Dti_sdo_ipc_family_ti81xx_InterruptDucati_vpssProcId__D=65535 -Dti_sdo_ipc_family_ti81xx_InterruptDucati_dspProcId__D=65535 -Dti_sdo_ipc_family_ti81xx_InterruptDucati_ducatiCtrlBaseAddr__D=1073745920 -Dti_sdo_ipc_family_ti81xx_InterruptDucati_mailboxBaseAddr__D=1208778752

INCS = -IC:/ti/ipc_3_47_02_00/packages -IC:/ti/ctoolslib_1_1_1_0/packages -IC:/ti/ctoolslib_1_1_1_0/packages/ti -IC:/ti/dsplib_c66x_3_4_0_0/packages -IC:/ti/edma3_lld_2_12_05_30B/packages -IC:/ti/framework_components_3_40_02_07/packages -IC:/ti/framework_components_3_40_02_07/examples -IC:/ti/imglib_c66x_3_1_1_0/packages -IC:/ti/pdk_k2l_4_0_10/packages -IC:/ti/mathlib_c66x_3_1_1_0/packages -IC:/ti/mcsdk_bios_3_01_03_06/demos -IC:/ti/ndk_2_26_00_08/packages -IC:/ti/bios_6_52_00_12/packages -IC:/ti/uia_2_21_02_07/packages -IC:/ti/xdais_7_24_00_04/packages -IC:/ti/xdais_7_24_00_04/examples -IC:/ti/openmp_dsp_k2x_2_06_02_01/packages

CC = C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc -c -MD -MF $@.dep $(CCOPTS) -I C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include
ASM = C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc -c -x assembler-with-cpp $(CCOPTS) -I C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include
AR = C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-ar  cr

DEL = cmd.exe /q /c del /f
CP = cmd.exe /q /c copy /Y
MKDIR = mkdir

define RM
	$(if $(wildcard $1),$(DEL) $1,:)
endef

define ASSEMBLE
	@echo asma15fg $< ...
	@$(ASM) $(BUILD_DEFS) -I "C:/ti/xdctools_3_50_07_20_core/packages/" -Dxdc_target_types__=C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/std.h -Dxdc_target_name__=A15F $(INCS) $<
endef

define COMPILE
	@echo cla15fg $< ...
	@$(CC) $(BUILD_DEFS) -I "C:/ti/xdctools_3_50_07_20_core/packages/" -Dxdc_target_types__=C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/std.h -Dxdc_target_name__=A15F $(INCS) $<
endef


all: ipc.aa15fg


ti_sdo_utils_NameServer.o: ti/sdo/utils/NameServer.c makefile
	@-$(call RM, ti_sdo_utils_NameServer.o)
	$(COMPILE) -o ti_sdo_utils_NameServer.o
ti_sdo_utils_NameServerRemoteNull.o: ti/sdo/utils/NameServerRemoteNull.c makefile
	@-$(call RM, ti_sdo_utils_NameServerRemoteNull.o)
	$(COMPILE) -o ti_sdo_utils_NameServerRemoteNull.o
ti_sdo_utils_MultiProc.o: ti/sdo/utils/MultiProc.c makefile
	@-$(call RM, ti_sdo_utils_MultiProc.o)
	$(COMPILE) -o ti_sdo_utils_MultiProc.o
ti_sdo_utils_List.o: ti/sdo/utils/List.c makefile
	@-$(call RM, ti_sdo_utils_List.o)
	$(COMPILE) -o ti_sdo_utils_List.o
ti_sdo_ipc_GateMP.o: ti/sdo/ipc/GateMP.c makefile
	@-$(call RM, ti_sdo_ipc_GateMP.o)
	$(COMPILE) -o ti_sdo_ipc_GateMP.o
ti_sdo_ipc_MessageQ.o: ti/sdo/ipc/MessageQ.c makefile
	@-$(call RM, ti_sdo_ipc_MessageQ.o)
	$(COMPILE) -o ti_sdo_ipc_MessageQ.o
ti_sdo_ipc_SharedRegion.o: ti/sdo/ipc/SharedRegion.c makefile
	@-$(call RM, ti_sdo_ipc_SharedRegion.o)
	$(COMPILE) -o ti_sdo_ipc_SharedRegion.o
ti_sdo_ipc_Ipc.o: ti/sdo/ipc/Ipc.c makefile
	@-$(call RM, ti_sdo_ipc_Ipc.o)
	$(COMPILE) -o ti_sdo_ipc_Ipc.o
ti_sdo_ipc_Notify.o: ti/sdo/ipc/Notify.c makefile
	@-$(call RM, ti_sdo_ipc_Notify.o)
	$(COMPILE) -o ti_sdo_ipc_Notify.o
ti_sdo_ipc_transports_TransportShmNotify.o: ti/sdo/ipc/transports/TransportShmNotify.c makefile
	@-$(call RM, ti_sdo_ipc_transports_TransportShmNotify.o)
	$(COMPILE) -o ti_sdo_ipc_transports_TransportShmNotify.o
ti_sdo_ipc_transports_TransportShmNotifySetup.o: ti/sdo/ipc/transports/TransportShmNotifySetup.c makefile
	@-$(call RM, ti_sdo_ipc_transports_TransportShmNotifySetup.o)
	$(COMPILE) -o ti_sdo_ipc_transports_TransportShmNotifySetup.o
ti_sdo_ipc_notifyDrivers_NotifyDriverCirc.o: ti/sdo/ipc/notifyDrivers/NotifyDriverCirc.c makefile
	@-$(call RM, ti_sdo_ipc_notifyDrivers_NotifyDriverCirc.o)
	$(COMPILE) -o ti_sdo_ipc_notifyDrivers_NotifyDriverCirc.o
ti_sdo_ipc_family_tci663x_Interrupt.o: ti/sdo/ipc/family/tci663x/Interrupt.c makefile
	@-$(call RM, ti_sdo_ipc_family_tci663x_Interrupt.o)
	$(COMPILE) -o ti_sdo_ipc_family_tci663x_Interrupt.o
ti_sdo_ipc_family_tci663x_MultiProcSetup.o: ti/sdo/ipc/family/tci663x/MultiProcSetup.c makefile
	@-$(call RM, ti_sdo_ipc_family_tci663x_MultiProcSetup.o)
	$(COMPILE) -o ti_sdo_ipc_family_tci663x_MultiProcSetup.o
ti_sdo_ipc_family_tci663x_NotifyCircSetup.o: ti/sdo/ipc/family/tci663x/NotifyCircSetup.c makefile
	@-$(call RM, ti_sdo_ipc_family_tci663x_NotifyCircSetup.o)
	$(COMPILE) -o ti_sdo_ipc_family_tci663x_NotifyCircSetup.o
ti_sdo_ipc_gates_GateHWSem.o: ti/sdo/ipc/gates/GateHWSem.c makefile
	@-$(call RM, ti_sdo_ipc_gates_GateHWSem.o)
	$(COMPILE) -o ti_sdo_ipc_gates_GateHWSem.o
ti_sdo_ipc_gates_GatePeterson.o: ti/sdo/ipc/gates/GatePeterson.c makefile
	@-$(call RM, ti_sdo_ipc_gates_GatePeterson.o)
	$(COMPILE) -o ti_sdo_ipc_gates_GatePeterson.o
ti_sdo_ipc_gates_GateMPSupportNull.o: ti/sdo/ipc/gates/GateMPSupportNull.c makefile
	@-$(call RM, ti_sdo_ipc_gates_GateMPSupportNull.o)
	$(COMPILE) -o ti_sdo_ipc_gates_GateMPSupportNull.o
ti_sdo_ipc_heaps_HeapMemMP.o: ti/sdo/ipc/heaps/HeapMemMP.c makefile
	@-$(call RM, ti_sdo_ipc_heaps_HeapMemMP.o)
	$(COMPILE) -o ti_sdo_ipc_heaps_HeapMemMP.o
ti_sdo_ipc_nsremote_NameServerRemoteNotify.o: ti/sdo/ipc/nsremote/NameServerRemoteNotify.c makefile
	@-$(call RM, ti_sdo_ipc_nsremote_NameServerRemoteNotify.o)
	$(COMPILE) -o ti_sdo_ipc_nsremote_NameServerRemoteNotify.o

ipc.aa15fg: ti_sdo_utils_NameServer.o ti_sdo_utils_NameServerRemoteNull.o ti_sdo_utils_MultiProc.o ti_sdo_utils_List.o ti_sdo_ipc_GateMP.o ti_sdo_ipc_MessageQ.o ti_sdo_ipc_SharedRegion.o ti_sdo_ipc_Ipc.o ti_sdo_ipc_Notify.o ti_sdo_ipc_transports_TransportShmNotify.o ti_sdo_ipc_transports_TransportShmNotifySetup.o ti_sdo_ipc_notifyDrivers_NotifyDriverCirc.o ti_sdo_ipc_family_tci663x_Interrupt.o ti_sdo_ipc_family_tci663x_MultiProcSetup.o ti_sdo_ipc_family_tci663x_NotifyCircSetup.o ti_sdo_ipc_gates_GateHWSem.o ti_sdo_ipc_gates_GatePeterson.o ti_sdo_ipc_gates_GateMPSupportNull.o ti_sdo_ipc_heaps_HeapMemMP.o ti_sdo_ipc_nsremote_NameServerRemoteNotify.o
	@echo ara15fg $^ ...
	@-$(call RM, $@)
	@$(AR) $@ $^


clean:
	@-$(call RM, ipc.aa15fg)
	@-$(call RM, BIOS.o)
	@-$(call RM, ti_sdo_utils_NameServer.o)
	@-$(call RM, ti_sdo_utils_NameServerRemoteNull.o)
	@-$(call RM, ti_sdo_utils_MultiProc.o)
	@-$(call RM, ti_sdo_utils_List.o)
	@-$(call RM, ti_sdo_ipc_GateMP.o)
	@-$(call RM, ti_sdo_ipc_MessageQ.o)
	@-$(call RM, ti_sdo_ipc_SharedRegion.o)
	@-$(call RM, ti_sdo_ipc_Ipc.o)
	@-$(call RM, ti_sdo_ipc_Notify.o)
	@-$(call RM, ti_sdo_ipc_transports_TransportShmNotify.o)
	@-$(call RM, ti_sdo_ipc_transports_TransportShmNotifySetup.o)
	@-$(call RM, ti_sdo_ipc_notifyDrivers_NotifyDriverCirc.o)
	@-$(call RM, ti_sdo_ipc_family_tci663x_Interrupt.o)
	@-$(call RM, ti_sdo_ipc_family_tci663x_MultiProcSetup.o)
	@-$(call RM, ti_sdo_ipc_family_tci663x_NotifyCircSetup.o)
	@-$(call RM, ti_sdo_ipc_gates_GateHWSem.o)
	@-$(call RM, ti_sdo_ipc_gates_GatePeterson.o)
	@-$(call RM, ti_sdo_ipc_gates_GateMPSupportNull.o)
	@-$(call RM, ti_sdo_ipc_heaps_HeapMemMP.o)
	@-$(call RM, ti_sdo_ipc_nsremote_NameServerRemoteNotify.o)
