+# This is _NOT_ the library release version, it's an API version.
+# Please read Chapter 6 "Library interface versions" of the libtool documentation before making any modification
+LIBVERSION=1:0:0
INCLUDES = $(all_includes) -I$(top_srcdir)/include -I${KERNELDIR}
AM_CFLAGS=-fPIC -Wall
lib_LTLIBRARIES = libnetfilter_queue.la libnetfilter_queue_libipq.la
-libnetfilter_queue_la_LDFLAGS = -Wc,-nostartfiles -lnfnetlink
+libnetfilter_queue_la_LDFLAGS = -Wc,-nostartfiles -lnfnetlink \
+ -version-info $(LIBVERSION)
libnetfilter_queue_la_SOURCES = libnetfilter_queue.c
-libnetfilter_queue_libipq_la_LDFLAGS = -Wc,-nostartfiles
+libnetfilter_queue_libipq_la_LDFLAGS = -Wc,-nostartfiles \
+ -version-info 1:0:0
+libnetfilter_queue_libipq_la_LIBADD = ./libnetfilter_queue.la
libnetfilter_queue_libipq_la_SOURCES = libipq_compat.c