summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 438fcec0f1f100052b4d5c8d0786d27a759913e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
include $(top_srcdir)/Make_global.am

sbin_PROGRAMS	= ipset
ipset_SOURCES	= ipset.c
ipset_LDADD	= ../lib/libipset.la

if ENABLE_SETTYPE_MODULES
AM_LDFLAGS  = -shared
else
if ENABLE_STATIC
AM_LDFLAGS	= -static
endif
endif

dist_man_MANS = ipset.8

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

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