3 # Copyright (c) 2002 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 GenAcpiTable utility.
23 # Make sure environmental variable EFI_SOURCE is set
26 !ERROR EFI_SOURCE environmental variable not set
30 # Define the toolchain which is used to set build options and toolchain paths
32 TOOLCHAIN
= TOOLCHAIN_MSVC
34 !INCLUDE PlatformTools.env
37 # Target specific information
40 TARGET_NAME
= GenAcpiTable
41 TARGET_SRC_DIR
= $(TIANO_TOOLS_SOURCE
)\
$(TARGET_NAME
)
42 TARGET_EXE
= $(TIANO_TOOLS_OUTPUT
)\
$(TARGET_NAME
).exe
50 OBJECTS
= $(TIANO_TOOLS_OUTPUT
)\
$(TARGET_NAME
).obj
52 LIBS
= $(TIANO_TOOLS_OUTPUT
)\Common.lib
54 INC_DEPS
= $(EDK_SOURCE
)\Foundation\Efi\Include\EfiImage.h
57 # Build the EXE by compiling the source files, then linking the resultant
58 # object files together.
61 $(TIANO_TOOLS_OUTPUT
)\
$(TARGET_NAME
).obj
: $(TARGET_SRC_DIR
)\
$(TARGET_NAME
).c
$(INC_DEPS
)
62 $(CC
) $(C_FLAGS
) $(TARGET_SRC_DIR
)\
$(TARGET_NAME
).c
/Fo
$@
64 $(TARGET_EXE
): $(OBJECTS
) $(TARGET_EXE_LIBS
)
65 $(LINK
) $(MSVS_LINK_LIBPATHS
) $(L_FLAGS
) $(LIBS
) /out
:$(TARGET_EXE
) $(OBJECTS
)
68 @if exist
$(TIANO_TOOLS_OUTPUT
)\
$(TARGET_NAME
).
* del
$(TIANO_TOOLS_OUTPUT
)\
$(TARGET_NAME
).
* > NUL