]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/GenAcpiTable/Makefile
Adding Additional Tools that are needed for Platform Image creation.
[mirror_edk2.git] / Tools / Source / TianoTools / GenAcpiTable / Makefile
1 #/*++
2 #
3 # Copyright (c) 2002 Intel Corporation. All rights reserved.
4 #
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.
11 #
12 # Module Name:
13 #
14 # makefile
15 #
16 # Abstract:
17 #
18 # makefile for building the GenAcpiTable utility.
19 #
20 #--*/
21
22 #
23 # Make sure environmental variable EFI_SOURCE is set
24 #
25 !IFNDEF EFI_SOURCE
26 !ERROR EFI_SOURCE environmental variable not set
27 !ENDIF
28
29 #
30 # Define the toolchain which is used to set build options and toolchain paths
31 #
32 TOOLCHAIN = TOOLCHAIN_MSVC
33
34 !INCLUDE PlatformTools.env
35
36 #
37 # Target specific information
38 #
39
40 TARGET_NAME = GenAcpiTable
41 TARGET_SRC_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)
42 TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe
43
44 #
45 # Build targets
46 #
47
48 all: $(TARGET_EXE)
49
50 OBJECTS = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj
51
52 LIBS = $(TIANO_TOOLS_OUTPUT)\Common.lib
53
54 INC_DEPS = $(EDK_SOURCE)\Foundation\Efi\Include\EfiImage.h
55
56 #
57 # Build the EXE by compiling the source files, then linking the resultant
58 # object files together.
59 #
60
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$@
63
64 $(TARGET_EXE): $(OBJECTS) $(TARGET_EXE_LIBS)
65 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(OBJECTS)
66
67 clean:
68 @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL