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