index 9ad4d6658b6f09de56dfcb9aba9459cd3f2af365..36b7943c77557090a7b1f2f3cecc35165d699ca7 100644 (file)
--- a/src/liboping/Makefile.am
+++ b/src/liboping/Makefile.am
AUTOMAKE_OPTIONS = foreign no-dependencies
+if COMPILER_IS_GCC
+AM_CFLAGS = -Wall -Werror
+endif
+
+EXTRA_DIST = AUTHORS COPYING ChangeLog README
+
noinst_LTLIBRARIES = liboping.la
#liboping_la_CFLAGS =
liboping_la_LDFLAGS = -avoid-version
-liboping_la_SOURCES = liboping.h liboping.c
+if BUILD_WITH_LIBSOCKET
+liboping_la_LDFLAGS += -lsocket
+endif
+liboping_la_SOURCES = liboping.c oping.h