summaryrefslogtreecommitdiff
path: root/Tools/Source/TianoTools/EfiRom/Makefile
diff options
context:
space:
mode:
authorlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-19 02:38:56 +0000
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>2006-05-19 02:38:56 +0000
commitd25c4bf080b9820d15b7c329cf42775010dbcc56 (patch)
treefddbcf8d4a8d5a7730f9dc5a44b09efba8d50e33 /Tools/Source/TianoTools/EfiRom/Makefile
parent291a871a27d0bbcebede5b62a5e23d03f20a54fc (diff)
downloadedk2-platforms-d25c4bf080b9820d15b7c329cf42775010dbcc56.tar.xz
Adding Additional Tools that are needed for Platform Image creation.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@198 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/TianoTools/EfiRom/Makefile')
-rw-r--r--Tools/Source/TianoTools/EfiRom/Makefile70
1 files changed, 70 insertions, 0 deletions
diff --git a/Tools/Source/TianoTools/EfiRom/Makefile b/Tools/Source/TianoTools/EfiRom/Makefile
new file mode 100644
index 0000000000..5ba3607549
--- /dev/null
+++ b/Tools/Source/TianoTools/EfiRom/Makefile
@@ -0,0 +1,70 @@
+#/*++
+#
+# Copyright (c) 2001 Intel Corporation. All rights reserved.
+#
+# This software and associated documentation (if any) is furnished under
+# a license and may only be used or copied in accordance with the terms
+# of the license. Except as permitted by such license, no part of this
+# software or documentation may be reproduced, stored in a retrieval
+# system, or transmitted in any form or by any means without the express
+# written consent of Intel Corporation.
+#
+# Module Name:
+#
+# makefile
+#
+# Abstract:
+#
+# makefile for building the EfiRom utility.
+#
+# Revision History
+#
+#--*/
+
+#
+# Make sure environmental variable EFI_SOURCE is set
+#
+!IFNDEF EFI_SOURCE
+!ERROR EFI_SOURCE environmental variable not set
+!ENDIF
+
+#
+# Define the toolchain which is used to set build options and toolchain paths
+#
+TOOLCHAIN = TOOLCHAIN_MSVC
+
+!INCLUDE PlatformTools.env
+
+#
+# Target specific information
+#
+
+TARGET_NAME = EfiRom
+TARGET_SRC_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)
+TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\EfiRom.exe
+
+#
+# Build targets
+#
+
+all: $(TARGET_EXE)
+
+OBJECTS = $(TIANO_TOOLS_OUTPUT)\EfiRom.obj \
+ $(TIANO_TOOLS_OUTPUT)\EfiCompress.obj
+
+#
+# Build the EXE by compiling the source files, then linking the resultant
+# object files together.
+#
+
+$(TIANO_TOOLS_OUTPUT)\EfiRom.obj : $(TARGET_SRC_DIR)\EfiRom.c
+ $(CC) $(C_FLAGS) $(TARGET_SRC_DIR)\EfiRom.c /Fo$@
+
+$(TIANO_TOOLS_OUTPUT)\EfiCompress.obj : $(EDK_TOOLS_SOURCE)\Common\EfiCompress.c
+ $(CC) $(C_FLAGS) $(EDK_TOOLS_SOURCE)\Common\EfiCompress.c /Fo$@
+
+$(TARGET_EXE): $(OBJECTS) $(TARGET_EXE_LIBS)
+ $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(OBJECTS)
+
+clean:
+ @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL