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
19 # makefile for the GenCapsuleHdr utility.
24 # Make sure environmental variable EFI_SOURCE is set
27 !ERROR EFI_SOURCE environmental variable not set
31 # Do this if you want to compile from this directory
34 TOOLCHAIN
= TOOLCHAIN_MSVC
37 !INCLUDE PlatformTools.env
40 # Target specific information
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
)
55 LIBS
= $(LIBS
) "$(TIANO_TOOLS_OUTPUT)\Common.lib" ole32.lib
57 OBJECTS
= $(ETO
)\
$(TARGET_NAME
).obj \
61 # Compile each source file
63 $(ETO
)\
$(TARGET_NAME
).obj
: $(SRC
)\
$(TARGET_NAME
).c
$(INC_DEPS
)
64 $(CC
) $(C_FLAGS
) $(SRC
)\
$(TARGET_NAME
).c
/Fo
$@
66 $(ETO
)\CreateGuid.obj
: $(SRC
)\CreateGuid.c
$(INC_DEPS
)
67 $(CC
) $(C_FLAGS
) $(SRC
)\CreateGuid.c
/Fo
$@
70 # Link the object files together
72 $(TARGET_EXE
) : $(OBJECTS
)
73 $(LINK
) $(MSVS_LINK_LIBPATHS
) $(L_FLAGS
) $(LIBS
) /out
:$(TARGET_EXE
) $(OBJECTS
)