BaseTools: Update Makefile to work at absolute path

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
Liming Gao 2017-11-23 20:48:10 +08:00
parent c40dbe5e7b
commit 84e076c861
2 changed files with 3 additions and 3 deletions

View File

@ -23,6 +23,6 @@ all: $(MAKEROOT)/bin $(APPLICATION)
$(APPLICATION): $(OBJECTS)
$(LINKER) -o $(APPLICATION) $(BUILD_LFLAGS) $(OBJECTS) -L$(MAKEROOT)/libs $(LIBS)
$(OBJECTS): ../Include/Common/BuildVersion.h
$(OBJECTS): $(MAKEROOT)/Include/Common/BuildVersion.h
include $(MAKEROOT)/Makefiles/footer.makefile

View File

@ -19,7 +19,7 @@ $(APPLICATION) : $(OBJECTS)
-@if not exist $(BIN_PATH) mkdir $(BIN_PATH)
$(LD) /nologo /debug /OPT:REF /OPT:ICF=10 /incremental:no /nodefaultlib:libc.lib /out:$@ $(LIBS) $**
$(OBJECTS) : ..\Include\Common\BuildVersion.h
$(OBJECTS) : $(SOURCE_PATH)\Include\Common\BuildVersion.h
.PHONY:clean
.PHONY:cleanall
@ -30,5 +30,5 @@ clean:
cleanall:
del /f /q $(OBJECTS) $(APPLICATION) *.pdb $(BIN_PATH)\$(APPNAME).pdb > nul
!INCLUDE ..\Makefiles\ms.rule
!INCLUDE $(SOURCE_PATH)\Makefiles\ms.rule