Adding Additional Tools that are needed for Platform Image creation.
[mirror_edk2.git] / Tools / Source / TianoTools / SecApResetVectorFixup / Makefile
CommitLineData
d25c4bf0 1#/*++\r
2# \r
3# Copyright (c) 2005 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: makefile\r
13# \r
14# Abstract:\r
15# \r
16# This file is used to build the EFI utility.\r
17# \r
18#--*/\r
19\r
20#\r
21# Do this if you want to compile from this directory\r
22#\r
23!IFNDEF TOOLCHAIN\r
24TOOLCHAIN = TOOLCHAIN_MSVC\r
25!ENDIF\r
26\r
27!INCLUDE PlatformTools.env\r
28\r
29#\r
30# Target specific information\r
31#\r
32\r
33TARGET_NAME = SecApResetVectorFixup\r
34TARGET_SOURCE_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)\r
35TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe\r
36TARGET_EXE_SOURCE = $(TARGET_SOURCE_DIR)\$(TARGET_NAME).c\r
37\r
38#\r
39# Build targets\r
40#\r
41\r
42all: $(TARGET_EXE)\r
43\r
44OBJECTS = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj\r
45LIBS = $(TIANO_TOOLS_OUTPUT)\Common.lib \r
46\r
47#\r
48# Build EXE\r
49#\r
50\r
51$(OBJECTS) : $(TARGET_EXE_SOURCE) $(INC_DEPS)\r
52 $(CC) $(C_FLAGS) $(TARGET_EXE_SOURCE) /Fo$@\r
53\r
54$(TARGET_EXE): $(OBJECTS)\r
55 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(OBJECTS) $(LIBS) /out:$(TARGET_EXE)\r
56\r
57clean:\r
58 @if exist $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL\r