]>
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 | # Target specific information\r | |
31 | #\r | |
32 | \r | |
33 | TARGET_NAME = SecFixup\r | |
34 | TARGET_SOURCE_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)\r | |
35 | TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe\r | |
36 | TARGET_EXE_SOURCE = $(TARGET_SOURCE_DIR)\$(TARGET_NAME).c\r | |
37 | \r | |
38 | #\r | |
39 | # Build targets\r | |
40 | #\r | |
41 | \r | |
42 | all: $(TARGET_EXE)\r | |
43 | \r | |
44 | OBJECTS = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj \r | |
45 | \r | |
46 | #\r | |
47 | # Build EXE\r | |
48 | #\r | |
49 | \r | |
50 | $(OBJECTS) : $(TARGET_EXE_SOURCE) $(INC_DEPS)\r | |
51 | $(CC) $(C_FLAGS) $(TARGET_EXE_SOURCE) /Fo$@\r | |
52 | \r | |
53 | $(TARGET_EXE): $(OBJECTS)\r | |
54 | $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(OBJECTS) $(LIBS) /out:$(TARGET_EXE)\r | |
55 | \r | |
56 | clean:\r | |
57 | @if exist $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(EDK_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL\r |