]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/PeiRebase/makefile
Added some checks to see if the attributes were set - clears up some warning messages...
[mirror_edk2.git] / Tools / Source / TianoTools / PeiRebase / 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:
13 #
14 # makefile
15 #
16 # Abstract:
17 #
18 # makefile for building the PeiRebase utility.
19 #
20 # Revision History
21 #
22 #--*/
23
24 #
25 # Make sure environmental variable EFI_SOURCE is set
26 #
27 !IFNDEF EFI_SOURCE
28 !ERROR EFI_SOURCE environmental variable not set
29 !ENDIF
30
31 #
32 # Do this if you want to compile from this directory
33 #
34 !IFNDEF TOOLCHAIN
35 TOOLCHAIN = TOOLCHAIN_MSVC
36 !ENDIF
37
38 !INCLUDE PlatformTools.env
39
40 #
41 # Target specific information
42 #
43
44 TARGET_NAME = PeiRebase
45 TARGET_SRC_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)
46 TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\PeiRebase.exe
47 TARGET_EXE_LIBS = $(TIANO_TOOLS_OUTPUT)\Common.lib
48
49 #
50 # Build targets
51 #
52
53 all: $(TARGET_EXE)
54
55 OBJECTS = $(TIANO_TOOLS_OUTPUT)\PeiRebase.obj
56
57 #
58 # Compile each source file
59 #
60 $(TIANO_TOOLS_OUTPUT)\PeiRebase.obj : $(TARGET_SRC_DIR)\PeiRebaseExe.c $(INC_DEPS) $(TARGET_EXE_LIBS)
61 $(CC) $(C_FLAGS) $(TARGET_SRC_DIR)\PeiRebaseExe.c /Fo$@
62
63 #
64 # Link the object files together
65 #
66 $(TARGET_EXE) : $(OBJECTS) $(TARGET_EXE_LIBS)
67 @echo LINKING
68 $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(OBJECTS) $(TARGET_EXE_LIBS)
69
70 clean:
71 @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL