summaryrefslogtreecommitdiff
path: root/lib/Makefile.am
blob: 92da8e084280d0f9064ca38bbe5be17373397d2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

INCLUDES = \
	-I$(top_builddir)/include -I$(top_srcdir)/include \
	$(LIBNL1_CFLAGS) \
	$(I2400M_INCLUDES)

noinst_HEADERS = debug.h internal.h

libwimaxll_sources = 		\
	genl.c			\
	log.c			\
	misc.c			\
	op-open.c		\
        op-msg.c		\
        op-reset.c		\
        op-rfkill.c		\
        re-state-change.c	\
	wimax.c

libwimaxll_la_SOURCES = $(libwimaxll_sources)
# Trick automake
libwimaxll_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_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

BUILT_SOURCES = names-vals.h

enum_names = \
	wimax_st

CLEANFILES = names-vals.h

names-vals.h: @LINUX_INCLUDE_PATH@/linux/wimax.h enum-to-names-vals
	rm -f $@
	echo "#include <linux/wimax.h>" > $@
	for type in $(enum_names); \
	do \
		$(srcdir)/enum-to-names-vals $$type $^; \
	done  >> $@

noinst_SCRIPTS = enum-to-names-vals

EXTRA_DIST = $(noinst_SCRIPTS)