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
19 # makefile for building the CreateMtFile utility.
26 # Make sure environmental variable EFI_SOURCE is set
29 !ERROR EFI_SOURCE environmental variable not set
33 # Define the toolchain which is used to set build options and toolchain paths
35 TOOLCHAIN
= TOOLCHAIN_MSVC
37 !INCLUDE PlatformTools.env
40 # Target specific information
43 TARGET_NAME
= CreateMtFile
44 TARGET_SRC_DIR
= $(TIANO_TOOLS_SOURCE
)\
$(TARGET_NAME
)
45 TARGET_EXE
= $(TIANO_TOOLS_OUTPUT
)\
$(TARGET_NAME
).exe
53 OBJECTS
= $(TIANO_TOOLS_OUTPUT
)\CreateMtFile.obj
56 # Build the EXE by compiling the source files, then linking the resultant
57 # object files together.
60 $(TIANO_TOOLS_OUTPUT
)\CreateMtFile.obj
: $(TARGET_SRC_DIR
)\CreateMtFile.c
61 $(CC
) $(C_FLAGS
) $(TARGET_SRC_DIR
)\CreateMtFile.c
/Fo
$@
63 $(TARGET_EXE
): $(OBJECTS
) $(TARGET_EXE_LIBS
)
64 $(LINK
) $(MSVS_LINK_LIBPATHS
) $(L_FLAGS
) $(LIBS
) /out
:$(TARGET_EXE
) $(OBJECTS
)
67 @if exist
$(TIANO_TOOLS_OUTPUT
)\
$(TARGET_NAME
).
* del
$(TIANO_TOOLS_OUTPUT
)\
$(TARGET_NAME
).
* > NUL