vpath % C:/ti/bios_6_40_01_15/packages/ti/sysbios/
vpath %.c C:/ti/xdctools_3_30_02_44_core/packages/

CCOPTS    = -Wunused -Wunknown-pragmas -ffunction-sections -fdata-sections -mcpu=cortex-a15 -mfpu=neon -mfloat-abi=hard -mabi=aapcs -g  -O3 -IC:/ti/bios_6_40_01_15/packages/gnu/targets/arm//libs/install-native/$(GCCTARG)/include -Dfar= -D__DYNAMIC_REENT__  

XDC_ROOT  = C:/ti/xdctools_3_30_02_44_core/packages/

BIOS_ROOT = C:/ti/bios_6_40_01_15/packages/ti/sysbios/

BIOS_DEFS =  -Dti_sysbios_BIOS_swiEnabled__D=TRUE -Dti_sysbios_BIOS_taskEnabled__D=TRUE -Dti_sysbios_BIOS_clockEnabled__D=TRUE -Dti_sysbios_BIOS_runtimeCreatesEnabled__D=TRUE -Dti_sysbios_hal_Hwi_DISABLE_ALL_HOOKS -Dti_sysbios_knl_Swi_DISABLE_ALL_HOOKS -Dti_sysbios_BIOS_smpEnabled__D=FALSE -Dti_sysbios_Build_useHwiMacros -Dti_sysbios_knl_Swi_numPriorities__D=16 -Dti_sysbios_knl_Task_deleteTerminatedTasks__D=FALSE -Dti_sysbios_knl_Task_numPriorities__D=16 -Dti_sysbios_knl_Task_checkStackFlag__D=TRUE -Dti_sysbios_knl_Clock_TICK_SOURCE=ti_sysbios_knl_Clock_TickSource_TIMER -Dti_sysbios_knl_Clock_TICK_MODE=ti_sysbios_knl_Clock_TickMode_PERIODIC -Dti_sysbios_hal_Core_delegate_getId=ti_sysbios_hal_CoreNull_getId__E -Dti_sysbios_hal_Core_delegate_interruptCore=ti_sysbios_hal_CoreNull_interruptCore__E -Dti_sysbios_hal_Core_delegate_lock=ti_sysbios_hal_CoreNull_lock__E -Dti_sysbios_hal_Core_delegate_unlock=ti_sysbios_hal_CoreNull_unlock__E -Dti_sysbios_hal_Core_numCores__D=1 -Dti_sysbios_hal_CoreNull_numCores__D=1 -Dti_sysbios_utils_Load_taskEnabled__D=TRUE -Dti_sysbios_utils_Load_swiEnabled__D=FALSE -Dti_sysbios_family_arm_gic_Hwi_dispatcherSwiSupport__D=TRUE -Dti_sysbios_family_arm_gic_Hwi_dispatcherTaskSupport__D=TRUE -Dti_sysbios_family_arm_gic_Hwi_dispatcherAutoNestingSupport__D=TRUE -Dti_sysbios_family_arm_gic_Hwi_dispatcherIrpTrackingSupport__D=TRUE -Dti_sysbios_knl_Semaphore_supportsEvents__D=FALSE -Dti_sysbios_knl_Semaphore_supportsPriority__D=TRUE -Dti_sysbios_family_arm_exc_Exception_enableDecode__D=TRUE -Dti_sysbios_family_arm_gic_Hwi_enableSecureMode__D=FALSE

BIOS_INC  = -I"C:/ti/bios_6_40_01_15/packages/"

TARGET_INC = -I"C:/ti/bios_6_40_01_15/packages/"

INCS = $(BIOS_INC) $(TARGET_INC) 

GCCTARG = arm-none-eabi

CC = c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc -c -MD -MF $@.dep $(CCOPTS)
ASM = c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-gcc -c -x assembler-with-cpp $(CCOPTS)
AR = c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/arm-none-eabi-ar  cr

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

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

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

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


all: sysbios.aa15fg

arm_IntrinsicsSupport_asm_gnu.o: family/arm/IntrinsicsSupport_asm_gnu.asm makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o arm_IntrinsicsSupport_asm_gnu.o

arm_TaskSupport_asm_gnu.o: family/arm/TaskSupport_asm_gnu.asm makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o arm_TaskSupport_asm_gnu.o

exc_Exception_asm_gnu.o: family/arm/exc/Exception_asm_gnu.asm makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o exc_Exception_asm_gnu.o

a15_TimestampProvider_asm_gnu.o: family/arm/a15/TimestampProvider_asm_gnu.asm makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o a15_TimestampProvider_asm_gnu.o

a15_Mmu_asm_gnu.o: family/arm/a15/Mmu_asm_gnu.asm makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o a15_Mmu_asm_gnu.o

a15_Cache_asm_gnu.o: family/arm/a15/Cache_asm_gnu.asm makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o a15_Cache_asm_gnu.o

gic_Hwi_asm_gnu.o: family/arm/gic/Hwi_asm_gnu.asm makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o gic_Hwi_asm_gnu.o

systimer_Timer_asm_gnu.o: family/arm/systimer/Timer_asm_gnu.asm makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o systimer_Timer_asm_gnu.o

gptimer_Timer_asm_gnu.o: timers/gptimer/Timer_asm_gnu.sv7A makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o gptimer_Timer_asm_gnu.o

dmtimer_Timer_asm_gnu.o: timers/dmtimer/Timer_asm_gnu.sv7A makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o dmtimer_Timer_asm_gnu.o

timer64_Timer_asm_gnu.o: timers/timer64/Timer_asm_gnu.sv7A makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o timer64_Timer_asm_gnu.o


_BIOS.o: BIOS.c makefile
	@-$(call RM, _BIOS.o)
	$(COMPILE) -o _BIOS.o
arm_IntrinsicsSupport.o: family/arm/IntrinsicsSupport.c makefile
	@-$(call RM, arm_IntrinsicsSupport.o)
	$(COMPILE) -o arm_IntrinsicsSupport.o
arm_TaskSupport.o: family/arm/TaskSupport.c makefile
	@-$(call RM, arm_TaskSupport.o)
	$(COMPILE) -o arm_TaskSupport.o
knl_Clock.o: knl/Clock.c makefile
	@-$(call RM, knl_Clock.o)
	$(COMPILE) -o knl_Clock.o
knl_Idle.o: knl/Idle.c makefile
	@-$(call RM, knl_Idle.o)
	$(COMPILE) -o knl_Idle.o
knl_Intrinsics.o: knl/Intrinsics.c makefile
	@-$(call RM, knl_Intrinsics.o)
	$(COMPILE) -o knl_Intrinsics.o
knl_Queue.o: knl/Queue.c makefile
	@-$(call RM, knl_Queue.o)
	$(COMPILE) -o knl_Queue.o
knl_Semaphore.o: knl/Semaphore.c makefile
	@-$(call RM, knl_Semaphore.o)
	$(COMPILE) -o knl_Semaphore.o
knl_Swi.o: knl/Swi.c makefile
	@-$(call RM, knl_Swi.o)
	$(COMPILE) -o knl_Swi.o
knl_Swi_andn.o: knl/Swi_andn.c makefile
	@-$(call RM, knl_Swi_andn.o)
	$(COMPILE) -o knl_Swi_andn.o
knl_Task.o: knl/Task.c makefile
	@-$(call RM, knl_Task.o)
	$(COMPILE) -o knl_Task.o
heaps_HeapMem.o: heaps/HeapMem.c makefile
	@-$(call RM, heaps_HeapMem.o)
	$(COMPILE) -o heaps_HeapMem.o
a15_Cache.o: family/arm/a15/Cache.c makefile
	@-$(call RM, a15_Cache.o)
	$(COMPILE) -o a15_Cache.o
a15_Mmu.o: family/arm/a15/Mmu.c makefile
	@-$(call RM, a15_Mmu.o)
	$(COMPILE) -o a15_Mmu.o
a15_TimestampProvider.o: family/arm/a15/TimestampProvider.c makefile
	@-$(call RM, a15_TimestampProvider.o)
	$(COMPILE) -o a15_TimestampProvider.o
hal_Hwi.o: hal/Hwi.c makefile
	@-$(call RM, hal_Hwi.o)
	$(COMPILE) -o hal_Hwi.o
hal_Hwi_stack.o: hal/Hwi_stack.c makefile
	@-$(call RM, hal_Hwi_stack.o)
	$(COMPILE) -o hal_Hwi_stack.o
hal_Hwi_startup.o: hal/Hwi_startup.c makefile
	@-$(call RM, hal_Hwi_startup.o)
	$(COMPILE) -o hal_Hwi_startup.o
hal_Cache.o: hal/Cache.c makefile
	@-$(call RM, hal_Cache.o)
	$(COMPILE) -o hal_Cache.o
gic_Hwi.o: family/arm/gic/Hwi.c makefile
	@-$(call RM, gic_Hwi.o)
	$(COMPILE) -o gic_Hwi.o
exc_Exception.o: family/arm/exc/Exception.c makefile
	@-$(call RM, exc_Exception.o)
	$(COMPILE) -o exc_Exception.o
gnu_ReentSupport.o: rts/gnu/ReentSupport.c makefile
	@-$(call RM, gnu_ReentSupport.o)
	$(COMPILE) -o gnu_ReentSupport.o
systimer_Timer.o: family/arm/systimer/Timer.c makefile
	@-$(call RM, systimer_Timer.o)
	$(COMPILE) -o systimer_Timer.o
gates_GateHwi.o: gates/GateHwi.c makefile
	@-$(call RM, gates_GateHwi.o)
	$(COMPILE) -o gates_GateHwi.o
gates_GateMutex.o: gates/GateMutex.c makefile
	@-$(call RM, gates_GateMutex.o)
	$(COMPILE) -o gates_GateMutex.o
runtime_xdc_noinit.o: xdc/runtime/xdc_noinit.c makefile
	@-$(call RM, runtime_xdc_noinit.o)
	$(COMPILE) -o runtime_xdc_noinit.o
runtime_Assert.o: xdc/runtime/Assert.c makefile
	@-$(call RM, runtime_Assert.o)
	$(COMPILE) -o runtime_Assert.o
runtime_Core-mem.o: xdc/runtime/Core-mem.c makefile
	@-$(call RM, runtime_Core-mem.o)
	$(COMPILE) -o runtime_Core-mem.o
runtime_Core-smem.o: xdc/runtime/Core-smem.c makefile
	@-$(call RM, runtime_Core-smem.o)
	$(COMPILE) -o runtime_Core-smem.o
runtime_Core-label.o: xdc/runtime/Core-label.c makefile
	@-$(call RM, runtime_Core-label.o)
	$(COMPILE) -o runtime_Core-label.o
runtime_Core-params.o: xdc/runtime/Core-params.c makefile
	@-$(call RM, runtime_Core-params.o)
	$(COMPILE) -o runtime_Core-params.o
runtime_Diags.o: xdc/runtime/Diags.c makefile
	@-$(call RM, runtime_Diags.o)
	$(COMPILE) -o runtime_Diags.o
runtime_Error.o: xdc/runtime/Error.c makefile
	@-$(call RM, runtime_Error.o)
	$(COMPILE) -o runtime_Error.o
runtime_Gate.o: xdc/runtime/Gate.c makefile
	@-$(call RM, runtime_Gate.o)
	$(COMPILE) -o runtime_Gate.o
runtime_Log.o: xdc/runtime/Log.c makefile
	@-$(call RM, runtime_Log.o)
	$(COMPILE) -o runtime_Log.o
runtime_Memory.o: xdc/runtime/Memory.c makefile
	@-$(call RM, runtime_Memory.o)
	$(COMPILE) -o runtime_Memory.o
runtime_Registry.o: xdc/runtime/Registry.c makefile
	@-$(call RM, runtime_Registry.o)
	$(COMPILE) -o runtime_Registry.o
runtime_Startup.o: xdc/runtime/Startup.c makefile
	@-$(call RM, runtime_Startup.o)
	$(COMPILE) -o runtime_Startup.o
runtime_System.o: xdc/runtime/System.c makefile
	@-$(call RM, runtime_System.o)
	$(COMPILE) -o runtime_System.o
runtime_SysStd.o: xdc/runtime/SysStd.c makefile
	@-$(call RM, runtime_SysStd.o)
	$(COMPILE) -o runtime_SysStd.o
runtime_Text.o: xdc/runtime/Text.c makefile
	@-$(call RM, runtime_Text.o)
	$(COMPILE) -o runtime_Text.o
runtime_Timestamp.o: xdc/runtime/Timestamp.c makefile
	@-$(call RM, runtime_Timestamp.o)
	$(COMPILE) -o runtime_Timestamp.o

sysbios.aa15fg: arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o exc_Exception_asm_gnu.o a15_TimestampProvider_asm_gnu.o a15_Mmu_asm_gnu.o a15_Cache_asm_gnu.o gic_Hwi_asm_gnu.o systimer_Timer_asm_gnu.o gptimer_Timer_asm_gnu.o dmtimer_Timer_asm_gnu.o timer64_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Swi_andn.o knl_Task.o heaps_HeapMem.o a15_Cache.o a15_Mmu.o a15_TimestampProvider.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o hal_Cache.o gic_Hwi.o exc_Exception.o gnu_ReentSupport.o systimer_Timer.o gates_GateHwi.o gates_GateMutex.o runtime_xdc_noinit.o runtime_Assert.o runtime_Core-mem.o runtime_Core-smem.o runtime_Core-label.o runtime_Core-params.o runtime_Diags.o runtime_Error.o runtime_Gate.o runtime_Log.o runtime_Memory.o runtime_Registry.o runtime_Startup.o runtime_System.o runtime_SysStd.o runtime_Text.o runtime_Timestamp.o
	@echo ara15fg $^ ...
	@-$(call RM, $@)
	@$(AR) $@ $^


clean:
	@-$(call RM, sysbios.aa15fg)
	@-$(call RM, arm_IntrinsicsSupport_asm_gnu.o)
	@-$(call RM, arm_IntrinsicsSupport_asm_gnu.o.dep)
	@-$(call RM, arm_TaskSupport_asm_gnu.o)
	@-$(call RM, arm_TaskSupport_asm_gnu.o.dep)
	@-$(call RM, exc_Exception_asm_gnu.o)
	@-$(call RM, exc_Exception_asm_gnu.o.dep)
	@-$(call RM, a15_TimestampProvider_asm_gnu.o)
	@-$(call RM, a15_TimestampProvider_asm_gnu.o.dep)
	@-$(call RM, a15_Mmu_asm_gnu.o)
	@-$(call RM, a15_Mmu_asm_gnu.o.dep)
	@-$(call RM, a15_Cache_asm_gnu.o)
	@-$(call RM, a15_Cache_asm_gnu.o.dep)
	@-$(call RM, gic_Hwi_asm_gnu.o)
	@-$(call RM, gic_Hwi_asm_gnu.o.dep)
	@-$(call RM, systimer_Timer_asm_gnu.o)
	@-$(call RM, systimer_Timer_asm_gnu.o.dep)
	@-$(call RM, gptimer_Timer_asm_gnu.o)
	@-$(call RM, gptimer_Timer_asm_gnu.o.dep)
	@-$(call RM, dmtimer_Timer_asm_gnu.o)
	@-$(call RM, dmtimer_Timer_asm_gnu.o.dep)
	@-$(call RM, timer64_Timer_asm_gnu.o)
	@-$(call RM, timer64_Timer_asm_gnu.o.dep)
	@-$(call RM, _BIOS.o)
	@-$(call RM, _BIOS.o.dep)
	@-$(call RM, arm_IntrinsicsSupport.o)
	@-$(call RM, arm_IntrinsicsSupport.o.dep)
	@-$(call RM, arm_TaskSupport.o)
	@-$(call RM, arm_TaskSupport.o.dep)
	@-$(call RM, knl_Clock.o)
	@-$(call RM, knl_Clock.o.dep)
	@-$(call RM, knl_Idle.o)
	@-$(call RM, knl_Idle.o.dep)
	@-$(call RM, knl_Intrinsics.o)
	@-$(call RM, knl_Intrinsics.o.dep)
	@-$(call RM, knl_Queue.o)
	@-$(call RM, knl_Queue.o.dep)
	@-$(call RM, knl_Semaphore.o)
	@-$(call RM, knl_Semaphore.o.dep)
	@-$(call RM, knl_Swi.o)
	@-$(call RM, knl_Swi.o.dep)
	@-$(call RM, knl_Swi_andn.o)
	@-$(call RM, knl_Swi_andn.o.dep)
	@-$(call RM, knl_Task.o)
	@-$(call RM, knl_Task.o.dep)
	@-$(call RM, heaps_HeapMem.o)
	@-$(call RM, heaps_HeapMem.o.dep)
	@-$(call RM, a15_Cache.o)
	@-$(call RM, a15_Cache.o.dep)
	@-$(call RM, a15_Mmu.o)
	@-$(call RM, a15_Mmu.o.dep)
	@-$(call RM, a15_TimestampProvider.o)
	@-$(call RM, a15_TimestampProvider.o.dep)
	@-$(call RM, hal_Hwi.o)
	@-$(call RM, hal_Hwi.o.dep)
	@-$(call RM, hal_Hwi_stack.o)
	@-$(call RM, hal_Hwi_stack.o.dep)
	@-$(call RM, hal_Hwi_startup.o)
	@-$(call RM, hal_Hwi_startup.o.dep)
	@-$(call RM, hal_Cache.o)
	@-$(call RM, hal_Cache.o.dep)
	@-$(call RM, gic_Hwi.o)
	@-$(call RM, gic_Hwi.o.dep)
	@-$(call RM, exc_Exception.o)
	@-$(call RM, exc_Exception.o.dep)
	@-$(call RM, gnu_ReentSupport.o)
	@-$(call RM, gnu_ReentSupport.o.dep)
	@-$(call RM, systimer_Timer.o)
	@-$(call RM, systimer_Timer.o.dep)
	@-$(call RM, gates_GateHwi.o)
	@-$(call RM, gates_GateHwi.o.dep)
	@-$(call RM, gates_GateMutex.o)
	@-$(call RM, gates_GateMutex.o.dep)
	@-$(call RM, runtime_xdc_noinit.o)
	@-$(call RM, runtime_xdc_noinit.o.dep)
	@-$(call RM, runtime_Assert.o)
	@-$(call RM, runtime_Assert.o.dep)
	@-$(call RM, runtime_Core-mem.o)
	@-$(call RM, runtime_Core-mem.o.dep)
	@-$(call RM, runtime_Core-smem.o)
	@-$(call RM, runtime_Core-smem.o.dep)
	@-$(call RM, runtime_Core-label.o)
	@-$(call RM, runtime_Core-label.o.dep)
	@-$(call RM, runtime_Core-params.o)
	@-$(call RM, runtime_Core-params.o.dep)
	@-$(call RM, runtime_Diags.o)
	@-$(call RM, runtime_Diags.o.dep)
	@-$(call RM, runtime_Error.o)
	@-$(call RM, runtime_Error.o.dep)
	@-$(call RM, runtime_Gate.o)
	@-$(call RM, runtime_Gate.o.dep)
	@-$(call RM, runtime_Log.o)
	@-$(call RM, runtime_Log.o.dep)
	@-$(call RM, runtime_Memory.o)
	@-$(call RM, runtime_Memory.o.dep)
	@-$(call RM, runtime_Registry.o)
	@-$(call RM, runtime_Registry.o.dep)
	@-$(call RM, runtime_Startup.o)
	@-$(call RM, runtime_Startup.o.dep)
	@-$(call RM, runtime_System.o)
	@-$(call RM, runtime_System.o.dep)
	@-$(call RM, runtime_SysStd.o)
	@-$(call RM, runtime_SysStd.o.dep)
	@-$(call RM, runtime_Text.o)
	@-$(call RM, runtime_Text.o.dep)
	@-$(call RM, runtime_Timestamp.o)
	@-$(call RM, runtime_Timestamp.o.dep)

