BaseTools: Update Makefile to work at absolute path
[mirror_edk2.git] / BaseTools / Source / C / Makefiles / ms.app
CommitLineData
0d2711a6 1## @file\r
97fa0ee9 2# Makefile\r
0d2711a6 3#\r
b69fd59e 4# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
0d2711a6
LG
5# This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
f51461c8 11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
97fa0ee9 12#\r
f51461c8 13\r
f51461c8
LG
14APPLICATION = $(BIN_PATH)\$(APPNAME).exe\r
15\r
16all: $(APPLICATION) \r
17\r
18$(APPLICATION) : $(OBJECTS) \r
19 -@if not exist $(BIN_PATH) mkdir $(BIN_PATH)\r
9a1a63cf 20 $(LD) /nologo /debug /OPT:REF /OPT:ICF=10 /incremental:no /nodefaultlib:libc.lib /out:$@ $(LIBS) $**\r
f51461c8 21\r
84e076c8 22$(OBJECTS) : $(SOURCE_PATH)\Include\Common\BuildVersion.h\r
0d2711a6 23\r
f51461c8
LG
24.PHONY:clean\r
25.PHONY:cleanall\r
26\r
27clean:\r
28 del /f /q $(OBJECTS) *.pdb > nul\r
29\r
30cleanall:\r
b69fd59e 31 del /f /q $(OBJECTS) $(APPLICATION) *.pdb $(BIN_PATH)\$(APPNAME).pdb > nul\r
f51461c8 32\r
84e076c8 33!INCLUDE $(SOURCE_PATH)\Makefiles\ms.rule\r
f51461c8 34\r