Add the ModifyInf tool
[mirror_edk2.git] / Tools / Source / TianoTools / EfiRom / Makefile
CommitLineData
d25c4bf0 1#/*++\r
2# \r
3# Copyright (c) 2001 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 EfiRom utility.\r
19# \r
20# Revision History\r
21# \r
22#--*/\r
23\r
24#\r
25# Make sure environmental variable EFI_SOURCE is set\r
26#\r
27!IFNDEF EFI_SOURCE\r
28!ERROR EFI_SOURCE environmental variable not set \r
29!ENDIF\r
30\r
31#\r
32# Define the toolchain which is used to set build options and toolchain paths\r
33#\r
34TOOLCHAIN = TOOLCHAIN_MSVC\r
35\r
36!INCLUDE PlatformTools.env\r
37\r
38#\r
39# Target specific information\r
40#\r
41\r
42TARGET_NAME = EfiRom\r
43TARGET_SRC_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)\r
44TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\EfiRom.exe\r
45\r
46#\r
47# Build targets\r
48#\r
49\r
50all: $(TARGET_EXE)\r
51\r
52OBJECTS = $(TIANO_TOOLS_OUTPUT)\EfiRom.obj \\r
53 $(TIANO_TOOLS_OUTPUT)\EfiCompress.obj\r
54 \r
55#\r
56# Build the EXE by compiling the source files, then linking the resultant\r
57# object files together.\r
58#\r
59\r
60$(TIANO_TOOLS_OUTPUT)\EfiRom.obj : $(TARGET_SRC_DIR)\EfiRom.c\r
61 $(CC) $(C_FLAGS) $(TARGET_SRC_DIR)\EfiRom.c /Fo$@\r
62\r
63$(TIANO_TOOLS_OUTPUT)\EfiCompress.obj : $(EDK_TOOLS_SOURCE)\Common\EfiCompress.c\r
64 $(CC) $(C_FLAGS) $(EDK_TOOLS_SOURCE)\Common\EfiCompress.c /Fo$@\r
65 \r
66$(TARGET_EXE): $(OBJECTS) $(TARGET_EXE_LIBS)\r
67 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(OBJECTS)\r
68\r
69clean:\r
70 @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL\r