]>
Commit | Line | Data |
---|---|---|
d25c4bf0 | 1 | #/*++\r |
2 | # \r | |
3 | # Copyright (c) 2001 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 | |
24 | TOOLCHAIN = TOOLCHAIN_MSVC\r | |
25 | !ENDIF\r | |
26 | \r | |
27 | !INCLUDE PlatformTools.env\r | |
28 | \r | |
29 | #\r | |
30 | # Define some macros we use here. Should get rid of them someday and \r | |
31 | # get rid of the extra level of indirection.\r | |
32 | #\r | |
33 | COMMON_SOURCE = $(EDK_TOOLS_COMMON)\r | |
34 | \r | |
35 | #\r | |
36 | # Common information\r | |
37 | #\r | |
38 | \r | |
39 | INC=$(INC)\r | |
40 | \r | |
41 | #\r | |
42 | # Target specific information\r | |
43 | #\r | |
44 | \r | |
45 | TARGET_NAME=SplitFile\r | |
46 | TARGET_SOURCE_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)\r | |
47 | \r | |
48 | TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe\r | |
49 | \r | |
50 | TARGET_EXE_SOURCE = "$(TARGET_SOURCE_DIR)\SplitFile.c"\r | |
51 | TARGET_EXE_INCLUDE = \r | |
52 | \r | |
53 | #\r | |
54 | # Build targets\r | |
55 | #\r | |
56 | \r | |
57 | all: $(TARGET_EXE)\r | |
58 | \r | |
59 | #\r | |
60 | # Build EXE\r | |
61 | #\r | |
62 | \r | |
63 | $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj: $(TARGET_EXE_SOURCE) $(TARGET_EXE_INCLUDE)\r | |
64 | $(CC) $(C_FLAGS) $(INC) $(TARGET_EXE_SOURCE) /Fo$(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj\r | |
65 | \r | |
66 | $(TARGET_EXE): $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj $(TARGET_EXE_LIBS) $(TARGET_DLL)\r | |
67 | $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj $(TARGET_LIB) $(TARGET_EXE_LIBS)\r | |
68 | \r | |
69 | clean:\r | |
70 | @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL\r |