#
#  Do not edit this file.  This file is generated from 
#  package.bld.  Any modifications to this file will be 
#  overwritten whenever makefiles are re-generated.
#

unexport MAKEFILE_LIST
MK_NOGENDEPS := $(filter clean,$(MAKECMDGOALS))
override PKGDIR = configPkg
XDCINCS = -I. -I$(strip $(subst ;, -I,$(subst $(space),\$(space),$(XPKGPATH))))
XDCCFGDIR = package/cfg/

#
# The following dependencies ensure package.mak is rebuilt
# in the event that some included BOM script changes.
#
ifneq (clean,$(MAKECMDGOALS))
C:/ti/xdctools_3_32_01_22_core/packages/xdc/utils.js:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/utils.js
C:/ti/xdctools_3_32_01_22_core/packages/xdc/xdc.tci:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/xdc.tci
C:/ti/xdctools_3_32_01_22_core/packages/xdc/template.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/template.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/om2.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/om2.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/xmlgen.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/xmlgen.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/xmlgen2.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/xmlgen2.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/Warnings.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/Warnings.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/IPackage.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/IPackage.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/package.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/package.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/services/global/Clock.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/services/global/Clock.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/services/global/Trace.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/services/global/Trace.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/bld.js:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/bld.js
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/BuildEnvironment.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/BuildEnvironment.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/PackageContents.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/PackageContents.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/_gen.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/_gen.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Library.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Library.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Executable.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Executable.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Repository.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Repository.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Configuration.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Configuration.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Script.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Script.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Manifest.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Manifest.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Utils.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/Utils.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/ITarget.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/ITarget.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/ITarget2.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/ITarget2.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/ITarget3.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/ITarget3.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/ITargetFilter.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/ITargetFilter.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/package.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/bld/package.xs
package.mak: config.bld
C:/ti/bios_6_46_05_55/packages/ti/targets/ITarget.xs:
package.mak: C:/ti/bios_6_46_05_55/packages/ti/targets/ITarget.xs
C:/ti/bios_6_46_05_55/packages/ti/targets/C28_large.xs:
package.mak: C:/ti/bios_6_46_05_55/packages/ti/targets/C28_large.xs
C:/ti/bios_6_46_05_55/packages/ti/targets/C28_float.xs:
package.mak: C:/ti/bios_6_46_05_55/packages/ti/targets/C28_float.xs
C:/ti/bios_6_46_05_55/packages/ti/targets/package.xs:
package.mak: C:/ti/bios_6_46_05_55/packages/ti/targets/package.xs
C:/ti/bios_6_46_05_55/packages/ti/targets/elf/ITarget.xs:
package.mak: C:/ti/bios_6_46_05_55/packages/ti/targets/elf/ITarget.xs
C:/ti/bios_6_46_05_55/packages/ti/targets/elf/package.xs:
package.mak: C:/ti/bios_6_46_05_55/packages/ti/targets/elf/package.xs
package.mak: package.bld
C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/configuro/template/compiler.opt.xdt:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/configuro/template/compiler.opt.xdt
C:/ti/xdctools_3_32_01_22_core/packages/xdc/services/io/File.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/services/io/File.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/services/io/package.xs:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/services/io/package.xs
C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/configuro/template/compiler.defs.xdt:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/configuro/template/compiler.defs.xdt
C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/configuro/template/custom.mak.exe.xdt:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/configuro/template/custom.mak.exe.xdt
C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/configuro/template/package.xs.xdt:
package.mak: C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/configuro/template/package.xs.xdt
endif

ti.targets.elf.C66.rootDir ?= C:/ti_7_2_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.3
ti.targets.elf.packageBase ?= C:/ti/bios_6_46_05_55/packages/ti/targets/elf/
.PRECIOUS: $(XDCCFGDIR)/%.oe66
.PHONY: all,e66 .dlls,e66 .executables,e66 test,e66
all,e66: .executables,e66
.executables,e66: .libraries,e66
.executables,e66: .dlls,e66
.dlls,e66: .libraries,e66
.libraries,e66: .interfaces
	@$(RM) $@
	@$(TOUCH) "$@"

.help::
	@$(ECHO) xdc test,e66
	@$(ECHO) xdc .executables,e66
	@$(ECHO) xdc .libraries,e66
	@$(ECHO) xdc .dlls,e66


all: .executables 
.executables: .libraries .dlls
.libraries: .interfaces

PKGCFGS := $(wildcard package.xs) package/build.cfg
.interfaces: package/package.xdc.inc package/package.defs.h package.xdc $(PKGCFGS)

-include package/package.xdc.dep
package/%.xdc.inc package/%_configPkg.c package/%.defs.h: %.xdc $(PKGCFGS)
	@$(MSG) generating interfaces for package configPkg" (because $@ is older than $(firstword $?))" ...
	$(XSRUN) -f xdc/services/intern/cmd/build.xs $(MK_IDLOPTS) -m package/package.xdc.dep -i package/package.xdc.inc package.xdc

.dlls,e66 .dlls: omp_config.pe66

-include package/cfg/omp_config_pe66.mak
-include package/cfg/omp_config_pe66.cfg.mak
ifeq (,$(MK_NOGENDEPS))
-include package/cfg/omp_config_pe66.dep
endif
omp_config.pe66: package/cfg/omp_config_pe66.xdl
	@


ifeq (,$(wildcard .libraries,e66))
omp_config.pe66 package/cfg/omp_config_pe66.c: .libraries,e66
endif

package/cfg/omp_config_pe66.c package/cfg/omp_config_pe66.h package/cfg/omp_config_pe66.xdl: override _PROG_NAME := omp_config.xe66
package/cfg/omp_config_pe66.c: package/cfg/omp_config_pe66.cfg
package/cfg/omp_config_pe66.xdc.inc: package/cfg/omp_config_pe66.xdl
package/cfg/omp_config_pe66.xdl package/cfg/omp_config_pe66.c: .interfaces

clean:: clean,e66
	-$(RM) package/cfg/omp_config_pe66.cfg
	-$(RM) package/cfg/omp_config_pe66.dep
	-$(RM) package/cfg/omp_config_pe66.c
	-$(RM) package/cfg/omp_config_pe66.xdc.inc

clean,e66::
	-$(RM) omp_config.pe66
.executables,e66 .executables: omp_config.xe66

omp_config.xe66: |omp_config.pe66

-include package/cfg/omp_config.xe66.mak
omp_config.xe66: package/cfg/omp_config_pe66.oe66 
	$(RM) $@
	@$(MSG) lnke66 $@ ...
	$(RM) $(XDCCFGDIR)/$@.map
	$(ti.targets.elf.C66.rootDir)/bin/cl6x -fs $(XDCCFGDIR)$(dir $@). -q -u _c_int00 --abi=eabi -z  -o $@ package/cfg/omp_config_pe66.oe66   package/cfg/omp_config_pe66.xdl  -w -c -m $(XDCCFGDIR)/$@.map -l $(ti.targets.elf.C66.rootDir)/lib/libc.a
	
omp_config.xe66: export C_DIR=
omp_config.xe66: PATH:=$(ti.targets.elf.C66.rootDir)/bin/;$(PATH)
omp_config.xe66: Path:=$(ti.targets.elf.C66.rootDir)/bin/;$(PATH)

omp_config.test test,e66 test: omp_config.xe66.test

omp_config.xe66.test:: omp_config.xe66
ifeq (,$(_TESTLEVEL))
	@$(MAKE) -R -r --no-print-directory -f $(XDCROOT)/packages/xdc/bld/xdc.mak _TESTLEVEL=1 omp_config.xe66.test
else
	@$(MSG) running $<  ...
	$(call EXEC.omp_config.xe66, ) 
endif

clean,e66::
	-$(RM) $(wildcard .tmp,omp_config.xe66,*)


clean:: clean,e66

clean,e66::
	-$(RM) omp_config.xe66
%,copy:
	@$(if $<,,$(MSG) don\'t know how to build $*; exit 1)
	@$(MSG) cp $< $@
	$(RM) $@
	$(CP) $< $@
omp_config_pe66.oe66,copy : package/cfg/omp_config_pe66.oe66
omp_config_pe66.se66,copy : package/cfg/omp_config_pe66.se66

$(XDCCFGDIR)%.c $(XDCCFGDIR)%.h $(XDCCFGDIR)%.xdl: $(XDCCFGDIR)%.cfg $(XDCROOT)/packages/xdc/cfg/Main.xs | .interfaces
	@$(MSG) "configuring $(_PROG_NAME) from $< ..."
	$(CONFIG) $(_PROG_XSOPTS) xdc.cfg $(_PROG_NAME) $(XDCCFGDIR)$*.cfg $(XDCCFGDIR)$*

.PHONY: release,configPkg
ifeq (,$(MK_NOGENDEPS))
-include package/rel/configPkg.tar.dep
endif
package/rel/configPkg/configPkg/package/package.rel.xml: package/package.bld.xml
package/rel/configPkg/configPkg/package/package.rel.xml: package/build.cfg
package/rel/configPkg/configPkg/package/package.rel.xml: package/package.xdc.inc
package/rel/configPkg/configPkg/package/package.rel.xml: .force
	@$(MSG) generating external release references $@ ...
	$(XS) $(JSENV) -f $(XDCROOT)/packages/xdc/bld/rel.js $(MK_RELOPTS) . $@

configPkg.tar: package/rel/configPkg.xdc.inc package/rel/configPkg/configPkg/package/package.rel.xml
	@$(MSG) making release file $@ "(because of $(firstword $?))" ...
	-$(RM) $@
	$(call MKRELTAR,package/rel/configPkg.xdc.inc,package/rel/configPkg.tar.dep)


release release,configPkg: all configPkg.tar
clean:: .clean
	-$(RM) configPkg.tar
	-$(RM) package/rel/configPkg.xdc.inc
	-$(RM) package/rel/configPkg.tar.dep

clean:: .clean
	-$(RM) .libraries $(wildcard .libraries,*)
clean:: 
	-$(RM) .dlls $(wildcard .dlls,*)
#
# The following clean rule removes user specified
# generated files or directories.
#

ifneq (clean,$(MAKECMDGOALS))
ifeq (,$(wildcard package))
    $(shell $(MKDIR) package)
endif
ifeq (,$(wildcard package/cfg))
    $(shell $(MKDIR) package/cfg)
endif
ifeq (,$(wildcard package/lib))
    $(shell $(MKDIR) package/lib)
endif
ifeq (,$(wildcard package/rel))
    $(shell $(MKDIR) package/rel)
endif
ifeq (,$(wildcard package/internal))
    $(shell $(MKDIR) package/internal)
endif
endif
clean::
	-$(RMDIR) package

include custom.mak
