CGTOOLS = F:\\software\\ti_ccs5\\ccsv5\\tools\\compiler\\c6000_7.4.2
CC = $(CGTOOLS)/bin/cl6x
LNK = $(CGTOOLS)/bin/lnk6x
RTS = $(CGTOOLS)/lib/rts6600_elf.lib
CONFIG = mycfg
XDCTARGET = ti.targets.elf.C66
XDCPLATFORM = ti.platforms.evm6678
%/linker.cmd %/compiler.opt : %.cfg
	xs --xdcpath="F:\\software\\ti_ccs5\\bios_6_35_01_29\\packages" xdc.tools.configuro -c $(CGTOOLS) -t $(XDCTARGET) -p $(XDCPLATFORM) $<

%.obj : %.c $(CONFIG)/compiler.opt
	$(CC) -@$(CONFIG)/compiler.opt -c $<
dll_com.dll: dll_com.obj $(CONFIG)/linker.cmd
	$(LNK) -o dll_com.dll --entry_point=test --dynamic=lib -c dll_com.obj $(CONFIG)/linker.cmd $(RTS)
