From 0a3c58a092024de34fce41b5c99e3c0ab756ece9 Mon Sep 17 00:00:00 2001
From: Laszlo Ersek <lersek@redhat.com>
Date: Wed, 21 Oct 2015 11:08:59 +0200
Subject: add custom Makefile for EfiRom (RHEL only)
Message-id: <1410295825-13989-3-git-send-email-lersek@redhat.com>
Patchwork-id: 60928
O-Subject: [RHEL-7.1 ipxe PATCH 2/4] add custom Makefile for EfiRom (RHEL only)
Bugzilla: 1084561
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
The build flags have been captured from the BaseTools build log.
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
(cherry picked from commit a20ead07b711057d778645392fdda048f83cd321)
---
EfiRom/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 EfiRom/Makefile
diff --git a/EfiRom/Makefile b/EfiRom/Makefile
new file mode 100644
index 0000000..30914d9
--- /dev/null
+++ b/EfiRom/Makefile
@@ -0,0 +1,43 @@
+.POSIX:
+
+CFLAGS = -fshort-wchar -fno-strict-aliasing -I Common -I Include -I Include/X64
+LDFLAGS = -s
+
+EfiRom: EfiRom.o CommonLib.o EfiUtilityMsgs.o ParseInf.o EfiCompress.o
+ $(CC) -o EfiRom $(LDFLAGS) EfiRom.o CommonLib.o EfiUtilityMsgs.o \
+ ParseInf.o EfiCompress.o
+
+EfiRom.o: EfiRom.c Common/EfiUtilityMsgs.h Include/Common/UefiBaseTypes.h \
+ Include/Common/BaseTypes.h Include/X64/ProcessorBind.h Common/ParseInf.h \
+ Common/MemoryFile.h EfiRom.h Include/IndustryStandard/PeImage.h \
+ Include/IndustryStandard/pci22.h Include/IndustryStandard/pci23.h \
+ Include/IndustryStandard/pci30.h Include/IndustryStandard/EfiPci.h \
+ Include/IndustryStandard/pci30.h Common/Compress.h Common/CommonLib.h \
+ Include/Common/BuildVersion.h Common/CommonLib.h
+ $(CC) $(CFLAGS) -c EfiRom.c
+
+CommonLib.o: Common/CommonLib.c Common/CommonLib.h \
+ Include/Common/UefiBaseTypes.h Include/Common/BaseTypes.h \
+ Include/X64/ProcessorBind.h Include/Common/BuildVersion.h \
+ Common/EfiUtilityMsgs.h
+ $(CC) $(CFLAGS) -c Common/CommonLib.c
+
+EfiUtilityMsgs.o: Common/EfiUtilityMsgs.c Common/EfiUtilityMsgs.h \
+ Include/Common/UefiBaseTypes.h Include/Common/BaseTypes.h \
+ Include/X64/ProcessorBind.h
+ $(CC) $(CFLAGS) -c Common/EfiUtilityMsgs.c
+
+ParseInf.o: Common/ParseInf.c Common/EfiUtilityMsgs.h \
+ Include/Common/UefiBaseTypes.h Include/Common/BaseTypes.h \
+ Include/X64/ProcessorBind.h Common/ParseInf.h Common/MemoryFile.h \
+ Common/CommonLib.h Include/Common/BuildVersion.h
+ $(CC) $(CFLAGS) -c Common/ParseInf.c
+
+EfiCompress.o: Common/EfiCompress.c Common/Compress.h Common/CommonLib.h \
+ Include/Common/UefiBaseTypes.h Include/Common/BaseTypes.h \
+ Include/X64/ProcessorBind.h Include/Common/BuildVersion.h
+ $(CC) $(CFLAGS) -c Common/EfiCompress.c
+
+clean:
+ rm -f EfiRom EfiRom.o CommonLib.o EfiUtilityMsgs.o ParseInf.o \
+ EfiCompress.o
--
1.8.3.1