Fix the issue that Sec lost library build dependency
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jul 2007 02:07:57 +0000 (02:07 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Jul 2007 02:07:57 +0000 (02:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3083 6f19259b-4bc3-4df7-8a09-765794883524

Nt32Pkg/Sec/Makefile

index 0261f43..6ed3285 100644 (file)
@@ -30,7 +30,7 @@ LINK_FLAGS_EXE = /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT
 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\r
 COMMON_DEPS = $(DEBUG_DIR)\AutoGen.h\r
 \r
-all : $(BIN_DIR)\SecMain.exe\r
+all : gen_libs $(BIN_DIR)\SecMain.exe\r
 \r
 $(BIN_DIR)\SecMain.exe : $(OBJECTS)\r
   "$(DLINK)"                        \\r
@@ -41,6 +41,18 @@ $(BIN_DIR)\SecMain.exe : $(OBJECTS)
     /base:0x10000000                \\r
     /out:"$(BIN_DIR)\SecMain.exe"   \\r
     /pdb:"$(BIN_DIR)\SecMain.pdb"\r
+    \r
+gen_libs:\r
+       cd $(BUILD_DIR)\$(ARCH)\MdePkg\Library\BaseDebugLibNull\BaseDebugLibNull\r
+       $(MAKE) $(MAKE_FLAGS)\r
+       cd $(BUILD_DIR)\$(ARCH)\MdePkg\Library\BasePrintLib\BasePrintLib\r
+       $(MAKE) $(MAKE_FLAGS)\r
+       cd $(BUILD_DIR)\$(ARCH)\MdePkg\Library\BaseMemoryLib\BaseMemoryLib\r
+       $(MAKE) $(MAKE_FLAGS)\r
+       cd $(BUILD_DIR)\$(ARCH)\MdePkg\Library\BaseLib\BaseLib\r
+       $(MAKE) $(MAKE_FLAGS)\r
+       cd $(BUILD_DIR)\$(ARCH)\MdePkg\Library\BasePeCoffLib\BasePeCoffLib\r
+       $(MAKE) $(MAKE_FLAGS)\r
   \r
 #\r
 # Individual Object Build Targets\r