]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Makefiles/ms.app
BaseTools: Update Makefile to work at absolute path
[mirror_edk2.git] / BaseTools / Source / C / Makefiles / ms.app
index 455549c12126a06ebb824e3de2e524eb10ec01e1..37b7446584b14d8d03f9661000a1861e1ceda1c8 100644 (file)
@@ -1,6 +1,7 @@
 ## @file\r
+# Makefile\r
 #\r
-# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.    The full text of the license may be found at\r
@@ -8,8 +9,7 @@
 #\r
 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-!INCLUDE ..\Makefiles\ms.common\r
+#\r
 \r
 APPLICATION = $(BIN_PATH)\$(APPNAME).exe\r
 \r
@@ -17,9 +17,9 @@ all: $(APPLICATION)
 \r
 $(APPLICATION) : $(OBJECTS) \r
        -@if not exist $(BIN_PATH) mkdir $(BIN_PATH)\r
-       $(LD) /nologo /debug /incremental:no /nodefaultlib:libc.lib /out:$@ $(LIBS) $**\r
+       $(LD) /nologo /debug /OPT:REF /OPT:ICF=10 /incremental:no /nodefaultlib:libc.lib /out:$@ $(LIBS) $**\r
 \r
-$(OBJECTS) : ..\Include\Common\BuildVersion.h\r
+$(OBJECTS) : $(SOURCE_PATH)\Include\Common\BuildVersion.h\r
 \r
 .PHONY:clean\r
 .PHONY:cleanall\r
@@ -28,7 +28,7 @@ clean:
        del /f /q $(OBJECTS) *.pdb > nul\r
 \r
 cleanall:\r
-       del /f /q $(OBJECTS) $(APPLICATION) *.pdb $(BIN_PATH)\*.pdb > nul\r
+       del /f /q $(OBJECTS) $(APPLICATION) *.pdb $(BIN_PATH)\$(APPNAME).pdb > nul\r
 \r
-!INCLUDE ..\Makefiles\ms.rule\r
+!INCLUDE $(SOURCE_PATH)\Makefiles\ms.rule\r
 \r