]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/SecFixup/Makefile
6ae2ebd31af12bb9b3f54f84dca1d74547cfe9f8
[mirror_edk2.git] / Tools / Source / TianoTools / SecFixup / Makefile
1 #/*++
2 #
3 # Copyright (c) 2001 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 = SecFixup
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
46 #
47 # Build EXE
48 #
49
50 $(OBJECTS) : $(TARGET_EXE_SOURCE) $(INC_DEPS)
51 $(CC) $(C_FLAGS) $(TARGET_EXE_SOURCE) /Fo$@
52
53 $(TARGET_EXE): $(OBJECTS)
54 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(OBJECTS) $(LIBS) /out:$(TARGET_EXE)
55
56 clean:
57 @if exist $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL