]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/EfiCompress/makefile
b20a21947d825c20aed2d2cdb05ac8ab1ce369b4
[mirror_edk2.git] / Tools / Source / TianoTools / EfiCompress / makefile
1 #/*++
2 #
3 # Copyright (c) 2001 Intel Corporation. All rights reserved.
4 #
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.
11 #
12 # Module Name: makefile
13 #
14 # Abstract:
15 #
16 # This file is used to build the EFI utility.
17 #
18 #--*/
19
20 #
21 # Do this if you want to compile from this directory
22 #
23 !IFNDEF TOOLCHAIN
24 TOOLCHAIN = TOOLCHAIN_MSVC
25 !ENDIF
26
27 !INCLUDE PlatformTools.env
28
29 #
30 # Define some macros we use here. Should get rid of them someday and
31 # get rid of the extra level of indirection.
32 #
33 COMMON_SOURCE = $(EDK_TOOLS_COMMON)
34
35 #
36 # BUGBUG: Override standard flags, cannot be built without warnings.
37 #
38
39 C_FLAGS=/nologo /W4 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c
40
41 #
42 # Common information
43 #
44
45 INC=$(INC)
46
47 #
48 # Target specific information
49 #
50
51 TARGET_NAME=EfiCompress
52 TARGET_SOURCE_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)
53
54 TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe
55
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"
59
60 #
61 # Build targets
62 #
63
64 all: $(TARGET_EXE)
65
66 #
67 # Build EXE
68 #
69
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
72
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)
75
76 clean:
77 @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME)Main.* del /q $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME)Main.* > NUL