Add the ModifyInf tool
[mirror_edk2.git] / Tools / Source / TianoTools / GenCapsuleHdr / Makefile
CommitLineData
d25c4bf0 1#/*++\r
2# \r
3# Copyright (c) 2002 Intel Corporation. All rights reserved\r
4# This software and associated documentation (if any) is furnished\r
5# under a license and may only be used or copied in accordance\r
6# with the terms of the license. Except as permitted by such\r
7# license, no part of this software or documentation may be\r
8# reproduced, stored in a retrieval system, or transmitted in any\r
9# form or by any means without the express written consent of\r
10# Intel Corporation.\r
11# \r
12# \r
13# Module Name:\r
14# \r
15# Makefile\r
16# \r
17# Abstract:\r
18# \r
19# makefile for the GenCapsuleHdr utility.\r
20# \r
21#--*/ \r
22\r
23#\r
24# Make sure environmental variable EFI_SOURCE is set\r
25#\r
26!IFNDEF EFI_SOURCE\r
27!ERROR EFI_SOURCE environmental variable not set \r
28!ENDIF\r
29\r
30#\r
31# Do this if you want to compile from this directory\r
32#\r
33!IFNDEF TOOLCHAIN\r
34TOOLCHAIN = TOOLCHAIN_MSVC\r
35!ENDIF\r
36\r
37!INCLUDE PlatformTools.env\r
38\r
39#\r
40# Target specific information\r
41#\r
42\r
43\r
44TARGET_NAME = GenCapsuleHdr\r
45TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe\r
46SRC = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)\r
47ETO = $(TIANO_TOOLS_OUTPUT)\r
48\r
49#\r
50# Build targets\r
51#\r
52\r
53all: $(TARGET_EXE)\r
54\r
55LIBS = $(LIBS) "$(TIANO_TOOLS_OUTPUT)\Common.lib" ole32.lib\r
56\r
57OBJECTS = $(ETO)\$(TARGET_NAME).obj \\r
58 $(ETO)\CreateGuid.obj\r
59\r
60#\r
61# Compile each source file\r
62#\r
63$(ETO)\$(TARGET_NAME).obj : $(SRC)\$(TARGET_NAME).c $(INC_DEPS)\r
64 $(CC) $(C_FLAGS) $(SRC)\$(TARGET_NAME).c /Fo$@\r
65\r
66$(ETO)\CreateGuid.obj : $(SRC)\CreateGuid.c $(INC_DEPS)\r
67 $(CC) $(C_FLAGS) $(SRC)\CreateGuid.c /Fo$@\r
68\r
69#\r
70# Link the object files together\r
71#\r
72$(TARGET_EXE) : $(OBJECTS)\r
73 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(OBJECTS)\r
74\r
75clean:\r