Add the ModifyInf tool
[mirror_edk2.git] / Tools / Source / TianoTools / ZeroDebugData / Makefile
CommitLineData
d25c4bf0 1#/*++\r
2# \r
3# Copyright (c) 2001 Intel Corporation\r
4# \r
5# Module Name: makefile\r
6# \r
7# Abstract:\r
8# \r
9# This file is used to build the EFI utility.\r
10# \r
11#--*/\r
12\r
13#\r
14# Do this if you want to compile from this directory\r
15#\r
16!IFNDEF TOOLCHAIN\r
17TOOLCHAIN = TOOLCHAIN_MSVC\r
18!ENDIF\r
19\r
20!INCLUDE PlatformTools.env\r
21\r
22#\r
23# Define some macros we use here. Should get rid of them someday and \r
24# get rid of the extra level of indirection.\r
25#\r
26COMMON_SOURCE = $(EDK_TOOLS_COMMON)\r
27\r
28#\r
29# Common information\r
30#\r
31\r
32INC=$(INC)\r
33\r
34#\r
35# Target specific information\r
36#\r
37\r
38TARGET_NAME=ZeroDebugData\r
39TARGET_SOURCE_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)\r
40\r
41TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe\r
42\r
43TARGET_EXE_SOURCE = "$(TARGET_SOURCE_DIR)\ZeroDebugData.c"\r
44TARGET_EXE_INCLUDE =\r
45\r
46#\r
47# Build targets\r
48#\r
49\r
50all: $(TARGET_EXE)\r
51\r
52#\r
53# Build EXE\r
54#\r
55\r
56$(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj: $(TARGET_EXE_SOURCE)\r
57 $(CC) $(C_FLAGS) $(INC) $(TARGET_EXE_SOURCE) /Fo$(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj\r
58\r
59$(TARGET_EXE): $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj $(TARGET_EXE_LIBS) $(TARGET_DLL)\r
60 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj $(TARGET_LIB) $(TARGET_EXE_LIBS)\r
61\r
62clean:\r
63 @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).*\r