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