diff mbox

[API-NEXT,RFC,24/31] drivers: ixgbe: building base files

Message ID 1452285014-60320-25-git-send-email-christophe.milard@linaro.org
State New
Headers show

Commit Message

Christophe Milard Jan. 8, 2016, 8:30 p.m. UTC
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
---
 drivers/Makefile.am            |  4 ++++
 drivers/ixgbe/Makefile.am      |  7 +++++++
 drivers/ixgbe/base/Makefile.am | 21 +++++++++++++++++++++
 drivers/m4/configure.m4        |  2 ++
 4 files changed, 34 insertions(+)
 create mode 100644 drivers/ixgbe/Makefile.am
 create mode 100644 drivers/ixgbe/base/Makefile.am
diff mbox

Patch

diff --git a/drivers/Makefile.am b/drivers/Makefile.am
index 9f922a8..477ee62 100644
--- a/drivers/Makefile.am
+++ b/drivers/Makefile.am
@@ -2,5 +2,9 @@  INCFLAGS = -I$(top_srcdir)/platform/@with_platform@/include \
 	-I$(top_srcdir)/platform/linux-generic/include \
 	-I$(top_srcdir)/include
 
+SUBDIRS = ixgbe
+
 noinst_LTLIBRARIES = libdrivers.la
 libdrivers_la_SOURCES = driver_init.c
+
+libdrivers_la_LIBADD = ixgbe/libixgbe.la
diff --git a/drivers/ixgbe/Makefile.am b/drivers/ixgbe/Makefile.am
new file mode 100644
index 0000000..2c7f1f7
--- /dev/null
+++ b/drivers/ixgbe/Makefile.am
@@ -0,0 +1,7 @@ 
+include ../Makefile.inc
+noinst_LTLIBRARIES = libixgbe.la
+
+SUBDIRS = base
+
+libixgbe_la_SOURCES =
+libixgbe_la_LIBADD = base/libixgbe_base.la
diff --git a/drivers/ixgbe/base/Makefile.am b/drivers/ixgbe/base/Makefile.am
new file mode 100644
index 0000000..a47486a
--- /dev/null
+++ b/drivers/ixgbe/base/Makefile.am
@@ -0,0 +1,21 @@ 
+include ../../Makefile.inc
+
+#the base files generates a lot of warnings but should not be changed
+#we are doomed to ignore them:
+AM_CFLAGS += -w
+
+noinst_LTLIBRARIES = libixgbe_base.la
+
+libixgbe_base_la_SOURCES = ixgbe_82598.c \
+			   ixgbe_82599.c \
+			   ixgbe_api.c \
+			   ixgbe_common.c \
+			   ixgbe_dcb_82598.c \
+			   ixgbe_dcb_82599.c \
+			   ixgbe_dcb.c \
+			   ixgbe_mbx.c \
+			   ixgbe_phy.c \
+			   ixgbe_vf.c \
+			   ixgbe_x540.c \
+			   ixgbe_x550.c
+
diff --git a/drivers/m4/configure.m4 b/drivers/m4/configure.m4
index cca047a..ad5814d 100644
--- a/drivers/m4/configure.m4
+++ b/drivers/m4/configure.m4
@@ -1,3 +1,5 @@ 
 AC_CONFIG_FILES([
 		 drivers/Makefile
+		 drivers/ixgbe/Makefile
+		 drivers/ixgbe/base/Makefile
 		])