]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | #/*++\r |
2 | # \r | |
3 | # Copyright (c) 2004 - 2007, Intel Corporation \r | |
4 | # All rights reserved. This program and the accompanying materials \r | |
5 | # are licensed and made available under the terms and conditions of the BSD License \r | |
6 | # which accompanies this distribution. The full text of the license may be found at \r | |
7 | # http://opensource.org/licenses/bsd-license.php \r | |
8 | # \r | |
9 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \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 $(BUILD_DIR)\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 | TARGET_NAME = CustomizedCompress\r | |
34 | TARGET_SOURCE_DIR = $(EDK_TOOLS_SOURCE)\$(TARGET_NAME)\r | |
35 | COMMON_SOURCE = $(EDK_TOOLS_COMMON)\r | |
36 | \r | |
37 | #\r | |
38 | # Common information\r | |
39 | #\r | |
40 | \r | |
41 | TARGET_LIB = $(EDK_TOOLS_OUTPUT)\CustomizedCompress.lib\r | |
42 | \r | |
43 | OBJECTS = "$(EDK_TOOLS_OUTPUT)\CustomizedCompress.obj" \r | |
44 | \r | |
45 | #\r | |
46 | # Build targets\r | |
47 | #\r | |
48 | \r | |
49 | all: $(TARGET_LIB)\r | |
50 | \r | |
51 | #\r | |
52 | # Object targets\r | |
53 | #\r | |
54 | \r | |
55 | "$(EDK_TOOLS_OUTPUT)\CustomizedCompress.obj": "$(TARGET_SOURCE_DIR)\CustomizedCompress.c" $(EDK_SOURCE)\Foundation\Include\EfiCommon.h\r | |
56 | $(CC) $(C_FLAGS) "$(TARGET_SOURCE_DIR)\CustomizedCompress.c" /Fo"$(EDK_TOOLS_OUTPUT)\CustomizedCompress.obj"\r | |
57 | \r | |
58 | #\r | |
59 | # Build LIB\r | |
60 | #\r | |
61 | \r | |
62 | #\r | |
63 | # Add Binary Build description for this lib.\r | |
64 | #\r | |
65 | \r | |
66 | !IF (("$(EFI_BINARY_TOOLS)" == "YES") && EXIST($(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME).lib))\r | |
67 | $(TARGET_LIB): $(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME).lib\r | |
68 | copy $(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME).lib $(TARGET_LIB) /Y\r | |
69 | if exist $(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME)Obj.pdb \\r | |
70 | copy $(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME)Obj.pdb $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME)Obj.pdb /Y\r | |
71 | !ELSE\r | |
72 | $(TARGET_LIB): $(OBJECTS)\r | |
73 | $(LIB_EXE) $(LIB_FLAGS) $(OBJECTS) /OUT:$(TARGET_LIB)\r | |
95d675b5 | 74 | !IF ("$(EFI_BINARY_BUILD)" == "YES")\r |
3eb9473e | 75 | if not exist $(EFI_PLATFORM_BIN)\Tools mkdir $(EFI_PLATFORM_BIN)\Tools\r |
76 | if exist $(TARGET_LIB) copy $(TARGET_LIB) $(EFI_PLATFORM_BIN)\tools\$(TARGET_NAME).lib /Y\r | |
77 | if exist $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME)Obj.pdb \\r | |
78 | copy $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME)Obj.pdb $(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME)Obj.pdb /Y\r | |
79 | !ENDIF\r | |
95d675b5 | 80 | !ENDIF\r |
3eb9473e | 81 | \r |
82 | clean:\r | |
83 | @if exist $(EDK_TOOLS_OUTPUT)\CustomizedCompress.* del /q $(EDK_TOOLS_OUTPUT)\CustomizedCompress.* > NUL\r | |
84 | @if exist $(TARGET_LIB) del $(TARGET_LIB)\r |