]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Tools/Source/SetStamp/Makefile
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / SetStamp / Makefile
CommitLineData
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: \r
13#\r
14# makefile\r
15# \r
16# Abstract:\r
17# \r
18# This file is used to build the EFI utility.\r
19# \r
20#--*/\r
21\r
22#\r
23# Do this if you want to compile from this directory\r
24#\r
25!IFNDEF TOOLCHAIN\r
26TOOLCHAIN = TOOLCHAIN_MSVC\r
27!ENDIF\r
28\r
29!INCLUDE $(BUILD_DIR)\PlatformTools.env\r
30\r
31#\r
32# Define some macros we use here. Should get rid of them someday and \r
33# get rid of the extra level of indirection.\r
34#\r
35COMMON_SOURCE = $(EDK_TOOLS_COMMON)\r
36\r
37#\r
38# Common information\r
39#\r
40\r
41INC=$(INC)\r
42\r
43#\r
44# Target specific information\r
45#\r
46\r
47TARGET_NAME=SetStamp\r
48TARGET_SOURCE_DIR = $(EDK_TOOLS_SOURCE)\$(TARGET_NAME)\r
49\r
50TARGET_EXE = $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).exe\r
51\r
52TARGET_EXE_SOURCE = "$(TARGET_SOURCE_DIR)\SetStamp.c"\r
53TARGET_EXE_INCLUDE =\r
54OBJECTS = $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).obj\r
55\r
56#\r
57# Build targets\r
58#\r
59\r
60all: $(TARGET_EXE)\r
61\r
62#\r
63# Build EXE\r
64#\r
65\r
66$(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).obj: $(TARGET_EXE_SOURCE)\r
67 $(CC) $(C_FLAGS) $(INC) $(TARGET_EXE_SOURCE) /Fo$(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).obj\r
68\r
69#\r
70# Add Binary Build description for this tool.\r
71#\r
72\r
73!IF (("$(EFI_BINARY_TOOLS)" == "YES") && EXIST($(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME).exe))\r
74$(TARGET_EXE): $(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME).exe\r
75 copy $(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME).exe $(TARGET_EXE) /Y\r
76 if exist $(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME).pdb \\r
77 copy $(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME).pdb $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).pdb /Y\r
78!ELSE\r
79$(TARGET_EXE) : $(OBJECTS)\r
80 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(OBJECTS)\r
81 if not exist $(EFI_PLATFORM_BIN)\Tools mkdir $(EFI_PLATFORM_BIN)\Tools\r
82 if exist $(TARGET_EXE) copy $(TARGET_EXE) $(EFI_PLATFORM_BIN)\tools\$(TARGET_NAME).exe /Y\r
83 if exist $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).pdb \\r
84 copy $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).pdb $(EFI_PLATFORM_BIN)\Tools\$(TARGET_NAME).pdb /Y\r
85!ENDIF\r
86\r
87clean:\r
88 @if exist $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).*\r