]>
Commit | Line | Data |
---|---|---|
d25c4bf0 | 1 | #/*++\r |
2 | # \r | |
3 | # Copyright (c) 2001 Intel Corporation. All rights reserved.\r | |
4 | #\r | |
5 | # This software and associated documentation (if any) is furnished under \r | |
6 | # a license and may only be used or copied in accordance with the terms \r | |
7 | # of the license. Except as permitted by such license, no part of this \r | |
8 | # software or documentation may be reproduced, stored in a retrieval \r | |
9 | # system, or transmitted in any form or by any means without the express \r | |
10 | # written consent of Intel Corporation.\r | |
11 | # \r | |
12 | # Module Name: makefile\r | |
13 | # \r | |
14 | # Abstract:\r | |
15 | # \r | |
16 | # This file is used to build the EFI utility.\r | |
17 | # \r | |
18 | #--*/\r | |
19 | \r | |
20 | #\r | |
21 | # Do this if you want to compile from this directory\r | |
22 | #\r | |
23 | !IFNDEF TOOLCHAIN\r | |
24 | TOOLCHAIN = TOOLCHAIN_MSVC\r | |
25 | !ENDIF\r | |
26 | \r | |
27 | !INCLUDE PlatformTools.env\r | |
28 | \r | |
29 | #\r | |
30 | # Define some macros we use here. Should get rid of them someday and \r | |
31 | # get rid of the extra level of indirection.\r | |
32 | #\r | |
33 | COMMON_SOURCE = $(EDK_TOOLS_COMMON)\r | |
34 | \r | |
35 | #\r | |
36 | # BUGBUG: Override standard flags, cannot be built without warnings.\r | |
37 | #\r | |
38 | \r | |
39 | C_FLAGS=/nologo /W4 /GX /Zi /Od /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /c \r | |
40 | \r | |
41 | #\r | |
42 | # Common information\r | |
43 | #\r | |
44 | \r | |
45 | INC=$(INC)\r | |
46 | \r | |
47 | #\r | |
48 | # Target specific information\r | |
49 | #\r | |
50 | \r | |
51 | TARGET_NAME=EfiCompress\r | |
52 | TARGET_SOURCE_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)\r | |
53 | \r | |
54 | TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe\r | |
55 | \r | |
56 | TARGET_EXE_SOURCE = "$(TARGET_SOURCE_DIR)\EfiCompressMain.c"\r | |
57 | TARGET_EXE_INCLUDE = "$(COMMON_SOURCE)\EfiCompress.h"\r | |
58 | TARGET_EXE_LIBS = "$(TIANO_TOOLS_OUTPUT)\Common.lib"\r | |
59 | \r | |
60 | #\r | |
61 | # Build targets\r | |
62 | #\r | |
63 | \r | |
64 | all: $(TARGET_EXE)\r | |
65 | \r | |
66 | #\r | |
67 | # Build EXE\r | |
68 | #\r | |
69 | \r | |
70 | $(TIANO_TOOLS_OUTPUT)\EfiCompressMain.obj: $(TARGET_EXE_SOURCE) $(TARGET_EXE_INCLUDE)\r | |
71 | $(CC) $(C_FLAGS) $(INC) $(TARGET_EXE_SOURCE) /Fo$(TIANO_TOOLS_OUTPUT)\EfiCompressMain.obj\r | |
72 | \r | |
73 | $(TARGET_EXE): $(TIANO_TOOLS_OUTPUT)\EfiCompressMain.obj $(TARGET_EXE_LIBS) $(TARGET_DLL)\r | |
74 | $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(TIANO_TOOLS_OUTPUT)\EfiCompressMain.obj $(TARGET_LIB) $(TARGET_EXE_LIBS)\r | |
75 | \r | |
76 | clean:\r | |
77 | @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME)Main.* del /q $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME)Main.* > NUL\r |