]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/TianoTools/MakeDeps/build.xml
Remove warning message in MAC GCC tool build
[mirror_edk2.git] / Tools / Source / TianoTools / MakeDeps / build.xml
CommitLineData
b09da165 1<?xml version="1.0" ?>\r
2<!--\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11-->\r
12<project default="GenTool" basedir=".">\r
13<!--\r
14 EDK MakeDeps Tool\r
15 Copyright (c) 2006, Intel Corporation\r
16-->\r
17 <property name="ToolName" value="MakeDeps"/>\r
18 <property name="FileSet" value="*.c *.h"/>\r
19\r
20 <taskdef resource="cpptasks.tasks"/>\r
21 <typedef resource="cpptasks.types"/>\r
22 <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
23\r
b09da165 24 <property name="LINK_OUTPUT_TYPE" value="static"/>\r
25 <property name="BUILD_DIR" value="${PACKAGE_DIR}/${ToolName}/tmp"/>\r
26\r
27 <target name="GenTool" depends="init, Tool">\r
af1dd46d 28 <echo message="The EDK Tool: ${ToolName} build has completed!"/>\r
b09da165 29 </target>\r
30\r
31 <target name="init">\r
af1dd46d 32 <echo message="Building the EDK Tool: ${ToolName}"/>\r
b09da165 33 <mkdir dir="${BUILD_DIR}"/>\r
b09da165 34 </target>\r
35\r
36 <target name="Tool" depends="init">\r
37 <cc name="${ToolChain}" objdir="${BUILD_DIR}" \r
38 outfile="${BIN_DIR}/${ToolName}"\r
39 outtype="executable"\r
b09da165 40 optimize="speed">\r
9776330c 41 <compilerarg value="${ExtraArgus}" /> \r
42 \r
b09da165 43 <fileset dir="${basedir}/${ToolName}" \r
44 includes="${FileSet}" \r
45 defaultexcludes="TRUE" \r
46 excludes="*.xml *.inf"/>\r
47\r
21b50a27 48 <includepath path="${PACKAGE_DIR}/Include"/>\r
c7c42e40 49 <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
b09da165 50 <includepath path="${PACKAGE_DIR}/Common"/>\r
ce53a8c3 51 <libset dir="${LIB_DIR}" libs="CommonTools"/>\r
b09da165 52 </cc>\r
53 </target>\r
54\r
af1dd46d 55 <target name="clean">\r
b09da165 56 <echo message="Removing Intermediate Files Only"/> \r
57 <delete>\r
58 <fileset dir="${BUILD_DIR}" includes="*.obj"/>\r
59 </delete>\r
60 </target>\r
61\r
af1dd46d 62 <target name="cleanall">\r
b09da165 63 <echo message="Removing Object Files and the Executable: ${ToolName}${ext_exe}"/> \r
af1dd46d 64 <delete failonerror="false" quiet="true" includeEmptyDirs="true">\r
65 <fileset dir="${BUILD_DIR}"/>\r
66 <fileset file="${BIN_DIR}/${ToolName}${ext_exe}"/>\r
b09da165 67 </delete>\r
68 </target>\r
69\r
70</project>\r