3 # Copyright (c) 2001 Intel Corporation. All rights reserved.
5 # This software and associated documentation (if any) is furnished under
6 # a license and may only be used or copied in accordance with the terms
7 # of the license. Except as permitted by such license, no part of this
8 # software or documentation may be reproduced, stored in a retrieval
9 # system, or transmitted in any form or by any means without the express
10 # written consent of Intel Corporation.
18 # makefile for building the EfiRom utility.
25 # Make sure environmental variable EFI_SOURCE is set
28 !ERROR EFI_SOURCE environmental variable not set
32 # Define the toolchain which is used to set build options and toolchain paths
34 TOOLCHAIN
= TOOLCHAIN_MSVC
36 !INCLUDE PlatformTools.env
39 # Target specific information
43 TARGET_SRC_DIR
= $(TIANO_TOOLS_SOURCE
)\
$(TARGET_NAME
)
44 TARGET_EXE
= $(TIANO_TOOLS_OUTPUT
)\EfiRom.exe
52 OBJECTS
= $(TIANO_TOOLS_OUTPUT
)\EfiRom.obj \
53 $(TIANO_TOOLS_OUTPUT
)\EfiCompress.obj
56 # Build the EXE by compiling the source files, then linking the resultant
57 # object files together.
60 $(TIANO_TOOLS_OUTPUT
)\EfiRom.obj
: $(TARGET_SRC_DIR
)\EfiRom.c
61 $(CC
) $(C_FLAGS
) $(TARGET_SRC_DIR
)\EfiRom.c
/Fo
$@
63 $(TIANO_TOOLS_OUTPUT
)\EfiCompress.obj
: $(EDK_TOOLS_SOURCE
)\Common\EfiCompress.c
64 $(CC
) $(C_FLAGS
) $(EDK_TOOLS_SOURCE
)\Common\EfiCompress.c
/Fo
$@
66 $(TARGET_EXE
): $(OBJECTS
) $(TARGET_EXE_LIBS
)
67 $(LINK
) $(MSVS_LINK_LIBPATHS
) $(L_FLAGS
) $(LIBS
) /out
:$(TARGET_EXE
) $(OBJECTS
)
70 @if exist
$(TIANO_TOOLS_OUTPUT
)\
$(TARGET_NAME
).
* del
$(TIANO_TOOLS_OUTPUT
)\
$(TARGET_NAME
).
* > NUL