4dc11f9d16a3820888dad31ade882006a614c3ca
[liboping.git] / src / Makefile.am
1 AUTOMAKE_OPTIONS = foreign no-dependencies
2
3 SUBDIRS = mans
4
5 if COMPILER_IS_GCC
6 AM_CFLAGS = -Wall -Werror
7 endif
8
9 include_HEADERS = oping.h
10 lib_LTLIBRARIES = liboping.la
11
12 # version-info: current:revision:age
13 #
14 # * If the library source code has changed at all since the last update, then
15 #   increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
16 # * If any interfaces have been added, removed, or changed since the last
17 #   update, increment current, and set revision to 0.
18 # * If any interfaces have been added since the last public release, then
19 #   increment age.
20 # * If any interfaces have been removed since the last public release, then
21 #   set age to 0. 
22 #
23 # <http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html>
24 liboping_la_LDFLAGS = -version-info 1:0:1
25 if BUILD_WITH_LIBSOCKET
26 liboping_la_LDFLAGS += -lsocket
27 endif
28 liboping_la_SOURCES = oping.h liboping.c
29
30 bin_PROGRAMS = oping
31
32 oping_SOURCES = oping.c
33 oping_LDADD = liboping.la
34 oping_LDFLAGS = -lm
35 if BUILD_WITH_LIBRT
36 oping_LDFLAGS += -lrt
37 endif