#
# CommonXabsl2BehaviorControlMakefile
#
# The common part of the Xabsl makefile for all Xabsl2BehaviorControl derivates.
#

newall: generatedSymbolFiles
	@make all

# An XSLT processor that can process XInclude statements (with necessary parameters)
XSLT = xsltproc.exe --xinclude 

XTC2XABSL = ../../../../Bin/xtc2xabsl.exe
XABSL2XTC = ../../../../Bin/xabsl2xtc.exe

# Path of the dot tool 
DOT = ../../../../Util/dot-1.9.0/dot.exe

# Validates an XML file against the schemas referenced in the source file taking the input from stdin
SCHEMA_VALIDATOR = ../../../../Util/Xerces/StdInParse.exe -v=always -n -f -s

# Directory of the xabsl-2.0 Schemas and XSLT Stylesheets
XABSL_DIR = ../../../Tools/Xabsl2/xabsl-2.2

# Directory that contains the DotML 1.1 Schemas and XSLT stylesheets
DOTML_DIR = ../../../Tools/dotml-1.1

# Directory where the intermediate code and the debug symbols are stored
XABSL_OUTPUT_DIR = ../../../../Config/Xabsl2


ifeq ($(USE_MAKEFILE),XML)


generatedSymbolFiles: ../CommonXabsl2Symbols/head-and-tail-symbols.xml ../CommonXabsl2Symbols/special-action-symbols.xml ../CommonXabsl2Symbols/led-and-sound-symbols.xml ../CommonXabsl2Symbols/kick-selection-symbols.xml

../CommonXabsl2Symbols/special-action-symbols.xml: ../../../Representations/Motion/MotionRequest.h 
	../../../../Bin/URC /specialActionXml

../CommonXabsl2Symbols/head-and-tail-symbols.xml: ../../../Representations/Motion/MotionRequest.h ../../../Representations/Motion/HeadControlMode.h 
	../../../../Bin/URC /headTailXml

../CommonXabsl2Symbols/led-and-sound-symbols.xml: ../../../Representations/Motion/LEDRequest.h ../../../Representations/Sound/SoundRequest.h 
	../../../../Bin/URC /ledSoundXml

../CommonXabsl2Symbols/kick-selection-symbols.xml: ../../../Tools/KickSelectionTable.h ../../../../Bin/URC.exe
	../../../../Bin/URC /kickSelectionXml


include $(XABSL_DIR)/Xabsl2Makefile
endif


ifeq ($(USE_MAKEFILE),XTC)

generatedSymbolFiles: ../CommonXabsl2Symbols/head-and-tail-symbols.xtc ../CommonXabsl2Symbols/special-action-symbols.xtc ../CommonXabsl2Symbols/led-and-sound-symbols.xtc ../CommonXabsl2Symbols/kick-selection-symbols.xtc

../CommonXabsl2Symbols/special-action-symbols.xtc: ../../../Representations/Motion/MotionRequest.h 
	../../../../Bin/URC /specialActionXtc

../CommonXabsl2Symbols/head-and-tail-symbols.xtc: ../../../Representations/Motion/MotionRequest.h ../../../Representations/Motion/HeadControlMode.h 
	../../../../Bin/URC /headTailXtc

../CommonXabsl2Symbols/led-and-sound-symbols.xtc: ../../../Representations/Motion/LEDRequest.h ../../../Representations/Sound/SoundRequest.h 
	../../../../Bin/URC /ledSoundXtc

../CommonXabsl2Symbols/kick-selection-symbols.xtc: ../../../Tools/KickSelectionTable.h ../../../../Bin/URC.exe
	../../../../Bin/URC /kickSelectionXtc


include ../../../../Make/Xabsl2XTCMakefile
endif
