]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/TianoTools/GenAcpiTable/Makefile
Adding Additional Tools that are needed for Platform Image creation.
[mirror_edk2.git] / Tools / Source / TianoTools / GenAcpiTable / Makefile
diff --git a/Tools/Source/TianoTools/GenAcpiTable/Makefile b/Tools/Source/TianoTools/GenAcpiTable/Makefile
new file mode 100644 (file)
index 0000000..c4df9bc
--- /dev/null
@@ -0,0 +1,68 @@
+#/*++\r
+#  \r
+#  Copyright (c) 2002 Intel Corporation.  All rights reserved.\r
+#\r
+#  This software and associated documentation (if any) is furnished under \r
+#  a license and may only be used or copied in accordance with the terms \r
+#  of the license.  Except as permitted by such license, no part of this \r
+#  software or documentation may be reproduced, stored in a retrieval \r
+#  system, or transmitted in any form or by any means without the express \r
+#  written consent of Intel Corporation.\r
+#  \r
+#  Module Name:\r
+#  \r
+#    makefile\r
+#    \r
+#  Abstract:\r
+#  \r
+#    makefile for building the GenAcpiTable utility.\r
+#  \r
+#--*/\r
+\r
+#\r
+# Make sure environmental variable EFI_SOURCE is set\r
+#\r
+!IFNDEF EFI_SOURCE\r
+!ERROR EFI_SOURCE environmental variable not set \r
+!ENDIF\r
+\r
+#\r
+# Define the toolchain which is used to set build options and toolchain paths\r
+#\r
+TOOLCHAIN = TOOLCHAIN_MSVC\r
+\r
+!INCLUDE PlatformTools.env\r
+\r
+#\r
+# Target specific information\r
+#\r
+\r
+TARGET_NAME         = GenAcpiTable\r
+TARGET_SRC_DIR      = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)\r
+TARGET_EXE          = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).exe\r
+\r
+#\r
+# Build targets\r
+#\r
+\r
+all: $(TARGET_EXE)\r
+\r
+OBJECTS   = $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj \r
+\r
+LIBS      = $(TIANO_TOOLS_OUTPUT)\Common.lib\r
+\r
+INC_DEPS  = $(EDK_SOURCE)\Foundation\Efi\Include\EfiImage.h\r
+          \r
+#\r
+# Build the EXE by compiling the source files, then linking the resultant\r
+# object files together.\r
+#\r
+\r
+$(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).obj : $(TARGET_SRC_DIR)\$(TARGET_NAME).c $(INC_DEPS)\r
+  $(CC) $(C_FLAGS) $(TARGET_SRC_DIR)\$(TARGET_NAME).c /Fo$@\r
+\r
+$(TARGET_EXE): $(OBJECTS) $(TARGET_EXE_LIBS)\r
+  $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(OBJECTS)\r
+\r
+clean:\r
+  @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL\r