X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2FMakefile.am;h=d4112095a608dcff22e8fc681ca53c0775d50084;hb=4f07a3a56e31c0154bd2374b8e25c0439e619b50;hp=12c92c9d87c948c198fd543942802ccf61eaf48f;hpb=ae248f74a3c30f1a5c118b3ac49b6f5360c2d66f;p=liboping.git diff --git a/src/Makefile.am b/src/Makefile.am index 12c92c9..d411209 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,10 +9,26 @@ endif include_HEADERS = oping.h lib_LTLIBRARIES = liboping.la -liboping_la_LDFLAGS = -version-info 0:3:0 +# version-info: current:revision:age +# +# * If the library source code has changed at all since the last update, then +# increment revision (‘c:r:a’ becomes ‘c:r+1:a’). +# * If any interfaces have been added, removed, or changed since the last +# update, increment current, and set revision to 0. +# * If any interfaces have been added since the last public release, then +# increment age. +# * If any interfaces have been removed since the last public release, then +# set age to 0. +# +# +liboping_la_LDFLAGS = -version-info @LIBOPING_CURRENT@:@LIBOPING_REVISION@:@LIBOPING_AGE@ if BUILD_WITH_LIBSOCKET liboping_la_LDFLAGS += -lsocket endif +if BUILD_WITH_LIBXNET +liboping_la_LDFLAGS += -lxnet +endif + liboping_la_SOURCES = oping.h liboping.c bin_PROGRAMS = oping @@ -23,3 +39,15 @@ oping_LDFLAGS = -lm if BUILD_WITH_LIBRT oping_LDFLAGS += -lrt endif + +if BUILD_WITH_LIBNCURSES +bin_PROGRAMS += noping + +noping_SOURCES = oping.c +noping_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_NCURSES=1 +noping_LDADD = liboping.la +noping_LDFLAGS = -lm -lncurses +if BUILD_WITH_LIBRT +noping_LDFLAGS += -lrt +endif +endif # BUILD_WITH_LIBNCURSES