53e6be5b704e81bbf961f943caa543fb4e059a8a
[mirror_edk2.git] / Tools / Source / TianoTools / SecApResetVectorFixup / Makefile
1 #/*++
2 #
3 # Copyright (c) 2005 Intel Corporation. All rights reserved.
4 #
5 # This software and associated documentation (if any) is furnished under
6 # a license and may only be used or copied in accordance with the terms
7 # of the license. Except as permitted by such license, no part of this
8 # software or documentation may be reproduced, stored in a retrieval
9 # system, or transmitted in any form or by any means without the express
10 # written consent of Intel Corporation.
11 #
12 # Module Name: makefile
13 #
14 # Abstract:
15 #
16 # This file is used to build the EFI utility.
17 #
18 #--*/
19
20 #
21 # Do this if you want to compile from this directory
22 #
23 !IFNDEF TOOLCHAIN
24 TOOLCHAIN = TOOLCHAIN_MSVC
25 !ENDIF
26
27 !INCLUDE PlatformTools.env
28
29 #
30 # Target specific information
31 #
32
33 TARGET_NAME = SecApResetVectorFixup
34 TARGET_SOURCE_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)
35 TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe
36 TARGET_EXE_SOURCE = $(TARGET_SOURCE_DIR)\$(TARGET_NAME).c
37
38 #
39 # Build targets
40 #
41
42 all: $(TARGET_EXE)
43
44 OBJECTS = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj
45 LIBS = $(TIANO_TOOLS_OUTPUT)\Common.lib
46
47 #
48 # Build EXE
49 #
50
51 $(OBJECTS) : $(TARGET_EXE_SOURCE) $(INC_DEPS)
52 $(CC) $(C_FLAGS) $(TARGET_EXE_SOURCE) /Fo$@
53
54 $(TARGET_EXE): $(OBJECTS)
55 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(OBJECTS) $(LIBS) /out:$(TARGET_EXE)
56
57 clean:
58 @if exist $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL