Updated to handle cygwin/gcc and moved msvc,gcc property settings to the TianoTools/build.xml file. Properties are inherited, so we only need to set them one. Cleaned up clean and cleanall targets to remove the executables and library files. Added makefile.cygwin to antlr and dlg programs to generate the .exe needed for cygwin.
FlashMap.c needed a newline at the end of the file to remove a warning message in cygwin. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1174 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -20,59 +20,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
||||||
|
|
||||||
<property name="tmp" value="tmp"/>
|
<property name="tmp" value="tmp"/>
|
||||||
|
<property name="LibName" value="CommonTool"/>
|
||||||
|
|
||||||
<property name="LINK_OUTPUT_TYPE" value="static"/>
|
<property name="LINK_OUTPUT_TYPE" value="static"/>
|
||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/Common/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/Common/tmp"/>
|
||||||
|
|
||||||
<target name="CommonTools.lib" depends="init, ToolsLibrary">
|
<target name="CommonTools.lib" depends="init, ToolsLibrary">
|
||||||
<echo message="Building the EDK CommonTools Library"/>
|
<echo message="The EDK Tool Library: ${LibName} build has completed."/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK CommonTools Library"/>
|
<echo message="Building the EDK Tool Library: ${LibName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="ToolsLibrary" depends="init">
|
<target name="ToolsLibrary" depends="init">
|
||||||
@ -91,17 +50,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only from ${BUILD_DIR}"/>
|
<echo message="Removing Intermediate Files Only from ${BUILD_DIR}"/>
|
||||||
<delete>
|
<delete dir="${BUILD_DIR}"/>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
|
||||||
</delete>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Library: CommonTools${ext_static}"/>
|
<echo message="Removing Object Files and the Library: ${LibName}${ext_static}"/>
|
||||||
<delete dir="${BUILD_DIR}" failonerror="false">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${LIB_DIR}" includes="CommonTools${ext_static}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${LIB_DIR}/${LibName}${ext_static}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -11,12 +11,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
-->
|
-->
|
||||||
<project default="GenTool" basedir=".">
|
<project default="GenTool" basedir=".">
|
||||||
<!--
|
<!--
|
||||||
EDK GenDepex Tool
|
EDK CompressDll Tool Library
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<property name="WORKSPACE" value="${env.WORKSPACE}"/>
|
<property name="WORKSPACE" value="${env.WORKSPACE}"/>
|
||||||
<property name="ToolName" value="CompressDll"/>
|
|
||||||
<property name="LibName" value="CompressDll"/>
|
<property name="LibName" value="CompressDll"/>
|
||||||
<property name="FileSet" value="CompressDll.c CompressDll.h"/>
|
<property name="FileSet" value="CompressDll.c CompressDll.h"/>
|
||||||
<property name="LibFileSet" value="CompressDll.c DepexParser.h"/>
|
<property name="LibFileSet" value="CompressDll.c DepexParser.h"/>
|
||||||
@ -26,56 +25,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
||||||
|
|
||||||
<property name="LINK_OUTPUT_TYPE" value="static"/>
|
<property name="LINK_OUTPUT_TYPE" value="static"/>
|
||||||
<property name="BUILD_DIR" value="${WORKSPACE}/Tools/Source/TianoTools/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${WORKSPACE}/Tools/Source/TianoTools/${LibName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init,Lib" >
|
<target name="GenTool" depends="init,Lib" >
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool Library: ${LibName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool Library: ${LibName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<else>
|
|
||||||
<echo>Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Lib" depends="init">
|
<target name="Lib" depends="init">
|
||||||
@ -86,31 +44,32 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
outfile="${BIN_DIR}/${LibName}"
|
outfile="${BIN_DIR}/${LibName}"
|
||||||
outputfileproperty="result"
|
outputfileproperty="result"
|
||||||
>
|
>
|
||||||
<fileset dir="${ToolName}" includes="${LibFileSet}" defaultexcludes="TRUE" excludes="*.xml *.inf"/>
|
<fileset dir="${LibName}" includes="${LibFileSet}" defaultexcludes="TRUE" excludes="*.xml *.inf"/>
|
||||||
<includepath path="${PACKAGE_DIR}/Include"/>
|
<includepath path="${PACKAGE_DIR}/Include"/>
|
||||||
<includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>
|
<includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>
|
||||||
<includepath path="${PACKAGE_DIR}/Common"/>
|
<includepath path="${PACKAGE_DIR}/Common"/>
|
||||||
<includepath path="${env.JAVA_HOME}/include"/>
|
<includepath path="${env.JAVA_HOME}/include"/>
|
||||||
<includepath path="${env.JAVA_HOME}/include/linux" if="gcc"/>
|
<includepath path="${env.JAVA_HOME}/include/linux" if="cyglinux"/>
|
||||||
<includepath path="${env.JAVA_HOME}/include/win32" if="windows"/>
|
<includepath path="${env.JAVA_HOME}/include/win32" if="msft"/>
|
||||||
<libset dir="${LIB_DIR}" libs="CommonTools"/>
|
<libset dir="${LIB_DIR}" libs="CommonTools"/>
|
||||||
<syslibset libs="kernel32" unless="gcc"/>
|
<syslibset libs="kernel32" if="msft"/>
|
||||||
</cc>
|
</cc>
|
||||||
<copy file="${result}" tofile="${BIN_DIR}/CompressDll.dll"/>
|
<copy file="${result}" tofile="${BIN_DIR}/CompressDll.dll"/>
|
||||||
<chmod file="${BIN_DIR}/CompressDll.dll" perm="ugo+x"/>
|
<chmod file="${BIN_DIR}/CompressDll.dll" perm="ugo+x"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${LibName}${ext_shared}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_dynamic}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${LibName}.*"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -95,17 +50,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ http://opensource.org/licenses/bsd-license.php
|
|||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
-->
|
-->
|
||||||
<project default="CustomizedCompress.lib" basedir=".">
|
<project default="GenLib" basedir="." name="CustomizedCompressLibrary">
|
||||||
<!--
|
<!--
|
||||||
EDK Customized Compress Library
|
EDK Customized Compress Library
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
@ -19,71 +19,27 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<typedef resource="cpptasks.types"/>
|
<typedef resource="cpptasks.types"/>
|
||||||
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
||||||
|
|
||||||
|
<property name="LibName" value="CustomizedCompress"/>
|
||||||
<property name="LINK_OUTPUT_TYPE" value="static"/>
|
<property name="LINK_OUTPUT_TYPE" value="static"/>
|
||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/CustomizedCompress/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/CustomizedCompress/tmp"/>
|
||||||
|
|
||||||
<target name="CustomizedCompress.lib" depends="ToolsLibrary">
|
<target name="GenLib" depends="init, CustomizedCompress">
|
||||||
<echo message="Building the EDK CustomizedCompress Library"/>
|
<echo message="The EDK Tool Library ${LibName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK CustomizedCompress Library"/>
|
<echo message="Building the EDK Tool Library: ${LibName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<echo message="ToolChain: ${ToolChain}"/>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="ToolsLibrary" depends="init">
|
<target name="CustomizedCompress" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${LIB_DIR}/CustomizedCompress"
|
outfile="${LIB_DIR}/${LibName}"
|
||||||
outtype="static"
|
outtype="static"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
optimize="speed">
|
optimize="speed">
|
||||||
|
|
||||||
<fileset dir="${basedir}/CustomizedCompress"
|
<fileset dir="${basedir}/CustomizedCompress"
|
||||||
includes="*.h *.c"
|
includes="*.c"
|
||||||
defaultexcludes="TRUE"
|
defaultexcludes="TRUE"
|
||||||
excludes="*.xml *.inf"/>
|
excludes="*.xml *.inf"/>
|
||||||
|
|
||||||
@ -91,7 +47,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<includepath path="${PACKAGE_DIR}/Include/Ia32"/>
|
<includepath path="${PACKAGE_DIR}/Include/Ia32"/>
|
||||||
</cc>
|
</cc>
|
||||||
<if>
|
<if>
|
||||||
<os family="dos"/>
|
<istrue value="msft"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${BUILD_DIR}" executable="lib" failonerror="false">
|
<exec dir="${BUILD_DIR}" executable="lib" failonerror="false">
|
||||||
<arg line="/NOLOGO *.lib /OUT:${LIB_DIR}/CustomizedCompress${ext_static}"/>
|
<arg line="/NOLOGO *.lib /OUT:${LIB_DIR}/CustomizedCompress${ext_static}"/>
|
||||||
@ -108,9 +64,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Library: CustomizedCompress${ext_static}"/>
|
<echo message="Removing Object Files and the Library: ${LibName}${ext_static}"/>
|
||||||
<delete dir="${BUILD_DIR}" failonerror="false">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${LIB_DIR}" includes="CustomizedCompress${ext_static}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${LIB_DIR}/${LibName}${ext_static}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -96,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -96,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -765,4 +765,5 @@ NormalizePath (
|
|||||||
}
|
}
|
||||||
|
|
||||||
return Visitor;
|
return Visitor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<defineset>
|
<defineset>
|
||||||
@ -101,17 +56,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,56 +25,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
@ -95,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -96,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,56 +25,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
@ -94,17 +50,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,64 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -98,17 +52,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,56 +25,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
@ -93,17 +49,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
optimize="speed">
|
optimize="speed">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -96,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,86 +25,52 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
<istrue value="${OSX}"/>
|
||||||
<then>
|
<then>
|
||||||
<echo message="Cygwin Family"/>
|
<property name="syslibdirs" value=""/>
|
||||||
<property name="ToolChain" value="gcc"/>
|
<property name="syslibs" value=""/>
|
||||||
</then>
|
</then>
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
</if>
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
<istrue value="${cygwin}"/>
|
||||||
<then>
|
<then>
|
||||||
<property name="ext_static" value=".lib"/>
|
<property name="syslibdirs" value="${env.CYGWIN_HOME}/lib/e2fsprogs"/>
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
<property name="syslibs" value="uuid"/>
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
</then>
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<condition property="syslibdirs" value="">
|
|
||||||
<os family="mac"/>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="syslibs" value="">
|
<if>
|
||||||
<os family="mac"/>
|
<istrue value="${msft}"/>
|
||||||
</condition>
|
<then>
|
||||||
|
<property name="syslibdirs" value=""/>
|
||||||
<condition property="syslibdirs" value="/lib64">
|
<property name="syslibs" value="uuid"/>
|
||||||
<istrue value="${x86_64_linux}"/>
|
</then>
|
||||||
</condition>
|
</if>
|
||||||
|
|
||||||
<condition property="syslibdirs" value="${env.CYGWIN_HOME}/lib/e2fsprogs">
|
|
||||||
<os family="windows"/>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="syslibs" value="uuid">
|
|
||||||
<os family="windows"/>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="syslibdirs" value="/usr/lib">
|
|
||||||
<os name="Linux"/>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
<condition property="syslibs" value="uuid">
|
|
||||||
<os name="Linux"/>
|
|
||||||
</condition>
|
|
||||||
|
|
||||||
|
<if>
|
||||||
|
<istrue value="${linux}"/>
|
||||||
|
<then>
|
||||||
|
<if>
|
||||||
|
<istrue value="${x86_64_linux}"/>
|
||||||
|
<then>
|
||||||
|
<property name="syslibdirs" value="/lib64"/>
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<property name="syslibdirs" value="/usr/lib"/>
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
<property name="syslibs" value="uuid"/>
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
<echo message="syslibdirs set to: ${syslibdirs}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init, GenFvImage"/>
|
<target name="Tool" depends="init, GenFvImage"/>
|
||||||
@ -129,27 +95,27 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<includepath path="${PACKAGE_DIR}/Common"/>
|
<includepath path="${PACKAGE_DIR}/Common"/>
|
||||||
<libset dir="${LIB_DIR}" libs="CommonTools"/>
|
<libset dir="${LIB_DIR}" libs="CommonTools"/>
|
||||||
|
|
||||||
<linkerarg value="/nodefaultlib:libc.lib" unless="gcc"/>
|
<linkerarg value="/nodefaultlib:libc.lib" if="msft"/>
|
||||||
<syslibset dir="${syslibdirs}" libs="${syslibs}" if="gcc"/>
|
<syslibset dir="${syslibdirs}" libs="${syslibs}" if="cyglinux"/>
|
||||||
<syslibset libs="RpcRT4" unless="gcc"/>
|
<syslibset libs="RpcRT4" if="msft"/>
|
||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${PACKAGE_DIR}/${ToolName}/tmp">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}_Ia32${ext_exe}"/>
|
<fileset file="${BIN_DIR}/${ToolName}_Ia32${ext_exe}"/>
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}_X64${ext_exe}"/>
|
<fileset file="${BIN_DIR}/${ToolName}_X64${ext_exe}"/>
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}_Ipf${ext_exe}"/>
|
<fileset file="${BIN_DIR}/${ToolName}_Ipf${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
optimize="speed">
|
optimize="speed">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -96,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -26,63 +26,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
optimize="speed">
|
optimize="speed">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -97,17 +52,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,55 +25,24 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<if>
|
||||||
|
<isfalse value="${gcc}"/>
|
||||||
|
<then>
|
||||||
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
<istrue value="${gcc}"/>
|
||||||
<then>
|
<then>
|
||||||
<echo message="Cygwin Family"/>
|
<echo message="The EDK Tool: ${ToolName} is not built for GCC!"/>
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
</then>
|
||||||
<elseif>
|
<else>
|
||||||
<os family="dos"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<then>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<echo message="Windows Family"/>
|
</else>
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
</if>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
@ -81,7 +50,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
optimize="speed">
|
optimize="speed">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -97,17 +65,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
optimize="speed">
|
optimize="speed">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -96,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
optimize="speed">
|
optimize="speed">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -96,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -21,51 +21,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
<condition property="CheckDepends">
|
<condition property="CheckDepends">
|
||||||
<uptodate targetfile="${WORKSPACE}/Tools/bin/antlr.exe">
|
<uptodate targetfile="${WORKSPACE}/Tools/bin/antlr.exe">
|
||||||
<srcfiles dir="." includes="*.c *.h *.g"/>
|
<srcfiles dir="." includes="*.c *.h *.g"/>
|
||||||
@ -76,67 +31,99 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<then>
|
<then>
|
||||||
<echo message="Executable, antlr.exe, is up to date."/>
|
<echo message="Executable, antlr.exe, is up to date."/>
|
||||||
</then>
|
</then>
|
||||||
|
<else>
|
||||||
|
<echo message="Building the EDK Pccts Tool: ${ToolName}"/>
|
||||||
|
</else>
|
||||||
</if>
|
</if>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="GenTool" depends="init" unless="CheckDepends">
|
<target name="GenTool" depends="init" unless="CheckDepends">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
<equals arg1="${ToolChain}" arg2="msvc"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="nmake" failonerror="TRUE">
|
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="nmake" failonerror="TRUE">
|
||||||
<arg line="-f AntlrMS.mak"/>
|
<arg line="-f AntlrMS.mak"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
<elseif>
|
<elseif>
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
<istrue value="${cygwin}"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="make" failonerror="TRUE">
|
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="make" failonerror="TRUE">
|
||||||
<arg line="-f makefile"/>
|
<arg line="-f makefile.cygwin"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
</elseif>
|
</elseif>
|
||||||
|
<elseif>
|
||||||
|
<istrue value="${gcc}"/>
|
||||||
|
<then>
|
||||||
|
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="make" failonerror="TRUE">
|
||||||
|
<arg line="-f makefile"/>
|
||||||
|
</exec>
|
||||||
|
</then>
|
||||||
|
</elseif>
|
||||||
</if>
|
</if>
|
||||||
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
<equals arg1="${ToolChain}" arg2="msvc"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="nmake" failonerror="TRUE">
|
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="nmake" failonerror="TRUE">
|
||||||
<arg line="-f AntlrMS.mak clean"/>
|
<arg line="-f AntlrMS.mak clean"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
|
<elseif>
|
||||||
|
<istrue value="${cygwin}"/>
|
||||||
|
<then>
|
||||||
|
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="make" failonerror="TRUE">
|
||||||
|
<arg line="-f makefile.cygwin clean"/>
|
||||||
|
</exec>
|
||||||
|
</then>
|
||||||
|
</elseif>
|
||||||
<elseif>
|
<elseif>
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
<istrue value="${gcc}"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="make" failonerror="TRUE">
|
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="make" failonerror="TRUE">
|
||||||
<arg line="-f makefile clean"/>
|
<arg line="-f makefile clean"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
</elseif>
|
</elseif>
|
||||||
</if>
|
</if>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
<equals arg1="${ToolChain}" arg2="msvc"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="nmake" failonerror="FALSE">
|
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="nmake" failonerror="FALSE">
|
||||||
<arg line="-f AntlrMS.mak clean"/>
|
<arg line="-f AntlrMS.mak clean"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
<elseif>
|
<elseif>
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
<istrue value="${cygwin}"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="make" failonerror="FALSE">
|
<echo message="Building antlr with cygwin gcc"/>
|
||||||
<arg line="-f makefile clean"/>
|
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="make" failonerror="FALSE">
|
||||||
|
<arg line="-f makefile.cygwin clean"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
</elseif>
|
</elseif>
|
||||||
|
<elseif>
|
||||||
|
<istrue value="${gcc}"/>
|
||||||
|
<then>
|
||||||
|
<echo message="Building antlr with gcc"/>
|
||||||
|
<exec dir="${PACKAGE_DIR}/Pccts/antlr" executable="make" failonerror="FALSE">
|
||||||
|
<arg line="-f makefile clean"/>
|
||||||
|
</exec>
|
||||||
|
</then>
|
||||||
|
</elseif>
|
||||||
</if>
|
</if>
|
||||||
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -166,8 +166,8 @@ PCCTS_H=../h
|
|||||||
#
|
#
|
||||||
CC=gcc
|
CC=gcc
|
||||||
COPT=-O
|
COPT=-O
|
||||||
ANTLR=../bin/antlr
|
ANTLR=${BIN_DIR}/antlr
|
||||||
DLG=../bin/dlg
|
DLG=${BIN_DIR}/dlg
|
||||||
OBJ_EXT=o
|
OBJ_EXT=o
|
||||||
OUT_OBJ = -o
|
OUT_OBJ = -o
|
||||||
CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN $(COTHER) -DZZLEXBUFSIZE=65536
|
CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN $(COTHER) -DZZLEXBUFSIZE=65536
|
||||||
@ -179,7 +179,7 @@ OBJ=antlr.o scan.o err.o bits.o build.o fset2.o fset.o gen.o \
|
|||||||
globals.o hash.o lex.o main.o misc.o set.o pred.o egman.o mrhoist.o fcache.o
|
globals.o hash.o lex.o main.o misc.o set.o pred.o egman.o mrhoist.o fcache.o
|
||||||
|
|
||||||
antlr : $(OBJ) $(SRC)
|
antlr : $(OBJ) $(SRC)
|
||||||
$(CC) $(CFLAGS) -o ${WORKSPACE}/Tools/bin/antlr $(OBJ)
|
$(CC) $(CFLAGS) -o ${PACKAGE_DIR}/antlr $(OBJ)
|
||||||
|
|
||||||
# what files does PCCTS generate (both ANTLR and DLG)
|
# what files does PCCTS generate (both ANTLR and DLG)
|
||||||
PCCTS_GEN=antlr.c scan.c err.c tokens.h mode.h parser.dlg stdpccts.h remap.h
|
PCCTS_GEN=antlr.c scan.c err.c tokens.h mode.h parser.dlg stdpccts.h remap.h
|
||||||
|
219
Tools/Source/TianoTools/Pccts/antlr/makefile.cygwin
Normal file
219
Tools/Source/TianoTools/Pccts/antlr/makefile.cygwin
Normal file
@ -0,0 +1,219 @@
|
|||||||
|
#
|
||||||
|
# Makefile for ANTLR 1.33
|
||||||
|
#
|
||||||
|
# SOFTWARE RIGHTS
|
||||||
|
#
|
||||||
|
# We reserve no LEGAL rights to the Purdue Compiler Construction Tool
|
||||||
|
# Set (PCCTS) -- PCCTS is in the public domain. An individual or
|
||||||
|
# company may do whatever they wish with source code distributed with
|
||||||
|
# PCCTS or the code generated by PCCTS, including the incorporation of
|
||||||
|
# PCCTS, or its output, into commerical software.
|
||||||
|
#
|
||||||
|
# We encourage users to develop software with PCCTS. However, we do ask
|
||||||
|
# that credit is given to us for developing PCCTS. By "credit",
|
||||||
|
# we mean that if you incorporate our source code into one of your
|
||||||
|
# programs (commercial product, research project, or otherwise) that you
|
||||||
|
# acknowledge this fact somewhere in the documentation, research report,
|
||||||
|
# etc... If you like PCCTS and have developed a nice tool with the
|
||||||
|
# output, please mention that you developed it using PCCTS. In
|
||||||
|
# addition, we ask that this header remain intact in our source code.
|
||||||
|
# As long as these guidelines are kept, we expect to continue enhancing
|
||||||
|
# this system and expect to make other tools available as they are
|
||||||
|
# completed.
|
||||||
|
#
|
||||||
|
# ANTLR 1.33
|
||||||
|
# Terence Parr
|
||||||
|
# Parr Research Corporation
|
||||||
|
# with Purdue University
|
||||||
|
# and AHPCRC, University of Minnesota
|
||||||
|
# 1989-1995
|
||||||
|
#
|
||||||
|
# Ported to Borland C++, IBM C-Set/2 and Microsoft 6.0 by
|
||||||
|
# Ed Harfmann
|
||||||
|
# Micro Data Base Systems
|
||||||
|
# Lafayette, Indiana
|
||||||
|
#
|
||||||
|
SET=../support/set
|
||||||
|
PCCTS_H=../h
|
||||||
|
|
||||||
|
##
|
||||||
|
## Uncomment the appropriate section to build
|
||||||
|
## (both targets and 'make' variable definitions)
|
||||||
|
## Note that UNIX is the default
|
||||||
|
##
|
||||||
|
|
||||||
|
#
|
||||||
|
# OS/2 & DOS 16 bit using MSC 6.0
|
||||||
|
#
|
||||||
|
#CC=cl
|
||||||
|
#ANTLR=..\bin\antlr
|
||||||
|
#DLG=..\bin\dlg
|
||||||
|
#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) /AL /Za /W3 -DPC -DUSER_ZZSYN
|
||||||
|
#OUT_OBJ = -Fo
|
||||||
|
#LIBS=/NOD:LLIBCE LLIBCEP
|
||||||
|
#OBJ_EXT = obj
|
||||||
|
#
|
||||||
|
#antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj \
|
||||||
|
# fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
|
||||||
|
# misc.obj set.obj pred.obj egamn.obj
|
||||||
|
# link @<<
|
||||||
|
#$** /NOI
|
||||||
|
#$@ /STACK:14336
|
||||||
|
#
|
||||||
|
#$(LIBS: = +^
|
||||||
|
#)
|
||||||
|
#$(DEF_FILE) $(LFLAGS) ;
|
||||||
|
#<<
|
||||||
|
# bind $@ c:\os2\doscalls.lib
|
||||||
|
# copy *.exe ..\bin
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Borland C++ for DOS
|
||||||
|
#
|
||||||
|
#CC=bcc
|
||||||
|
#ANTLR=..\bin\antlr
|
||||||
|
#DLG=..\bin\dlg
|
||||||
|
#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -ml -ff- -w- -DPC -DUSER_ZZSYN
|
||||||
|
#OUT_OBJ = -o
|
||||||
|
#LIBS= emu mathl cl
|
||||||
|
#OBJ_EXT = obj
|
||||||
|
#
|
||||||
|
#antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj \
|
||||||
|
# fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
|
||||||
|
# misc.obj set.obj pred.obj egman.obj mrhoist.obj fcache.obj
|
||||||
|
# tlink @&&|
|
||||||
|
#C0L $**
|
||||||
|
#$@ /Tde /c
|
||||||
|
#
|
||||||
|
#$(LIBS)
|
||||||
|
#$(DEF_FILE) $(LFLAGS) ;
|
||||||
|
#|
|
||||||
|
# copy *.exe ..\bin
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# C-Set/2 for OS/2
|
||||||
|
#
|
||||||
|
#CC=icc
|
||||||
|
#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) /Sa /W3 -DUSER_ZZSYN -D__STDC__
|
||||||
|
#OUT_OBJ = -Fo
|
||||||
|
#LIBS=
|
||||||
|
#ANTLR=..\bin\antlr
|
||||||
|
#DLG=..\bin\dlg
|
||||||
|
#OBJ_EXT = obj
|
||||||
|
#
|
||||||
|
#antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj \
|
||||||
|
# fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
|
||||||
|
# misc.obj set.obj pred.obj egman.obj mrhoist.obj fcache.obj
|
||||||
|
# link386 @<<
|
||||||
|
#$** /NOI
|
||||||
|
#$@ /STACK:32768
|
||||||
|
#
|
||||||
|
#$(LIBS: = +^
|
||||||
|
#)
|
||||||
|
#$(DEF_FILE) $(LFLAGS) ;
|
||||||
|
#<<
|
||||||
|
# copy *.exe ..\bin
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Borland C++ for OS/2
|
||||||
|
#
|
||||||
|
#CC=bcc
|
||||||
|
#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -w- -v -DUSER_ZZSYN
|
||||||
|
#OUT_OBJ = -o
|
||||||
|
#LIBS= c2 os2
|
||||||
|
#
|
||||||
|
#ANTLR=..\bin\antlr
|
||||||
|
#DLG=..\bin\dlg
|
||||||
|
#OBJ_EXT = obj
|
||||||
|
#antlr.exe: antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj \
|
||||||
|
# fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
|
||||||
|
# misc.obj set.obj pred.obj egman.obj mrhoist.obj fcache.obj
|
||||||
|
# tlink @&&|
|
||||||
|
#c02 $** -c -v
|
||||||
|
#antlr.exe
|
||||||
|
#
|
||||||
|
#C2 os2
|
||||||
|
#
|
||||||
|
#|
|
||||||
|
# copy *.exe ..\bin
|
||||||
|
#
|
||||||
|
|
||||||
|
# *********** Target list of PC machines ***********
|
||||||
|
#
|
||||||
|
# Don't worry about the ambiguity messages coming from antlr
|
||||||
|
# for making antlr.c etc... [should be 10 of them, I think]
|
||||||
|
#
|
||||||
|
#antlr.c stdpccts.h parser.dlg tokens.h err.c : antlr.g
|
||||||
|
# $(ANTLR) antlr.g
|
||||||
|
#
|
||||||
|
#antlr.$(OBJ_EXT): antlr.c mode.h tokens.h
|
||||||
|
#
|
||||||
|
#scan.$(OBJ_EXT): scan.c mode.h tokens.h
|
||||||
|
#
|
||||||
|
#scan.c mode.h: parser.dlg
|
||||||
|
# $(DLG) -C2 parser.dlg scan.c
|
||||||
|
#
|
||||||
|
#set.$(OBJ_EXT): $(SET)/set.c
|
||||||
|
# $(CC) $(CFLAGS) -c $(OUT_OBJ)set.$(OBJ_EXT) $(SET)/set.c
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# UNIX (default)
|
||||||
|
#
|
||||||
|
BIN_DIR=../../../../bin
|
||||||
|
CC=gcc
|
||||||
|
COPT=-O
|
||||||
|
ANTLR=${BIN_DIR}/antlr.exe
|
||||||
|
DLG=${BIN_DIR}/dlg.exe
|
||||||
|
OBJ_EXT=o
|
||||||
|
OUT_OBJ = -o
|
||||||
|
CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN $(COTHER) -DZZLEXBUFSIZE=65536
|
||||||
|
#
|
||||||
|
# SGI Users, use this CFLAGS
|
||||||
|
#
|
||||||
|
#CFLAGS= -O -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -woff 3262
|
||||||
|
OBJ=antlr.o scan.o err.o bits.o build.o fset2.o fset.o gen.o \
|
||||||
|
globals.o hash.o lex.o main.o misc.o set.o pred.o egman.o mrhoist.o fcache.o
|
||||||
|
|
||||||
|
antlr : $(OBJ) $(SRC)
|
||||||
|
$(CC) $(CFLAGS) -o ${BIN_DIR}/antlr.exe $(OBJ)
|
||||||
|
|
||||||
|
# what files does PCCTS generate (both ANTLR and DLG)
|
||||||
|
PCCTS_GEN=antlr.c scan.c err.c tokens.h mode.h parser.dlg stdpccts.h remap.h
|
||||||
|
|
||||||
|
SRC=antlr.c scan.c err.c bits.c build.c fset2.c fset.c gen.c globals.c \
|
||||||
|
hash.c lex.c main.c misc.c $(SET)/set.c pred.c egman.c mrhoist.c fcache.c
|
||||||
|
|
||||||
|
#
|
||||||
|
# Don't worry about the ambiguity messages coming from antlr
|
||||||
|
# for making antlr.c etc... [should be 10 of them, I think]
|
||||||
|
#
|
||||||
|
#antlr.c stdpccts.h parser.dlg tokens.h err.c : antlr.g
|
||||||
|
# $(ANTLR) -gh antlr.g
|
||||||
|
|
||||||
|
antlr.o : antlr.c mode.h tokens.h
|
||||||
|
|
||||||
|
scan.o : scan.c mode.h tokens.h
|
||||||
|
|
||||||
|
#scan.c mode.h: parser.dlg
|
||||||
|
# $(DLG) -C2 parser.dlg scan.c
|
||||||
|
|
||||||
|
set.o : $(SET)/set.c
|
||||||
|
$(CC) $(CFLAGS) -c -o set.o $(SET)/set.c
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# ****** These next targets are common to UNIX and PC world ********
|
||||||
|
#
|
||||||
|
|
||||||
|
#clean up all the intermediate files
|
||||||
|
clean:
|
||||||
|
rm -f *.$(OBJ_EXT) core
|
||||||
|
|
||||||
|
#remove everything in clean plus the PCCTS files generated
|
||||||
|
scrub:
|
||||||
|
rm -f $(PCCTS_GEN) *.$(OBJ_EXT) core
|
@ -40,8 +40,8 @@ PCCTS_H=../h
|
|||||||
# UNIX (default)
|
# UNIX (default)
|
||||||
#
|
#
|
||||||
CC=cc
|
CC=cc
|
||||||
ANTLR=../bin/antlr
|
ANTLR=${WORKSPACE}/Tools/bin/antlr
|
||||||
DLG=../bin/dlg
|
DLG=${WORKSPACE}/Tools/bin/dlg
|
||||||
OBJ_EXT=o
|
OBJ_EXT=o
|
||||||
OUT_OBJ = -o
|
OUT_OBJ = -o
|
||||||
ANSI=-ansi
|
ANSI=-ansi
|
||||||
@ -57,7 +57,7 @@ OBJ=antlr.o scan.o err.o bits.o build.o fset2.o fset.o gen.o \
|
|||||||
|
|
||||||
antlr : $(OBJ) $(SRC)
|
antlr : $(OBJ) $(SRC)
|
||||||
$(CC) $(CFLAGS) -o antlr $(OBJ)
|
$(CC) $(CFLAGS) -o antlr $(OBJ)
|
||||||
mv antlr ../bin
|
mv antlr ${WORKSPACE}/Tools/bin
|
||||||
|
|
||||||
# what files does PCCTS generate (both ANTLR and DLG)
|
# what files does PCCTS generate (both ANTLR and DLG)
|
||||||
PCCTS_GEN=antlr.c scan.c err.c tokens.h mode.h parser.dlg stdpccts.h remap.h
|
PCCTS_GEN=antlr.c scan.c err.c tokens.h mode.h parser.dlg stdpccts.h remap.h
|
||||||
|
@ -13,73 +13,36 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<!--
|
<!--
|
||||||
EDK Pccts Tool
|
EDK Pccts Tool
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
-->
|
|
||||||
<property name="ToolName" value="Pccts"/>
|
<property name="ToolName" value="Pccts"/>
|
||||||
|
-->
|
||||||
|
|
||||||
<taskdef resource="cpptasks.tasks"/>
|
<taskdef resource="cpptasks.tasks"/>
|
||||||
<typedef resource="cpptasks.types"/>
|
<typedef resource="cpptasks.types"/>
|
||||||
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Pccts Tools"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="GenTool" depends="init">
|
<target name="GenTool" depends="init, Pccts">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Pccts Tools build has completed!"/>
|
||||||
<ant dir="${PACKAGE_DIR}/Pccts/antlr" inheritAll="true"/>
|
|
||||||
<ant dir="${PACKAGE_DIR}/Pccts/dlg" inheritAll="true"/>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="Pccts" depends="init">
|
||||||
|
<subant target="" inheritall="true">
|
||||||
|
<fileset dir="${PACKAGE_DIR}/Pccts/antlr" includes="build.xml"/>
|
||||||
|
</subant>
|
||||||
|
<subant target="" inheritall="true">
|
||||||
|
<fileset dir="${PACKAGE_DIR}/Pccts/dlg" includes="build.xml"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean">
|
||||||
<ant dir="${PACKAGE_DIR}/Pccts/antlr" target="clean" inheritAll="true"/>
|
<ant dir="${PACKAGE_DIR}/Pccts/antlr" target="clean" inheritAll="true"/>
|
||||||
<ant dir="${PACKAGE_DIR}/Pccts/dlg" target="clean" inheritAll="true"/>
|
<ant dir="${PACKAGE_DIR}/Pccts/dlg" target="clean" inheritAll="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<ant dir="${PACKAGE_DIR}/Pccts/antlr" target="cleanall" inheritAll="true"/>
|
<ant dir="${PACKAGE_DIR}/Pccts/antlr" target="cleanall" inheritAll="true"/>
|
||||||
<ant dir="${PACKAGE_DIR}/Pccts/dlg" target="cleanall" inheritAll="true"/>
|
<ant dir="${PACKAGE_DIR}/Pccts/dlg" target="cleanall" inheritAll="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
@ -11,7 +11,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
-->
|
-->
|
||||||
<project default="GenTool" basedir=".">
|
<project default="GenTool" basedir=".">
|
||||||
<!--
|
<!--
|
||||||
EDK dlg Tool
|
EDK Pccts Tool: dlg
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
-->
|
-->
|
||||||
<property name="ToolName" value="dlg"/>
|
<property name="ToolName" value="dlg"/>
|
||||||
@ -23,51 +23,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="PACKAGE_DIR" value="${WORKSPACE}/Tools"/>
|
<property name="PACKAGE_DIR" value="${WORKSPACE}/Tools"/>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
<condition property="CheckDepends">
|
<condition property="CheckDepends">
|
||||||
<uptodate targetfile="${WORKSPACE}/Tools/bin/dlg.exe">
|
<uptodate targetfile="${WORKSPACE}/Tools/bin/dlg.exe">
|
||||||
<srcfiles dir="." includes="*.c *.h *.g"/>
|
<srcfiles dir="." includes="*.c *.h *.g"/>
|
||||||
@ -78,42 +33,61 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<then>
|
<then>
|
||||||
<echo message="Executable, dlg.exe, is up to date."/>
|
<echo message="Executable, dlg.exe, is up to date."/>
|
||||||
</then>
|
</then>
|
||||||
|
<else>
|
||||||
|
<echo message="Building the EDK Pccts Tool: ${ToolName}"/>
|
||||||
|
</else>
|
||||||
</if>
|
</if>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="GenTool" depends="init" unless="CheckDepends">
|
<target name="GenTool" depends="init" unless="CheckDepends">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
<equals arg1="${ToolChain}" arg2="msvc"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="nmake" failonerror="TRUE">
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="TRUE">
|
||||||
<arg line="-f DlgMS.mak"/>
|
<arg line="-f DlgMS.mak"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
<elseif>
|
<elseif>
|
||||||
|
<istrue value="${cygwin}"/>
|
||||||
|
<then>
|
||||||
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">
|
||||||
|
<arg line="-f makefile.cygwin"/>
|
||||||
|
</exec>
|
||||||
|
</then>
|
||||||
|
</elseif>
|
||||||
|
<elseif>
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
<equals arg1="${ToolChain}" arg2="gcc"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="make" failonerror="TRUE">
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">
|
||||||
<arg line="-f makefile"/>
|
<arg line="-f makefile"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
</elseif>
|
</elseif>
|
||||||
</if>
|
</if>
|
||||||
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
<equals arg1="${ToolChain}" arg2="msvc"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="nmake" failonerror="TRUE">
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="TRUE">
|
||||||
<arg line="-f DlgMS.mak clean"/>
|
<arg line="-f DlgMS.mak clean"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
|
<elseif>
|
||||||
|
<istrue value="${cygwin}"/>
|
||||||
|
<then>
|
||||||
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">
|
||||||
|
<arg line="-f makefile.cygwin clean"/>
|
||||||
|
</exec>
|
||||||
|
</then>
|
||||||
|
</elseif>
|
||||||
<elseif>
|
<elseif>
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
<equals arg1="${ToolChain}" arg2="gcc"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="make" failonerror="TRUE">
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="TRUE">
|
||||||
<arg line="-f makefile clean"/>
|
<arg line="-f makefile clean"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
@ -121,24 +95,27 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</if>
|
</if>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<if>
|
<if>
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
<equals arg1="${ToolChain}" arg2="msvc"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="nmake" failonerror="FALSE">
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="nmake" failonerror="FALSE">
|
||||||
<arg line="-f DlgMS.mak clean"/>
|
<arg line="-f DlgMS.mak clean"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
<elseif>
|
<elseif>
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
<equals arg1="${ToolChain}" arg2="gcc"/>
|
||||||
<then>
|
<then>
|
||||||
<exec dir="${basedir}" executable="make" failonerror="FALSE">
|
<exec dir="${PACKAGE_DIR}/Pccts/dlg" executable="make" failonerror="FALSE">
|
||||||
<arg line="-f makefile clean"/>
|
<arg line="-f makefile clean"/>
|
||||||
</exec>
|
</exec>
|
||||||
</then>
|
</then>
|
||||||
</elseif>
|
</elseif>
|
||||||
</if>
|
</if>
|
||||||
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -116,8 +116,8 @@ PCCTS_H=../h
|
|||||||
#
|
#
|
||||||
CC=cc
|
CC=cc
|
||||||
COPT=-O
|
COPT=-O
|
||||||
ANTLR=../bin/antlr
|
ANTLR=${BIN_DIR}/antlr
|
||||||
DLG=../bin/dlg
|
DLG=${BIN_DIR}/dlg
|
||||||
CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DZZLEXBUFSIZE=65536
|
CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DZZLEXBUFSIZE=65536
|
||||||
OBJ_EXT=o
|
OBJ_EXT=o
|
||||||
OUT_OBJ = -o
|
OUT_OBJ = -o
|
||||||
@ -125,7 +125,7 @@ OBJ = dlg_p.o dlg_a.o main.o err.o set.o support.o output.o \
|
|||||||
relabel.o automata.o
|
relabel.o automata.o
|
||||||
|
|
||||||
dlg : $(OBJ) $(SRC)
|
dlg : $(OBJ) $(SRC)
|
||||||
$(CC) $(CFLAGS) -o ${WORKSPACE}/Tools/bin/dlg $(OBJ)
|
$(CC) $(CFLAGS) -o ${BIN_DIR}/dlg $(OBJ)
|
||||||
|
|
||||||
SRC = dlg_p.c dlg_a.c main.c err.c $(SET)/set.c support.c output.c \
|
SRC = dlg_p.c dlg_a.c main.c err.c $(SET)/set.c support.c output.c \
|
||||||
relabel.c automata.c
|
relabel.c automata.c
|
||||||
|
157
Tools/Source/TianoTools/Pccts/dlg/makefile.cygwin
Normal file
157
Tools/Source/TianoTools/Pccts/dlg/makefile.cygwin
Normal file
@ -0,0 +1,157 @@
|
|||||||
|
#
|
||||||
|
# Makefile for DLG 1.33
|
||||||
|
# Terence Parr
|
||||||
|
# Purdue University, U of MN, Parr Research Corporation
|
||||||
|
# 1989-1994
|
||||||
|
#
|
||||||
|
# Ported to IBM C-Set/2 and Microsoft 6.0 by
|
||||||
|
# Ed Harfmann
|
||||||
|
# Micro Data Base Systems
|
||||||
|
# Lafayette, Indiana
|
||||||
|
#
|
||||||
|
SET=../support/set
|
||||||
|
PCCTS_H=../h
|
||||||
|
|
||||||
|
##
|
||||||
|
## Uncomment the appropriate section to build
|
||||||
|
##
|
||||||
|
|
||||||
|
#
|
||||||
|
# OS/2 & DOS 16 bit using MSC 6.0
|
||||||
|
#
|
||||||
|
#CC=cl
|
||||||
|
#ANTLR=..\bin\antlr
|
||||||
|
#DLG=..\bin\dlg
|
||||||
|
#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) /AL /Za /W3 -DPC -DUSER_ZZSYN
|
||||||
|
#OUT_OBJ = -Fo
|
||||||
|
#LIBS=/NOD:LLIBCE LLIBCEP
|
||||||
|
#OBJ_EXT = obj
|
||||||
|
#
|
||||||
|
#dlg.exe : dlg_p.obj dlg_a.obj main.obj err.obj set.obj support.obj \
|
||||||
|
# output.obj relabel.obj automata.obj
|
||||||
|
# link @<<
|
||||||
|
#$** /NOI
|
||||||
|
#$@ /STACK:16384
|
||||||
|
#
|
||||||
|
#$(LIBS: = +^
|
||||||
|
#)
|
||||||
|
#$(DEF_FILE) $(LFLAGS) ;
|
||||||
|
#<<
|
||||||
|
# bind $@ c:\os2\doscalls.lib
|
||||||
|
# copy *.exe ..\bin
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Borland C++ for DOS
|
||||||
|
#
|
||||||
|
#CC=bcc
|
||||||
|
#ANTLR=..\bin\antlr
|
||||||
|
#DLG=..\bin\dlg
|
||||||
|
#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -ml -ff- -w- -DPC -DUSER_ZZSYN
|
||||||
|
#OUT_OBJ = -o
|
||||||
|
#LIBS= emu mathl cl
|
||||||
|
#OBJ_EXT = obj
|
||||||
|
#
|
||||||
|
#dlg.exe : dlg_p.obj dlg_a.obj main.obj err.obj set.obj support.obj \
|
||||||
|
# output.obj relabel.obj automata.obj
|
||||||
|
# tlink @&&|
|
||||||
|
#C0L $**
|
||||||
|
#$@ /Tde /c
|
||||||
|
#
|
||||||
|
#$(LIBS)
|
||||||
|
#$(DEF_FILE) $(LFLAGS) ;
|
||||||
|
#|
|
||||||
|
# copy *.exe ..\bin
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# C-Set/2 for OS/2
|
||||||
|
#
|
||||||
|
#CC=icc
|
||||||
|
#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) /Sa /W3 /DUSER_ZZSYN
|
||||||
|
#OUT_OBJ = -Fo
|
||||||
|
#LIBS=
|
||||||
|
#ANTLR=..\bin\antlr
|
||||||
|
#DLG=..\bin\dlg
|
||||||
|
#OBJ_EXT=obj
|
||||||
|
#
|
||||||
|
#dlg.exe : dlg_p.obj dlg_a.obj main.obj err.obj set.obj support.obj \
|
||||||
|
# output.obj relabel.obj automata.obj
|
||||||
|
# link386 @<<
|
||||||
|
#$** /NOI
|
||||||
|
#$@ /STACK:32768
|
||||||
|
#
|
||||||
|
#$(LIBS: = +^
|
||||||
|
#)
|
||||||
|
#$(DEF_FILE) $(LFLAGS) ;
|
||||||
|
#<<
|
||||||
|
# copy *.exe ..\bin
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Borland C++ for OS/2
|
||||||
|
#
|
||||||
|
#CC=bcc
|
||||||
|
#CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -w- -DUSER_ZZSYN
|
||||||
|
#OUT_OBJ = -o
|
||||||
|
#LIBS= c2 os2
|
||||||
|
#
|
||||||
|
#ANTLR=..\bin\antlr
|
||||||
|
#DLG=..\bin\dlg
|
||||||
|
#OBJ_EXT = obj
|
||||||
|
#dlg.exe : dlg_p.obj dlg_a.obj main.obj err.obj set.obj support.obj \
|
||||||
|
# output.obj relabel.obj automata.obj
|
||||||
|
# tlink @&&|
|
||||||
|
#c02 $** -c
|
||||||
|
#dlg.exe
|
||||||
|
#
|
||||||
|
#C2 os2
|
||||||
|
#
|
||||||
|
#|
|
||||||
|
# copy *.exe ..\bin
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# UNIX
|
||||||
|
#
|
||||||
|
BIN_DIR=../../../../bin
|
||||||
|
CC=cc
|
||||||
|
COPT=-O
|
||||||
|
ANTLR=${BIN_DIR}/antlr.exe
|
||||||
|
DLG=${BIN_DIR}/dlg.exe
|
||||||
|
CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DZZLEXBUFSIZE=65536
|
||||||
|
OBJ_EXT=o
|
||||||
|
OUT_OBJ = -o
|
||||||
|
OBJ = dlg_p.o dlg_a.o main.o err.o set.o support.o output.o \
|
||||||
|
relabel.o automata.o
|
||||||
|
|
||||||
|
dlg : $(OBJ) $(SRC)
|
||||||
|
$(CC) $(CFLAGS) -o ${BIN_DIR}/dlg.exe $(OBJ)
|
||||||
|
|
||||||
|
SRC = dlg_p.c dlg_a.c main.c err.c $(SET)/set.c support.c output.c \
|
||||||
|
relabel.c automata.c
|
||||||
|
|
||||||
|
#dlg_p.c parser.dlg err.c tokens.h : dlg_p.g
|
||||||
|
# $(ANTLR) dlg_p.g
|
||||||
|
|
||||||
|
#dlg_a.c mode.h : parser.dlg
|
||||||
|
# $(DLG) -C2 parser.dlg dlg_a.c
|
||||||
|
|
||||||
|
dlg_p.$(OBJ_EXT) : dlg_p.c dlg.h tokens.h mode.h
|
||||||
|
$(CC) $(CFLAGS) -c dlg_p.c
|
||||||
|
|
||||||
|
dlg_a.$(OBJ_EXT) : dlg_a.c dlg.h tokens.h mode.h
|
||||||
|
$(CC) $(CFLAGS) -c dlg_a.c
|
||||||
|
|
||||||
|
main.$(OBJ_EXT) : main.c dlg.h
|
||||||
|
$(CC) $(CFLAGS) -c main.c
|
||||||
|
|
||||||
|
set.$(OBJ_EXT) : $(SET)/set.c
|
||||||
|
$(CC) -c $(CFLAGS) $(SET)/set.c
|
||||||
|
|
||||||
|
lint:
|
||||||
|
lint *.c
|
||||||
|
|
||||||
|
#clean up all the intermediate files
|
||||||
|
clean:
|
||||||
|
rm -f *.$(OBJ_EXT) core
|
@ -24,60 +24,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR_X64" value="${PACKAGE_DIR}/${LibName}/tmp/X64"/>
|
<property name="BUILD_DIR_X64" value="${PACKAGE_DIR}/${LibName}/tmp/X64"/>
|
||||||
<property name="BUILD_DIR_IPF" value="${PACKAGE_DIR}/${LibName}/tmp/Ipf"/>
|
<property name="BUILD_DIR_IPF" value="${PACKAGE_DIR}/${LibName}/tmp/Ipf"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, PeCoffLoaderLib">
|
||||||
<echo message="Building the EDK Tool: ${LibName}"/>
|
<echo message="The EDK Library: ${LibName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Library: ${LibName}"/>
|
<echo message="Building the EDK Library: ${LibName}"/>
|
||||||
<mkdir dir="${BUILD_DIR_IA32}"/>
|
<mkdir dir="${BUILD_DIR_IA32}"/>
|
||||||
<mkdir dir="${BUILD_DIR_X64}"/>
|
<mkdir dir="${BUILD_DIR_X64}"/>
|
||||||
<mkdir dir="${BUILD_DIR_IPF}"/>
|
<mkdir dir="${BUILD_DIR_IPF}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<condition property="syslibdirs" value="">
|
<condition property="syslibdirs" value="">
|
||||||
<os family="mac"/>
|
<os family="mac"/>
|
||||||
@ -105,7 +60,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init, PeCoffLoader_Ia32, PeCoffLoader_Ipf, PeCoffLoader_X64"/>
|
<target name="PeCoffLoaderLib" depends="init, PeCoffLoader_Ia32, PeCoffLoader_Ipf, PeCoffLoader_X64"/>
|
||||||
|
|
||||||
<target name="PeCoffLoader_Ia32" >
|
<target name="PeCoffLoader_Ia32" >
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR_IA32}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR_IA32}"
|
||||||
@ -171,7 +126,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR_IA32}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR_IA32}" includes="*.obj"/>
|
||||||
@ -180,10 +135,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${LibName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${LibName}${ext_exe}"/>
|
||||||
<delete dir="${PACKAGE_DIR}/${LibName}/tmp">
|
<delete dir="${PACKAGE_DIR}/${LibName}/tmp">
|
||||||
</delete>
|
</delete>
|
||||||
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${LIB_DIR}/${LibName}_Ia32${ext_static}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${LibName}_X64${ext_static}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${LibName}_IPF${ext_static}"/>
|
||||||
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -25,58 +25,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init, PeiRebase_Ia32, PeiRebase_Ipf, PeiRebase_X64"/>
|
<target name="Tool" depends="init, PeiRebase_Ia32, PeiRebase_Ipf, PeiRebase_X64"/>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="PeiRebase_Ia32" depends="init">
|
<target name="PeiRebase_Ia32" depends="init">
|
||||||
@ -127,17 +83,20 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}_*${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}_Ia32${ext_exe}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}_Ipf${ext_exe}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}_X64${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -96,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -96,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
optimize="speed">
|
optimize="speed">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -96,17 +51,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -95,17 +50,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<compilerarg value="-fshort-wchar" if="gcc"/>
|
<compilerarg value="-fshort-wchar" if="gcc"/>
|
||||||
@ -98,17 +53,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -23,57 +23,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${LibName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${LibName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, String">
|
<target name="GenTool" depends="init, String">
|
||||||
<echo message="Building the EDK Tool: ${LibName}"/>
|
<echo message="The EDK Library: ${LibName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Library: ${LibName}"/>
|
<echo message="Building the EDK Library: ${LibName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<condition property="syslibdirs" value="">
|
<condition property="syslibdirs" value="">
|
||||||
<os family="mac"/>
|
<os family="mac"/>
|
||||||
@ -121,17 +76,21 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${LibName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Library: ${LibName}${ext_static}"/>
|
||||||
<delete dir="${PACKAGE_DIR}/${LibName}/tmp">
|
<delete dir="${PACKAGE_DIR}/${LibName}/tmp">
|
||||||
</delete>
|
</delete>
|
||||||
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${LIB_DIR}/${LibName}${ext_static}"/>
|
||||||
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed!"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -95,17 +50,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -6,25 +6,24 @@
|
|||||||
<GuidValue>A169C678-3F55-4b6a-80BF-FD8B8DCAB883</GuidValue>
|
<GuidValue>A169C678-3F55-4b6a-80BF-FD8B8DCAB883</GuidValue>
|
||||||
<Version>2.0</Version>
|
<Version>2.0</Version>
|
||||||
<Abstract>This is the TianoTools Module</Abstract>
|
<Abstract>This is the TianoTools Module</Abstract>
|
||||||
<Description>This Module provides the EFI/Tiano Tools that are used to create EFI/Tiano
|
<Description>This Module provides the EFI/Tiano Tools that are used to create EFI/Tiano
|
||||||
Modules and Platform Binary Files (PBF)
|
Modules and Platform Binary Files (PBF)
|
||||||
These tools require compilation only once if the Developer Workstation and
|
These tools require compilation only once if the Developer Workstation and
|
||||||
the Developer's choice of HOST tool chain are stable. If the developer
|
the Developer's choice of HOST tool chain are stable. If the developer
|
||||||
updates either the OS or the HOST tool chain, these tools should be rebuilt.</Description>
|
updates either the OS or the HOST tool chain, these tools should be rebuilt.</Description>
|
||||||
<Copyright>Copyright 2006, Intel Corporation</Copyright>
|
<Copyright>Copyright 2006, Intel Corporation</Copyright>
|
||||||
<License>All rights reserved.
|
<License URL="http://opensource.org/licenses/bsd-license.php">All rights reserved. This program and the accompanying materials
|
||||||
This program and the accompanying materials
|
are licensed and made available under the terms and conditions of the
|
||||||
are licensed and made available under the terms and conditions of the
|
BSD License which accompanies this distribution. The full text of the
|
||||||
BSD License which accompanies this distribution. The full text of the
|
license may be found at
|
||||||
license may be found at
|
http://opensource.org/licenses/bsd-license.php
|
||||||
http://opensource.org/licenses/bsd-license.php
|
|
||||||
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</License>
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</License>
|
||||||
<Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification>
|
<Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification>
|
||||||
</MsaHeader>
|
</MsaHeader>
|
||||||
<ModuleDefinitions>
|
<ModuleDefinitions>
|
||||||
<SupportedArchitectures>IA32 X64 IPF EBC</SupportedArchitectures>
|
<SupportedArchitectures>EBC IA32 X64 IPF</SupportedArchitectures>
|
||||||
<BinaryModule>false</BinaryModule>
|
<BinaryModule>false</BinaryModule>
|
||||||
<OutputFileBasename>NULL</OutputFileBasename>
|
<OutputFileBasename>NULL</OutputFileBasename>
|
||||||
</ModuleDefinitions>
|
</ModuleDefinitions>
|
||||||
@ -314,4 +313,4 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</L
|
|||||||
<Filename>ZeroDebugData/build.xml</Filename>
|
<Filename>ZeroDebugData/build.xml</Filename>
|
||||||
<Filename>ZeroDebugData/ZeroDebugData.c</Filename>
|
<Filename>ZeroDebugData/ZeroDebugData.c</Filename>
|
||||||
</SourceFiles>
|
</SourceFiles>
|
||||||
</ModuleSurfaceArea>
|
</ModuleSurfaceArea>
|
@ -62,6 +62,7 @@ public:
|
|||||||
{
|
{
|
||||||
printf ("unrecognized input '%s'\n", Text);
|
printf ("unrecognized input '%s'\n", Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -9,7 +9,7 @@ http://opensource.org/licenses/bsd-license.php
|
|||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
-->
|
-->
|
||||||
<project default="GenTool" basedir=".">
|
<project default="GenTool" basedir="." name="VfrCompile">
|
||||||
<!--
|
<!--
|
||||||
EDK VfrCompile Tool
|
EDK VfrCompile Tool
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
@ -25,90 +25,58 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Antlr, Dlg, Tool">
|
<target name="GenTool" depends="init, Antlr, Dlg, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<echo>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
<condition property="AntlrDepends">
|
||||||
</echo>
|
<uptodate targetfile="${PACKAGE_DIR}/VfrCompile/parser.dlg" srcfile="${PACKAGE_DIR}/VfrCompile/VfrCompile.g" value="true"/>
|
||||||
</else>
|
</condition>
|
||||||
</if>
|
|
||||||
<if>
|
<condition property="DlgDepends">
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
<uptodate targetfile="${PACKAGE_DIR}/VfrCompile/DLGLexer.cpp" srcfile="${PACKAGE_DIR}/VfrCompile/parser.dlg" value="true"/>
|
||||||
<then>
|
</condition>
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
<condition property="CheckDepends">
|
<condition property="CheckDepends">
|
||||||
<uptodate targetfile="${WORKSPACE}/Tools/bin/VfrCompile${ext_exe}">
|
<or>
|
||||||
<srcfiles dir="${WORKSPACE}/Tools/Source/TianoTools/VfrCompile"
|
<isset property="AntlrDepends"/>
|
||||||
includes="EfiVfrParser.cpp DLGLexer.cpp VfrCompile.cpp VfrCompile.g VfrServices.cpp parser.dlg"/>
|
<isset property="DlgDepends"/>
|
||||||
</uptodate>
|
</or>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<condition property="gxx_extra_libs" value="stdc++ System gcc_s.10.4 gcc">
|
<condition property="gxx_extra_libs" value="stdc++ System gcc_s.10.4 gcc">
|
||||||
<os family="mac"/>
|
<os family="mac"/>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<condition property="gxx_extra_libs" value="stdc++">
|
<condition property="gxx_extra_libs" value="stdc++">
|
||||||
<os name="linux"/>
|
<os name="linux"/>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<condition property="gxx_extra_libs" value="stdc++">
|
<condition property="gxx_extra_libs" value="stdc++">
|
||||||
<os family="windows"/>
|
<os family="windows"/>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Antlr" depends="init" unless="CheckDepends">
|
<target name="Antlr" depends="init" unless="AntlrDepends">
|
||||||
|
<echo message="Executing ANTLR"/>
|
||||||
<exec dir="${basedir}/${ToolName}" executable="${env.FRAMEWORK_TOOLS_PATH}/antlr" failonerror="TRUE">
|
<exec dir="${basedir}/${ToolName}" executable="${env.FRAMEWORK_TOOLS_PATH}/antlr" failonerror="TRUE">
|
||||||
<arg line="-CC -e3 -ck 3 -o . VfrCompile.g"/>
|
<arg line="-CC -e3 -ck 3 -o . VfrCompile.g"/>
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Dlg" depends="Antlr" unless="CheckDepends">
|
<target name="Dlg" depends="Antlr" unless="DlgDepends">
|
||||||
|
<echo message="Executing DLG"/>
|
||||||
<exec dir="${basedir}/${ToolName}" executable="${env.FRAMEWORK_TOOLS_PATH}/dlg" failonerror="TRUE">
|
<exec dir="${basedir}/${ToolName}" executable="${env.FRAMEWORK_TOOLS_PATH}/dlg" failonerror="TRUE">
|
||||||
<arg line="-C2 -i -CC -o . parser.dlg"/>
|
<arg line="-C2 -i -CC -o . parser.dlg"/>
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init, Dlg">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
@ -129,17 +97,25 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${basedir}/${ToolName}/DLGLexer.cpp"/>
|
||||||
|
<fileset file="${basedir}/${ToolName}/DLGLexer.h"/>
|
||||||
|
<fileset file="${basedir}/${ToolName}/EfiVfrParser.cpp"/>
|
||||||
|
<fileset file="${basedir}/${ToolName}/EfiVfrParser.h"/>
|
||||||
|
<fileset file="${basedir}/${ToolName}/parser.dlg"/>
|
||||||
|
<fileset file="${basedir}/${ToolName}/tokens.h"/>
|
||||||
|
<fileset file="${basedir}/${ToolName}/VfrCompile.cpp"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -25,63 +25,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
<property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>
|
||||||
|
|
||||||
<target name="GenTool" depends="init, Tool">
|
<target name="GenTool" depends="init, Tool">
|
||||||
<echo message="Building the EDK Tool: ${ToolName}"/>
|
<echo message="The EDK Tool: ${ToolName} build has completed"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<echo message="The EDK Tool: ${ToolName}"/>
|
<echo message="Building the EDK Tool: ${ToolName}"/>
|
||||||
<mkdir dir="${BUILD_DIR}"/>
|
<mkdir dir="${BUILD_DIR}"/>
|
||||||
<if>
|
|
||||||
<equals arg1="${GCC}" arg2="cygwin"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Cygwin Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<os family="dos"/>
|
|
||||||
<then>
|
|
||||||
<echo message="Windows Family"/>
|
|
||||||
<property name="ToolChain" value="msvc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
<elseif>
|
|
||||||
<os family="unix"/>
|
|
||||||
<then>
|
|
||||||
<echo message="UNIX Family"/>
|
|
||||||
<property name="ToolChain" value="gcc"/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
|
|
||||||
<else>
|
|
||||||
<echo>
|
|
||||||
Unsupported Operating System
|
|
||||||
Please Contact Intel Corporation
|
|
||||||
</echo>
|
|
||||||
</else>
|
|
||||||
</if>
|
|
||||||
<if>
|
|
||||||
<equals arg1="${ToolChain}" arg2="msvc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".lib"/>
|
|
||||||
<property name="ext_dynamic" value=".dll"/>
|
|
||||||
<property name="ext_exe" value=".exe"/>
|
|
||||||
</then>
|
|
||||||
<elseif>
|
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
|
||||||
<then>
|
|
||||||
<property name="ext_static" value=".a"/>
|
|
||||||
<property name="ext_dynamic" value=".so"/>
|
|
||||||
<property name="ext_exe" value=""/>
|
|
||||||
</then>
|
|
||||||
</elseif>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Tool" depends="init">
|
<target name="Tool" depends="init">
|
||||||
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
<cc name="${ToolChain}" objdir="${BUILD_DIR}"
|
||||||
outfile="${BIN_DIR}/${ToolName}"
|
outfile="${BIN_DIR}/${ToolName}"
|
||||||
outtype="executable"
|
outtype="executable"
|
||||||
libtool="${haveLibtool}"
|
|
||||||
debug="false">
|
debug="false">
|
||||||
|
|
||||||
<fileset dir="${basedir}/${ToolName}"
|
<fileset dir="${basedir}/${ToolName}"
|
||||||
@ -95,17 +50,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</cc>
|
</cc>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" depends="init">
|
<target name="clean">
|
||||||
<echo message="Removing Intermediate Files Only"/>
|
<echo message="Removing Intermediate Files Only"/>
|
||||||
<delete>
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BUILD_DIR}" includes="*.obj"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall" depends="init">
|
<target name="cleanall">
|
||||||
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
<echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/>
|
||||||
<delete dir="${BUILD_DIR}">
|
<delete failonerror="false" quiet="true" includeEmptyDirs="true">
|
||||||
<fileset dir="${BIN_DIR}" includes="${ToolName}${ext_exe}"/>
|
<fileset dir="${BUILD_DIR}"/>
|
||||||
|
<fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -9,21 +9,15 @@ http://opensource.org/licenses/bsd-license.php
|
|||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
-->
|
-->
|
||||||
<project default="all" basedir=".">
|
<project default="all" basedir="." name="C_Code">
|
||||||
<!-- Copyright (c) 2006, Intel Corporation -->
|
<!-- Copyright (c) 2006, Intel Corporation -->
|
||||||
<!-- Filename: Tools/Source/build.xml -->
|
<!-- Filename: Tools/Source/build.xml -->
|
||||||
|
|
||||||
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
||||||
|
|
||||||
|
<property name="ReallyVerbose" value="false"/>
|
||||||
<property environment="env" />
|
<property environment="env" />
|
||||||
<condition property="HostArch" value="x64">
|
|
||||||
<os arch="amd64"/>
|
|
||||||
</condition>
|
|
||||||
<condition property="HostArch" value="Ia32">
|
|
||||||
<os arch="x86"/>
|
|
||||||
</condition>
|
|
||||||
<condition property="HostArch" value="Ia32">
|
|
||||||
<os arch="i386"/>
|
|
||||||
</condition>
|
|
||||||
<property name="WORKSPACE" value="${env.WORKSPACE}" />
|
<property name="WORKSPACE" value="${env.WORKSPACE}" />
|
||||||
<property name="WORKSPACE_DIR" value="${WORKSPACE}" />
|
<property name="WORKSPACE_DIR" value="${WORKSPACE}" />
|
||||||
<property name="PACKAGE" value="Tools" />
|
<property name="PACKAGE" value="Tools" />
|
||||||
@ -32,7 +26,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<property name="BIN_DIR" value="${WORKSPACE}/Tools/bin" />
|
<property name="BIN_DIR" value="${WORKSPACE}/Tools/bin" />
|
||||||
<property name="BUILD_MODE" value="PACKAGE" />
|
<property name="BUILD_MODE" value="PACKAGE" />
|
||||||
<property name="Libs"
|
<property name="Libs"
|
||||||
value="String/build.xml Common/build.xml CustomizedCompress/build.xml PeCoffLoader/build.xml"/>
|
value="Common/build.xml CustomizedCompress/build.xml PeCoffLoader/build.xml String/build.xml"/>
|
||||||
|
|
||||||
<import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />
|
<import file="${WORKSPACE_DIR}/Tools/Conf/BuildMacro.xml" />
|
||||||
|
|
||||||
@ -41,46 +35,71 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>
|
<fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
<target name="all" depends="init, Tools" />
|
<taskdef classpathref="classpath" resource="GenBuild.tasks" />
|
||||||
|
<taskdef classpathref="classpath" resource="net/sf/antcontrib/antlib.xml" />
|
||||||
|
|
||||||
|
<taskdef classpathref="classpath" resource="cpptasks.tasks"/>
|
||||||
|
<typedef classpathref="classpath" resource="cpptasks.types"/>
|
||||||
|
|
||||||
|
<target name="all" depends="init, Tools">
|
||||||
|
<echo message="The EDK II C Tools build complete!"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<taskdef classpathref="classpath" resource="GenBuild.tasks" />
|
<echo message="EDK C Code Tools, build initialization"/>
|
||||||
<taskdef classpathref="classpath" resource="net/sf/antcontrib/antlib.xml" />
|
|
||||||
|
|
||||||
<taskdef classpathref="classpath" resource="cpptasks.tasks"/>
|
|
||||||
<typedef classpathref="classpath" resource="cpptasks.types"/>
|
|
||||||
|
|
||||||
<mkdir dir="${BIN_DIR}" />
|
<mkdir dir="${BIN_DIR}" />
|
||||||
<mkdir dir="${LIB_DIR}" />
|
<mkdir dir="${LIB_DIR}" />
|
||||||
|
|
||||||
|
<condition property="HostArch" value="X64">
|
||||||
|
<os arch="amd64"/>
|
||||||
|
</condition>
|
||||||
|
<condition property="HostArch" value="Ia32">
|
||||||
|
<or>
|
||||||
|
<os arch="x86"/>
|
||||||
|
<os arch="i386"/>
|
||||||
|
</or>
|
||||||
|
</condition>
|
||||||
|
<condition property="HostArch" value="Ia32">
|
||||||
|
<os arch="i386"/>
|
||||||
|
</condition>
|
||||||
|
|
||||||
<if>
|
<if>
|
||||||
<os family="unix" />
|
<os family="unix" />
|
||||||
<then>
|
<then>
|
||||||
<echo message="OS Family UNIX" />
|
<echo message="OS Family UNIX, ${HostArch}" />
|
||||||
</then>
|
</then>
|
||||||
<elseif>
|
<elseif>
|
||||||
<os family="dos" />
|
<os family="dos" />
|
||||||
<then>
|
<then>
|
||||||
<echo message="OS Family DOS" />
|
<echo message="OS Family DOS, ${HostArch}" />
|
||||||
</then>
|
</then>
|
||||||
</elseif>
|
</elseif>
|
||||||
<elseif>
|
<elseif>
|
||||||
<os family="mac" />
|
<os family="mac" />
|
||||||
<then>
|
<then>
|
||||||
<echo message="OS Family OS X" />
|
<echo message="OS Family OS X, ${HostArch}" />
|
||||||
</then>
|
</then>
|
||||||
</elseif>
|
</elseif>
|
||||||
<else>
|
<else>
|
||||||
<echo message="OS Family Unsupported" />
|
<fail message="OS Family Unsupported, ${HostArch}" />
|
||||||
</else>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if>
|
<if>
|
||||||
<isset property="env.TOOL_CHAIN" />
|
<not>
|
||||||
|
<isset property="ToolChain" />
|
||||||
|
</not>
|
||||||
<then>
|
<then>
|
||||||
<property name="ToolChain" value="${env.TOOL_CHAIN}"/>
|
<if>
|
||||||
<condition property="gcc">
|
<isset property="env.TOOL_CHAIN" />
|
||||||
<equals arg1="${ToolChain}" arg2="gcc"/>
|
<then>
|
||||||
</condition>
|
<property name="ToolChain" value="${env.TOOL_CHAIN}"/>
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<!-- Default Tool Chain is Microsoft Visual Studio -->
|
||||||
|
<property name="ToolChain" value="msvc"/>
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
</then>
|
</then>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
@ -88,10 +107,37 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<os name="Linux"/>
|
<os name="Linux"/>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
|
<condition property="intel_win">
|
||||||
|
<and>
|
||||||
|
<os family="dos"/>
|
||||||
|
<equals arg1="${ToolChain}" arg2="intel"/>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="intel_linux">
|
||||||
|
<and>
|
||||||
|
<os name="Linux"/>
|
||||||
|
<equals arg1="${ToolChain}" arg2="intel"/>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="intel_mac">
|
||||||
|
<and>
|
||||||
|
<os family="mac"/>
|
||||||
|
<equals arg1="${ToolChain}" arg2="intel"/>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="gcc">
|
||||||
|
<and>
|
||||||
|
<equals arg1="${ToolChain}" arg2="gcc"/>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
|
||||||
<condition property="cygwin">
|
<condition property="cygwin">
|
||||||
<and>
|
<and>
|
||||||
<os family="dos"/>
|
<os family="dos"/>
|
||||||
<istrue value="${gcc}"/>
|
<equals arg1="${ToolChain}" arg2="gcc"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
@ -109,10 +155,74 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
<condition property="OSX" value="true">
|
<condition property="OSX" value="true">
|
||||||
<os family="Mac"/>
|
<os family="Mac"/>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
|
<condition property="cyglinux">
|
||||||
|
<or>
|
||||||
|
<istrue value="linux"/>
|
||||||
|
<istrue value="${cygwin}"/>
|
||||||
|
</or>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<!-- msft is a family, used by both Microsoft and Intel Windows compiler tool chains -->
|
||||||
|
<condition property="msft">
|
||||||
|
<isfalse value="${gcc}"/>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<if>
|
||||||
|
<istrue value="${ReallyVerbose}"/>
|
||||||
|
<then>
|
||||||
|
<echo message="Test property msvc: ${msvc}"/>
|
||||||
|
<echo message="Test property gcc: ${gcc}"/>
|
||||||
|
<echo message="Test property intel_win: ${intel_win}"/>
|
||||||
|
<echo message="Test property intel_linux: ${intel_linux}"/>
|
||||||
|
<echo message="Test property intel_mac: ${intel_mac}"/>
|
||||||
|
<echo message="Test property msft: ${msft}"/>
|
||||||
|
<echo message="Test property cygwin: ${cygwin}"/>
|
||||||
|
<echo message="Test property cyglinux: ${cyglinux}"/>
|
||||||
|
<echo message="Test property windows: ${windows}"/>
|
||||||
|
<echo message="Test property linux: ${linux}"/>
|
||||||
|
<echo message="Test property OSX: ${OSX}"/>
|
||||||
|
<echo message="Test property x86_64_linux: ${x86_64_linux}"/>
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<property name="haveLibtool" value="false"/>
|
||||||
|
<if>
|
||||||
|
<and>
|
||||||
|
<not>
|
||||||
|
<isset property="env.CYGWIN_HOME"/>
|
||||||
|
</not>
|
||||||
|
<isset property="cygwin"/>
|
||||||
|
</and>
|
||||||
|
<then>
|
||||||
|
<fail message="You must set the environment variable: CYGWIN_HOME"/>
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if>
|
||||||
|
<istrue value="${gcc}"/>
|
||||||
|
<then>
|
||||||
|
<property name="ext_static" value=".a"/>
|
||||||
|
<property name="ext_dynamic" value=".so"/>
|
||||||
|
<if>
|
||||||
|
<istrue value="${cygwin}"/>
|
||||||
|
<then>
|
||||||
|
<property name="ext_exe" value=".exe"/>
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<property name="ext_exe" value=""/>
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<property name="ext_static" value=".lib"/>
|
||||||
|
<property name="ext_dynamic" value=".dll"/>
|
||||||
|
<property name="ext_exe" value=".exe"/>
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="Libraries">
|
<target name="Libraries" depends="init">
|
||||||
<subant target="" inheritall="true">
|
<subant target="" inheritall="true">
|
||||||
<fileset dir="${PACKAGE_DIR}"
|
<fileset dir="${PACKAGE_DIR}"
|
||||||
includes="${Libs}"/>
|
includes="${Libs}"/>
|
||||||
@ -126,13 +236,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</subant>
|
</subant>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean">
|
<target name="clean" depends="init">
|
||||||
<subant target="clean" inheritall="true">
|
<subant target="clean" inheritall="true">
|
||||||
<fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>
|
<fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>
|
||||||
</subant>
|
</subant>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanall">
|
<target name="cleanall" depends="init">
|
||||||
<subant target="cleanall" inheritall="true">
|
<subant target="cleanall" inheritall="true">
|
||||||
<fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>
|
<fileset dir="${PACKAGE_DIR}" includes="*/build.xml"/>
|
||||||
</subant>
|
</subant>
|
||||||
|
Reference in New Issue
Block a user