3 # Copyright (c) 2001 Intel Corporation. All rights reserved.
5 # This software and associated documentation (if any) is furnished under
6 # a license and may only be used or copied in accordance with the terms
7 # of the license. Except as permitted by such license, no part of this
8 # software or documentation may be reproduced, stored in a retrieval
9 # system, or transmitted in any form or by any means without the express
10 # written consent of Intel Corporation.
12 # Module Name: makefile
16 # This file is used to build the EFI utility.
21 # Do this if you want to compile from this directory
24 TOOLCHAIN = TOOLCHAIN_MSVC
27 !INCLUDE PlatformTools.env
30 # Define some macros we use here. Should get rid of them someday and
31 # get rid of the extra level of indirection.
33 COMMON_SOURCE = $(EDK_TOOLS_COMMON)
36 # BUGBUG: Override standard flags, cannot be built without warnings.
39 C_FLAGS=/nologo /W4 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
48 # Target specific information
51 TARGET_NAME=EfiCompress
52 TARGET_SOURCE_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)
54 TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe
56 TARGET_EXE_SOURCE = "$(TARGET_SOURCE_DIR)\EfiCompressMain.c"
57 TARGET_EXE_INCLUDE = "$(COMMON_SOURCE)\EfiCompress.h"
58 TARGET_EXE_LIBS = "$(TIANO_TOOLS_OUTPUT)\Common.lib"
70 $(TIANO_TOOLS_OUTPUT)\EfiCompressMain.obj: $(TARGET_EXE_SOURCE) $(TARGET_EXE_INCLUDE)
71 $(CC) $(C_FLAGS) $(INC) $(TARGET_EXE_SOURCE) /Fo$(TIANO_TOOLS_OUTPUT)\EfiCompressMain.obj
73 $(TARGET_EXE): $(TIANO_TOOLS_OUTPUT)\EfiCompressMain.obj $(TARGET_EXE_LIBS) $(TARGET_DLL)
74 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(TIANO_TOOLS_OUTPUT)\EfiCompressMain.obj $(TARGET_LIB) $(TARGET_EXE_LIBS)
77 @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME)Main.* del /q $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME)Main.* > NUL