No longer needed. Use USER_DEFINED module type instead.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3464 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jwang36 2007-07-27 01:51:31 +00:00
parent 892f21378b
commit a695d1356f
2 changed files with 0 additions and 232 deletions

View File

@ -1,91 +0,0 @@
SOURCE_FILES = $(DEBUG_DIR)\AutoGen.c \
$(MODULE_DIR)\Nt32Pkg\Sec\WinNtThunk.c \
$(MODULE_DIR)\Nt32Pkg\Sec\FwVol.c \
$(MODULE_DIR)\Nt32Pkg\Sec\SecMain.c
INC = -I$(WORKSPACE)\Nt32Pkg\Sec \
-I$(DEBUG_DIR) \
-I$(WORKSPACE)\Nt32Pkg \
-I$(WORKSPACE)\Nt32Pkg\Include \
-I$(WORKSPACE)\MdePkg \
-I$(WORKSPACE)\MdePkg\Include\Ia32 \
-I$(WORKSPACE)\MdePkg\Include \
-I$(WORKSPACE)\MdeModulePkg\Include \
-I$(WORKSPACE)\IntelFrameworkPkg\Include
OBJECTS = $(OUTPUT_DIR)\.\AutoGen.obj \
$(OUTPUT_DIR)\.\WinNtThunk.obj \
$(OUTPUT_DIR)\.\FwVol.obj \
$(OUTPUT_DIR)\.\SecMain.obj
LIBS = $(LIB_DIR)\BaseDebugLibNull.lib \
$(LIB_DIR)\BasePrintLib.lib \
$(LIB_DIR)\BaseMemoryLib.lib \
$(LIB_DIR)\BaseLib.lib \
$(LIB_DIR)\BasePeCoffLib.lib
MSVS_LINK_LIBPATHS = /LIBPATH:"$(VCINSTALLDIR)\Lib" /LIBPATH:"$(VCINSTALLDIR)\PlatformSdk\Lib"
LINK_FLAGS_EXE = /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG \
Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib
CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /D EFI32 /Od /DSTRING_ARRAY_NAME=SecMainStrings /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm
COMMON_DEPS = $(DEBUG_DIR)\AutoGen.h
all : gen_libs $(BIN_DIR)\SecMain.exe
$(BIN_DIR)\SecMain.exe : $(OBJECTS)
"$(DLINK)" \
$(MSVS_LINK_LIBPATHS) \
$(LINK_FLAGS_EXE) \
$(OBJECTS) \
$(LIBS) \
/base:0x10000000 \
/out:"$(BIN_DIR)\SecMain.exe" \
/pdb:"$(BIN_DIR)\SecMain.pdb"
gen_libs:
cd $(BUILD_DIR)\$(ARCH)\MdePkg\Library\BaseDebugLibNull\BaseDebugLibNull
$(MAKE) $(MAKE_FLAGS)
cd $(BUILD_DIR)\$(ARCH)\MdePkg\Library\BasePrintLib\BasePrintLib
$(MAKE) $(MAKE_FLAGS)
cd $(BUILD_DIR)\$(ARCH)\MdePkg\Library\BaseMemoryLib\BaseMemoryLib
$(MAKE) $(MAKE_FLAGS)
cd $(BUILD_DIR)\$(ARCH)\MdePkg\Library\BaseLib\BaseLib
$(MAKE) $(MAKE_FLAGS)
cd $(BUILD_DIR)\$(ARCH)\MdePkg\Library\BasePeCoffLib\BasePeCoffLib
$(MAKE) $(MAKE_FLAGS)
#
# Individual Object Build Targets
#
$(OUTPUT_DIR)\.\AutoGen.obj : $(COMMON_DEPS)
$(OUTPUT_DIR)\.\AutoGen.obj : $(DEBUG_DIR)\AutoGen.c
"$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(DEBUG_DIR)\AutoGen.c
$(OUTPUT_DIR)\.\WinNtThunk.obj : $(COMMON_DEPS)
$(OUTPUT_DIR)\.\WinNtThunk.obj : $(MODULE_DIR)\WinNtThunk.c
"$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)\WinNtThunk.c
$(OUTPUT_DIR)\.\FwVol.obj : $(COMMON_DEPS)
$(OUTPUT_DIR)\.\FwVol.obj : $(MODULE_DIR)\FwVol.c
"$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)\FwVol.c
$(OUTPUT_DIR)\.\SecMain.obj : $(COMMON_DEPS)
$(OUTPUT_DIR)\.\SecMain.obj : $(MODULE_DIR)\SecMain.c
"$(CC)" $(CC_FLAGS) $(INC) /Fo$@ $(MODULE_DIR)\SecMain.c
clean:
# - @if exist $(DEBUG_DIR)\AutoGen.c del $(DEBUG_DIR)\AutoGen.c > NUL
# - @if exist $(DEBUG_DIR)\AutoGen.h del $(DEBUG_DIR)\AutoGen.h > NUL
# - @if exist $(OUTPUT_DIR)\.\*.obj del $(OUTPUT_DIR)\.\*.obj > NUL
# - @if exist $(MODULE_BUILD_DIR)\makefile del $(MODULE_BUILD_DIR)\makefile > NUL
# - @if exist $(MODULE_BUILD_DIR)\*.idb del $(MODULE_BUILD_DIR)\*.idb > NUL
# - @if exist $(MODULE_BUILD_DIR)\*.pdb del $(MODULE_BUILD_DIR)\*.pdb > NUL
# - @if exist $(BIN_DIR)\SecMain.exe del $(BIN_DIR)\SecMain.exe > NUL
# - @if exist $(BIN_DIR)\SecMain.pdb del $(BIN_DIR)\SecMain.pdb > NUL
- @rmdir /s /q $(OUTPUT_DIR) > NUL 2>&1
cleanall:
- @rmdir /s /q $(OUTPUT_DIR) $(DEBUG_DIR) > NUL 2>&1
- @del /f /q *.pdb *.idb > NUL 2>&1

View File

@ -1,141 +0,0 @@
<?xml version="1.0" ?>
<!--
Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-->
<project name="SecMain" default="main" basedir="." >
<!-- Apply external ANT task -->
<taskdef resource="frameworktasks.tasks" />
<taskdef resource="cpptasks.tasks" />
<typedef resource="cpptasks.types" />
<taskdef resource="net/sf/antcontrib/antlib.xml" />
<property environment="env" />
<!-- All Properties -->
<property name="BASE_NAME" value="SecMain" />
<!-- Default target -->
<target name="main" depends="libraries, sourcefiles, sections, output" />
<!-- Compile all dependency Library instances. -->
<target name="libraries">
<GenBuild type="build">
<property name="ARCH" value="${ARCH}"/>
<property name="MODULE_GUID" value="27d67720-ea68-48ae-93da-a3a074c90e30"/>
<property name="MODULE_VERSION" value=""/>
<property name="PLATFORM" value="${PLATFORM}"/>
<property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
<property name="PACKAGE_VERSION" value=""/>
</GenBuild>
<GenBuild type="build">
<property name="ARCH" value="${ARCH}"/>
<property name="MODULE_GUID" value="fd44e603-002a-4b29-9f5f-529e815b6165"/>
<property name="MODULE_VERSION" value=""/>
<property name="PLATFORM" value="${PLATFORM}"/>
<property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
<property name="PACKAGE_VERSION" value=""/>
</GenBuild>
<GenBuild type="build">
<property name="ARCH" value="${ARCH}"/>
<property name="MODULE_GUID" value="a86fbfca-0183-4eeb-aa8a-762e3b7da1f3"/>
<property name="MODULE_VERSION" value=""/>
<property name="PLATFORM" value="${PLATFORM}"/>
<property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
<property name="PACKAGE_VERSION" value=""/>
</GenBuild>
<GenBuild type="build">
<property name="ARCH" value="${ARCH}"/>
<property name="MODULE_GUID" value="556f5d10-7309-4af4-b80a-8196bd60946f"/>
<property name="MODULE_VERSION" value=""/>
<property name="PLATFORM" value="${PLATFORM}"/>
<property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
<property name="PACKAGE_VERSION" value=""/>
</GenBuild>
<GenBuild type="build">
<property name="ARCH" value="${ARCH}"/>
<property name="MODULE_GUID" value="9ba1d976-0624-41a3-8650-28165e8d9ae8"/>
<property name="MODULE_VERSION" value=""/>
<property name="PLATFORM" value="${PLATFORM}"/>
<property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
<property name="PACKAGE_VERSION" value=""/>
</GenBuild>
</target>
<target name="sourcefiles">
<Build_Init>
<EXTRA.INC>
<includepath path="${INCLUDE_PATHS}"/>
</EXTRA.INC>
</Build_Init>
<Build_AUTOGEN FILEEXT="c" FILENAME="AutoGen" FILEPATH=".">
<EXTRA.INC>
<includepath path="${INCLUDE_PATHS}"/>
</EXTRA.INC>
</Build_AUTOGEN>
<Build_CCode FILEEXT="c" FILENAME="FwVol" FILEPATH=".">
<EXTRA.INC>
<includepath path="${INCLUDE_PATHS}"/>
</EXTRA.INC>
</Build_CCode>
<Build_CCode FILEEXT="c" FILENAME="WinNtThunk" FILEPATH=".">
<EXTRA.INC>
<includepath path="${INCLUDE_PATHS}"/>
</EXTRA.INC>
</Build_CCode>
<Build_CCode FILEEXT="c" FILENAME="SecMain" FILEPATH=".">
<EXTRA.INC>
<includepath path="${INCLUDE_PATHS}"/>
</EXTRA.INC>
</Build_CCode>
</target>
<target name="sections" />
<target name="output" >
<if>
<available type="file" file="${DEST_DIR_OUTPUT}/AutoGen.h.obj"/>
<then>
<var name="SLINK_FLAGS" value="${SLINK_FLAGS} ${DEST_DIR_OUTPUT}/AutoGen.h.obj"/>
</then>
</if>
<OnDependency>
<sourcefiles>
<fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />
<file list="${LIBS}"/>
</sourcefiles>
<targetfiles>
<file name="${BIN_DIR}\SecMain.exe"/>
</targetfiles>
<sequential>
<cc userdefine="on">
<command type="SLINK" cmd="${SLINK}" family="${SLINK_FAMILY}"
outputFile="${DEST_DIR_OUTPUT}/SecMainLocal.lib" dpath="${SLINK_DPATH}">
<argument value="${SLINK_FLAGS}"/>
<fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}"/>
</command>
</cc>
<var name="LIBS" value="${LIBS} ${DEST_DIR_OUTPUT}/SecMainLocal.lib" />
<shellscript shell="cmd.exe" tmpsuffix=".cmd" >
<arg line="/q"/>
<arg line="/c"/>
<arg line="call"/>
PATH ${DLINK_DPATH};%path%
"${DLINK}" /LIBPATH:"${env.MSVCDir}\Lib" /LIBPATH:"${env.MSVCDir}\PlatformSdk\Lib" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib ${LIBS} /base:0x10000000 /out:${BIN_DIR}\SecMain.exe /pdb:${DEST_DIR_DEBUG}\SecMain.pdb
</shellscript>
</sequential>
</OnDependency>
</target>
<target name="clean" ></target>
<target name="cleanAll"></target>
</project>