]> granicus.if.org Git - ipset/blob - lib/Makefile.am
Implement sorting for hash types in the ipset tool
[ipset] / lib / Makefile.am
1 include $(top_srcdir)/Make_global.am
2
3 IPSET_SETTYPE_LIST = \
4         ipset_bitmap_ip.c \
5         ipset_bitmap_ipmac.c \
6         ipset_bitmap_port.c \
7         ipset_hash_ip.c \
8         ipset_hash_ipport.c \
9         ipset_hash_ipmark.c \
10         ipset_hash_ipportip.c \
11         ipset_hash_ipportnet.c \
12         ipset_hash_net.c \
13         ipset_hash_netnet.c \
14         ipset_hash_netportnet.c \
15         ipset_hash_netport.c \
16         ipset_hash_netiface.c \
17         ipset_hash_ipmac.c \
18         ipset_hash_mac.c \
19         ipset_list_set.c
20
21 AM_CFLAGS += ${libmnl_CFLAGS}
22
23 lib_LTLIBRARIES = libipset.la
24
25 include $(top_srcdir)/lib/Make_extra.am
26
27 libipset_la_LDFLAGS = -Wl,--version-script=$(top_srcdir)/lib/libipset.map -version-info $(LIBVERSION)
28 libipset_la_LIBADD  = ${libmnl_LIBS} $(IPSET_SETTYPE_STATIC_OBJECTS) $(LIBADD_DLOPEN)
29 libipset_la_SOURCES = \
30         args.c \
31         data.c \
32         errcode.c \
33         icmp.c \
34         icmpv6.c \
35         list_sort.c \
36         mnl.c \
37         parse.c \
38         print.c \
39         session.c \
40         types.c \
41         ipset.c \
42         types_init.c
43
44 EXTRA_libipset_la_SOURCES = \
45         debug.c
46
47 EXTRA_DIST = $(IPSET_SETTYPE_LIST) libipset.map
48
49 pkgconfigdir = $(libdir)/pkgconfig
50 pkgconfig_DATA = libipset.pc
51
52 dist_man_MANS = libipset.3
53
54 sparse-check: $(libipset_la_SOURCES:.c=.d)
55
56 %.d: %.c
57         $(IPSET_AM_V_CHECK)\
58         $(SPARSE) $(SPARSE_FLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) $< || :