oping.h: Use `extern "C"' if `__cplusplus' is defined.
[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 liboping_la_LDFLAGS = -version-info 0:3:0
13 if BUILD_WITH_LIBSOCKET
14 liboping_la_LDFLAGS += -lsocket
15 endif
16 liboping_la_SOURCES = oping.h liboping.c
17
18 bin_PROGRAMS = oping
19
20 oping_SOURCES = oping.c
21 oping_LDADD = liboping.la
22 oping_LDFLAGS = -lm
23 if BUILD_WITH_LIBRT
24 oping_LDFLAGS += -lrt
25 endif