summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-05-02 10:51:55 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-05-02 10:51:55 +0200
commit18149c6ac307e089abe3dcc078fc3fccf6afc4c6 (patch)
tree8392b520773d700c876a218efdb5c9c176749d95 /lib
parentf535c61dc1e3e77ad4b5eefe4f6696514e8cf58d (diff)
downloadipset-18149c6ac307e089abe3dcc078fc3fccf6afc4c6.tar.gz
Add sparse checking support to userspace
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index fd853dd..2d22aff 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -35,3 +35,9 @@ libipset_la_SOURCES = \
types_init.c
EXTRA_DIST = $(IPSET_SETTYPE_LIST) libipset.map
+
+sparse-check: $(libipset_la_SOURCES:.c=.d)
+
+%.d: %.c
+ $(IPSET_AM_V_CHECK)\
+ $(SPARSE) $(SPARSE_FLAGS) $(AM_CFLAGS) $(AM_CPPFLAGS) $< || :