summaryrefslogtreecommitdiffstats
path: root/lib/Makefile.am
blob: 3a8241768adbc0262bd1eb507bda15556bf59e6e (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
include $(top_srcdir)/Make_global.am

IPSET_SETTYPE_LIST = \
	ipset_bitmap_ip.c \
	ipset_bitmap_ipmac.c \
	ipset_bitmap_port.c \
	ipset_hash_ip.c \
	ipset_hash_ipport.c \
	ipset_hash_ipmark.c \
	ipset_hash_ipportip.c \
	ipset_hash_ipportnet.c \
	ipset_hash_net.c \
	ipset_hash_netnet.c \
	ipset_hash_netportnet.c \
	ipset_hash_netport.c \
	ipset_hash_netiface.c \
	ipset_hash_ipmac.c \
	ipset_hash_mac.c \
	ipset_list_set.c

AM_CFLAGS += ${libmnl_CFLAGS}

lib_LTLIBRARIES = libipset.la

include $(top_srcdir)/lib/Make_extra.am

libipset_la_LDFLAGS = -Wl,--version-script=$(top_srcdir)/lib/libipset.map -version-info $(LIBVERSION)
libipset_la_LIBADD  = ${libmnl_LIBS} $(IPSET_SETTYPE_STATIC_OBJECTS) $(LIBADD_DLOPEN)
libipset_la_SOURCES = \
	args.c \
	data.c \
	errcode.c \
	icmp.c \
	icmpv6.c \
	list_sort.c \
	mnl.c \
	parse.c \
	print.c \
	session.c \
	types.c \
	ipset.c \
	types_init.c

EXTRA_libipset_la_SOURCES = \
	debug.c

EXTRA_DIST = $(IPSET_SETTYPE_LIST) libipset.map

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libipset.pc

dist_man_MANS = libipset.3

sparse-check: $(libipset_la_SOURCES:.c=.d)

%.d: %.c
	$(IPSET_AM_V_CHECK)\
	$(SPARSE) $(SPARSE_FLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) $< || :