Add the ModifyInf tool
[mirror_edk2.git] / Tools / Source / TianoTools / CreateMtFile / Makefile
CommitLineData
d25c4bf0 1#/*++\r
2# \r
3# Copyright (c) 1999 - 2001 Intel Corporation. All rights reserved\r
4# This software and associated documentation (if any) is furnished\r
5# under a license and may only be used or copied in accordance\r
6# with the terms of the license. Except as permitted by such\r
7# license, no part of this software or documentation may be\r
8# reproduced, stored in a retrieval system, or transmitted in any\r
9# form or by any means without the express written consent of\r
10# Intel Corporation.\r
11# \r
12# \r
13# Module Name:\r
14# \r
15# Makefile\r
16# \r
17# Abstract:\r
18# \r
19# makefile for building the CreateMtFile utility.\r
20# \r
21# Revision History\r
22# \r
23#--*/\r
24\r
25#\r
26# Make sure environmental variable EFI_SOURCE is set\r
27#\r
28!IFNDEF EFI_SOURCE\r
29!ERROR EFI_SOURCE environmental variable not set \r
30!ENDIF\r
31\r
32#\r
33# Define the toolchain which is used to set build options and toolchain paths\r
34#\r
35TOOLCHAIN = TOOLCHAIN_MSVC\r
36\r
37!INCLUDE PlatformTools.env\r
38\r
39#\r
40# Target specific information\r
41#\r
42\r
43TARGET_NAME = CreateMtFile\r
44TARGET_SRC_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)\r
45TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe\r
46\r
47#\r
48# Build targets\r
49#\r
50\r
51all: $(TARGET_EXE)\r
52\r
53OBJECTS = $(TIANO_TOOLS_OUTPUT)\CreateMtFile.obj\r
54 \r
55#\r
56# Build the EXE by compiling the source files, then linking the resultant\r
57# object files together.\r
58#\r
59\r
60$(TIANO_TOOLS_OUTPUT)\CreateMtFile.obj : $(TARGET_SRC_DIR)\CreateMtFile.c\r
61 $(CC) $(C_FLAGS) $(TARGET_SRC_DIR)\CreateMtFile.c /Fo$@\r
62\r
63$(TARGET_EXE): $(OBJECTS) $(TARGET_EXE_LIBS)\r
64 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(OBJECTS)\r
65\r
66clean:\r
67 @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL\r