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