]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/SplitFile/Makefile
Add the ModifyInf tool
[mirror_edk2.git] / Tools / Source / TianoTools / SplitFile / 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 # Define some macros we use here. Should get rid of them someday and
31 # get rid of the extra level of indirection.
32 #
33 COMMON_SOURCE = $(EDK_TOOLS_COMMON)
34
35 #
36 # Common information
37 #
38
39 INC=$(INC)
40
41 #
42 # Target specific information
43 #
44
45 TARGET_NAME=SplitFile
46 TARGET_SOURCE_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)
47
48 TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe
49
50 TARGET_EXE_SOURCE = "$(TARGET_SOURCE_DIR)\SplitFile.c"
51 TARGET_EXE_INCLUDE =
52
53 #
54 # Build targets
55 #
56
57 all: $(TARGET_EXE)
58
59 #
60 # Build EXE
61 #
62
63 $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj: $(TARGET_EXE_SOURCE) $(TARGET_EXE_INCLUDE)
64 $(CC) $(C_FLAGS) $(INC) $(TARGET_EXE_SOURCE) /Fo$(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj
65
66 $(TARGET_EXE): $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj $(TARGET_EXE_LIBS) $(TARGET_DLL)
67 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj $(TARGET_LIB) $(TARGET_EXE_LIBS)
68
69 clean:
70 @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL