vpath % C:/ti/bios_6_52_00_12/packages/ti/sysbios/
vpath %.c C:/ti/xdctools_3_50_04_43_core/packages/

CCOPTS    = -Wunused -Wunknown-pragmas -ffunction-sections -fdata-sections  -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=hard -mabi=aapcs -O3  -IC:/ti/bios_6_52_00_12/packages/gnu/targets/arm//libs/install-native/$(GCCTARG)/include/newlib-nano  -IC:/ti/bios_6_52_00_12/packages/gnu/targets/arm//libs/install-native/$(GCCTARG)/include -Dfar= -D__DYNAMIC_REENT__   -Dti_sysbios_family_arm_exc_Exception_enableDecode__D=TRUE -Dti_sysbios_knl_Task_minimizeLatency__D=FALSE -Dti_sysbios_family_arm_a8_intcps_Hwi_enableAsidTagging__D=FALSE -Dti_sysbios_rts_gnu_ReentSupport_enableReentSupport__D=TRUE  -Dti_sysbios_posix_Settings_debug__D=FALSE -Dti_sysbios_posix_Settings_supportsMutexPriority__D=FALSE -Dti_sysbios_knl_Clock_stopCheckNext__D=FALSE -Dti_sysbios_hal_Core_numCores__D=1

XDC_ROOT  = C:/ti/xdctools_3_50_04_43_core/packages/

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

BIOS_DEFS =  -Dti_sysbios_BIOS_swiEnabled__D=FALSE -Dti_sysbios_BIOS_taskEnabled__D=TRUE -Dti_sysbios_BIOS_clockEnabled__D=TRUE -Dti_sysbios_BIOS_runtimeCreatesEnabled__D=TRUE -Dti_sysbios_knl_Task_moduleStateCheckFlag__D=FALSE -Dti_sysbios_knl_Task_objectCheckFlag__D=FALSE -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_Build_useIndirectReferences=FALSE -Dti_sysbios_knl_Swi_numPriorities__D=1 -Dti_sysbios_knl_Task_deleteTerminatedTasks__D=FALSE -Dti_sysbios_knl_Task_numPriorities__D=16 -Dti_sysbios_knl_Task_checkStackFlag__D=FALSE -Dti_sysbios_knl_Task_initStackFlag__D=FALSE -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_utils_Load_hwiEnabled__D=FALSE -Dti_sysbios_family_arm_a8_intcps_Hwi_dispatcherSwiSupport__D=TRUE -Dti_sysbios_family_arm_a8_intcps_Hwi_dispatcherTaskSupport__D=TRUE -Dti_sysbios_family_arm_a8_intcps_Hwi_dispatcherAutoNestingSupport__D=TRUE -Dti_sysbios_family_arm_a8_intcps_Hwi_dispatcherIrpTrackingSupport__D=TRUE -Dti_sysbios_knl_Semaphore_supportsEvents__D=FALSE -Dti_sysbios_knl_Semaphore_supportsPriority__D=TRUE -Dxdc_runtime_Assert_DISABLE_ALL -Dxdc_runtime_Log_DISABLE_ALL 

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

INCS =  $(BIOS_INC) -I"C:/ti/bios_6_52_00_12/packages/" -I"C:/ti/simplelink_sdk_wifi_plugin_1_55_00_42/source/" -I"C:/ti/pdk_am335x_1_0_10/packages/" -I"C:/ti/ccsv7/ccs_base/" -I"C:/ti/xdctools_3_50_04_43_core/packages/" -I"../" -I"/packages//" 

GCCTARG = arm-none-eabi

CC = C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc -c -MD -MF $@.dep $(CCOPTS)
ASM = C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc -c -x assembler-with-cpp $(CCOPTS)
AR = C:/ti/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-ar  cr

DEL = C:/ti/xdctools_3_50_04_43_core/packages/../bin/rm -f
CP = C:/ti/xdctools_3_50_04_43_core/packages/../bin/cp -f

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

define ASSEMBLE
	@echo asma8fg $< ...
	@$(ASM) $(BIOS_DEFS) -I "C:/ti/xdctools_3_50_04_43_core/packages/" -Dxdc_target_types__=C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/std.h -Dxdc_target_name__=A8F $(INCS) $<
endef

define COMPILE
	@echo cla8fg $< ...
	@$(CC) $(BIOS_DEFS) -I "C:/ti/xdctools_3_50_04_43_core/packages/" -Dxdc_target_types__=C:/ti/bios_6_52_00_12/packages/gnu/targets/arm/std.h -Dxdc_target_name__=A8F $(INCS) $<
endef


all: sysbios.aa8fg

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

a8_Cache_asm_gnu.o: family/arm/a8/Cache_asm_gnu.sv7A makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o a8_Cache_asm_gnu.o

a8_Mmu_asm_gnu.o: family/arm/a8/Mmu_asm_gnu.sv7A makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o a8_Mmu_asm_gnu.o

a8_TimestampProvider_asm_gnu.o: family/arm/a8/TimestampProvider_asm_gnu.sv7A makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o a8_TimestampProvider_asm_gnu.o

intcps_Hwi_asm_gnu.o: family/arm/a8/intcps/Hwi_asm_gnu.sv7A makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o intcps_Hwi_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

dmtimer_Timer_asm_gnu.o: timers/dmtimer/Timer_asm_gnu.sv7A makefile
	@-$(call RM, $@)
	$(ASSEMBLE) -o dmtimer_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_Event.o: knl/Event.c makefile
	@-$(call RM, knl_Event.o)
	$(COMPILE) -o knl_Event.o
knl_Mailbox.o: knl/Mailbox.c makefile
	@-$(call RM, knl_Mailbox.o)
	$(COMPILE) -o knl_Mailbox.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_Task.o: knl/Task.c makefile
	@-$(call RM, knl_Task.o)
	$(COMPILE) -o knl_Task.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
hal_Cache.o: hal/Cache.c makefile
	@-$(call RM, hal_Cache.o)
	$(COMPILE) -o hal_Cache.o
hal_Core.o: hal/Core.c makefile
	@-$(call RM, hal_Core.o)
	$(COMPILE) -o hal_Core.o
hal_CoreNull.o: hal/CoreNull.c makefile
	@-$(call RM, hal_CoreNull.o)
	$(COMPILE) -o hal_CoreNull.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_Seconds.o: hal/Seconds.c makefile
	@-$(call RM, hal_Seconds.o)
	$(COMPILE) -o hal_Seconds.o
hal_SecondsClock.o: hal/SecondsClock.c makefile
	@-$(call RM, hal_SecondsClock.o)
	$(COMPILE) -o hal_SecondsClock.o
hal_Timer.o: hal/Timer.c makefile
	@-$(call RM, hal_Timer.o)
	$(COMPILE) -o hal_Timer.o
heaps_HeapMem.o: heaps/HeapMem.c makefile
	@-$(call RM, heaps_HeapMem.o)
	$(COMPILE) -o heaps_HeapMem.o
posix_pthread.o: posix/pthread.c makefile
	@-$(call RM, posix_pthread.o)
	$(COMPILE) -o posix_pthread.o
posix_pthread_barrier.o: posix/pthread_barrier.c makefile
	@-$(call RM, posix_pthread_barrier.o)
	$(COMPILE) -o posix_pthread_barrier.o
posix_pthread_cond.o: posix/pthread_cond.c makefile
	@-$(call RM, posix_pthread_cond.o)
	$(COMPILE) -o posix_pthread_cond.o
posix_pthread_key.o: posix/pthread_key.c makefile
	@-$(call RM, posix_pthread_key.o)
	$(COMPILE) -o posix_pthread_key.o
posix_pthread_mutex.o: posix/pthread_mutex.c makefile
	@-$(call RM, posix_pthread_mutex.o)
	$(COMPILE) -o posix_pthread_mutex.o
posix_pthread_rwlock.o: posix/pthread_rwlock.c makefile
	@-$(call RM, posix_pthread_rwlock.o)
	$(COMPILE) -o posix_pthread_rwlock.o
posix_pthread_util.o: posix/pthread_util.c makefile
	@-$(call RM, posix_pthread_util.o)
	$(COMPILE) -o posix_pthread_util.o
posix_clock.o: posix/clock.c makefile
	@-$(call RM, posix_clock.o)
	$(COMPILE) -o posix_clock.o
posix_mqueue.o: posix/mqueue.c makefile
	@-$(call RM, posix_mqueue.o)
	$(COMPILE) -o posix_mqueue.o
posix_sched.o: posix/sched.c makefile
	@-$(call RM, posix_sched.o)
	$(COMPILE) -o posix_sched.o
posix_semaphore.o: posix/semaphore.c makefile
	@-$(call RM, posix_semaphore.o)
	$(COMPILE) -o posix_semaphore.o
posix_sleep.o: posix/sleep.c makefile
	@-$(call RM, posix_sleep.o)
	$(COMPILE) -o posix_sleep.o
posix_timer.o: posix/timer.c makefile
	@-$(call RM, posix_timer.o)
	$(COMPILE) -o posix_timer.o
a8_Cache.o: family/arm/a8/Cache.c makefile
	@-$(call RM, a8_Cache.o)
	$(COMPILE) -o a8_Cache.o
a8_Mmu.o: family/arm/a8/Mmu.c makefile
	@-$(call RM, a8_Mmu.o)
	$(COMPILE) -o a8_Mmu.o
a8_TimestampProvider.o: family/arm/a8/TimestampProvider.c makefile
	@-$(call RM, a8_TimestampProvider.o)
	$(COMPILE) -o a8_TimestampProvider.o
gnu_ReentSupport.o: rts/gnu/ReentSupport.c makefile
	@-$(call RM, gnu_ReentSupport.o)
	$(COMPILE) -o gnu_ReentSupport.o
intcps_Hwi.o: family/arm/a8/intcps/Hwi.c makefile
	@-$(call RM, intcps_Hwi.o)
	$(COMPILE) -o intcps_Hwi.o
exc_Exception.o: family/arm/exc/Exception.c makefile
	@-$(call RM, exc_Exception.o)
	$(COMPILE) -o exc_Exception.o
dmtimer_Timer.o: timers/dmtimer/Timer.c makefile
	@-$(call RM, dmtimer_Timer.o)
	$(COMPILE) -o dmtimer_Timer.o
ti81xx_TimerSupport.o: family/arm/a8/ti81xx/TimerSupport.c makefile
	@-$(call RM, ti81xx_TimerSupport.o)
	$(COMPILE) -o ti81xx_TimerSupport.o

sysbios.aa8fg: arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o a8_Cache_asm_gnu.o a8_Mmu_asm_gnu.o a8_TimestampProvider_asm_gnu.o intcps_Hwi_asm_gnu.o exc_Exception_asm_gnu.o dmtimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Event.o knl_Mailbox.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Task.o gates_GateHwi.o gates_GateMutex.o hal_Cache.o hal_Core.o hal_CoreNull.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o hal_Seconds.o hal_SecondsClock.o hal_Timer.o heaps_HeapMem.o posix_pthread.o posix_pthread_barrier.o posix_pthread_cond.o posix_pthread_key.o posix_pthread_mutex.o posix_pthread_rwlock.o posix_pthread_util.o posix_clock.o posix_mqueue.o posix_sched.o posix_semaphore.o posix_sleep.o posix_timer.o a8_Cache.o a8_Mmu.o a8_TimestampProvider.o gnu_ReentSupport.o intcps_Hwi.o exc_Exception.o dmtimer_Timer.o ti81xx_TimerSupport.o
	@echo ara8fg $^ ...
	@-$(call RM, $@)
	@$(AR) $@ $^


clean:
	@$(DEL) ..\makefile.libs
	@-$(call RM, *)

