summaryrefslogtreecommitdiff
path: root/lib/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r--lib/Makefile.am53
1 files changed, 33 insertions, 20 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 92da8e0..c42b2c5 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -1,8 +1,11 @@
+#
+# libwimaxll
+#
INCLUDES = \
-I$(top_builddir)/include -I$(top_srcdir)/include \
$(LIBNL1_CFLAGS) \
- $(I2400M_INCLUDES)
+ -I $(LINUX_INCLUDE_PATH)
noinst_HEADERS = debug.h internal.h
@@ -17,6 +20,9 @@ libwimaxll_sources = \
re-state-change.c \
wimax.c
+
+
+libwimaxll_a_SOURCES = $(libwimaxll_sources)
libwimaxll_la_SOURCES = $(libwimaxll_sources)
# Trick automake
libwimaxll_la_CFLAGS = $(AM_CFLAGS)
@@ -26,28 +32,11 @@ libwimaxll_la_CFLAGS = $(AM_CFLAGS)
# AGE: inc for added interfaces
# set to zero if removed existing interfaces
libwimaxll_la_LDFLAGS = -version-info 1:0:1 $(LIBNL1_LIBS)
-libwimaxll_a_SOURCES = $(libwimaxll_sources)
-
-libwimaxll_i2400m_sources = \
- i2400m.c
-
-libwimaxll_i2400m_la_SOURCES = $(libwimaxll_i2400m_sources)
-# Trick automake
-libwimaxll_i2400m_la_CFLAGS = $(AM_CFLAGS)
-# -version-info is CURRENT:REVISION:AGE
-# CURRENT: inc for added, removed/changed interfaces
-# REVISION: inc for changes that do not affect the external interface
-# AGE: inc for added interfaces
-# set to zero if removed existing interfaces
-libwimaxll_i2400m_la_LDFLAGS = -lwimaxll -lpthread -version-info 1:0:1 $(LIBNL1_LIBS)
-libwimaxll_i2400m_a_SOURCES = $(libwimaxll_sources)
-
-lib_LTLIBRARIES = libwimaxll.la libwimaxll-i2400m.la
-lib_LIBRARIES = libwimaxll.a libwimaxll-i2400m.a
+# misc.c includes this file
BUILT_SOURCES = names-vals.h
-enum_names = \
+enum_names = \
wimax_st
CLEANFILES = names-vals.h
@@ -63,3 +52,27 @@ names-vals.h: @LINUX_INCLUDE_PATH@/linux/wimax.h enum-to-names-vals
noinst_SCRIPTS = enum-to-names-vals
EXTRA_DIST = $(noinst_SCRIPTS)
+
+lib_LTLIBRARIES = libwimaxll.la
+lib_LIBRARIES = libwimaxll.a
+
+
+#
+# libwimaxll-i2400m
+#
+libwimaxll_i2400m_sources = \
+ i2400m.c
+
+libwimaxll_i2400m_a_SOURCES = $(libwimaxll_i2400m_sources)
+libwimaxll_i2400m_la_SOURCES = $(libwimaxll_i2400m_sources)
+# Trick automake
+libwimaxll_i2400m_la_CFLAGS = $(AM_CFLAGS)
+# -version-info is CURRENT:REVISION:AGE
+# CURRENT: inc for added, removed/changed interfaces
+# REVISION: inc for changes that do not affect the external interface
+# AGE: inc for added interfaces
+# set to zero if removed existing interfaces
+libwimaxll_i2400m_la_LDFLAGS = -lwimaxll -lpthread -version-info 1:0:1 $(LIBNL1_LIBS)
+
+lib_LTLIBRARIES += libwimaxll-i2400m.la
+lib_LIBRARIES += libwimaxll-i2400m.a