]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/ZeroDebugData/Makefile
Adding Additional Tools that are needed for Platform Image creation.
[mirror_edk2.git] / Tools / Source / TianoTools / ZeroDebugData / Makefile
1 #/*++
2 #
3 # Copyright (c) 2001 Intel Corporation
4 #
5 # Module Name: makefile
6 #
7 # Abstract:
8 #
9 # This file is used to build the EFI utility.
10 #
11 #--*/
12
13 #
14 # Do this if you want to compile from this directory
15 #
16 !IFNDEF TOOLCHAIN
17 TOOLCHAIN = TOOLCHAIN_MSVC
18 !ENDIF
19
20 !INCLUDE PlatformTools.env
21
22 #
23 # Define some macros we use here. Should get rid of them someday and
24 # get rid of the extra level of indirection.
25 #
26 COMMON_SOURCE = $(EDK_TOOLS_COMMON)
27
28 #
29 # Common information
30 #
31
32 INC=$(INC)
33
34 #
35 # Target specific information
36 #
37
38 TARGET_NAME=ZeroDebugData
39 TARGET_SOURCE_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)
40
41 TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe
42
43 TARGET_EXE_SOURCE = "$(TARGET_SOURCE_DIR)\ZeroDebugData.c"
44 TARGET_EXE_INCLUDE =
45
46 #
47 # Build targets
48 #
49
50 all: $(TARGET_EXE)
51
52 #
53 # Build EXE
54 #
55
56 $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj: $(TARGET_EXE_SOURCE)
57 $(CC) $(C_FLAGS) $(INC) $(TARGET_EXE_SOURCE) /Fo$(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj
58
59 $(TARGET_EXE): $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj $(TARGET_EXE_LIBS) $(TARGET_DLL)
60 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj $(TARGET_LIB) $(TARGET_EXE_LIBS)
61
62 clean:
63 @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).*