"Fossies" - the Fresh Open Source Software Archive

Member "liboping-1.10.0/src/Makefile.am" (11 May 2017, 1792 Bytes) of package /linux/privat/liboping-1.10.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 1.9.0_vs_1.10.0.

    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_SOURCES = oping.h liboping.c
   25 
   26 liboping_la_CPPFLAGS = $(AM_CPPFLAGS)
   27 liboping_la_LDFLAGS = $(AM_LDFLAGS) -version-info @LIBOPING_CURRENT@:@LIBOPING_REVISION@:@LIBOPING_AGE@
   28 liboping_la_LIBADD = $(LIBOPING_PC_LIBS_PRIVATE)
   29 
   30 pkgconfig_DATA = liboping.pc
   31 
   32 MOSTLYCLEANFILES = $(pkgconfig_DATA)
   33 
   34 bin_PROGRAMS = oping
   35 
   36 oping_SOURCES = oping.c
   37 oping_LDADD = liboping.la -lm
   38 
   39 if BUILD_WITH_LIBNCURSES
   40 bin_PROGRAMS += noping
   41 
   42 noping_SOURCES = oping.c
   43 noping_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_NCURSES=1 $(NCURSES_CFLAGS)
   44 noping_LDADD = liboping.la -lm $(NCURSES_LIBS)
   45 endif # BUILD_WITH_LIBNCURSES
   46 
   47 install-exec-hook:
   48 	@if test "x0" = "x$$UID"; then \
   49 		if test "xLinux" = "x`uname -s`"; then \
   50 			echo "Setting CAP_NET_RAW capability on binaries."; \
   51 			setcap cap_net_raw=ep $(DESTDIR)$(bindir)/oping || true; \
   52 			setcap cap_net_raw=ep $(DESTDIR)$(bindir)/noping || true; \
   53 		else \
   54 			echo "Setting set-UID bit on binaries."; \
   55 			chmod u+s $(DESTDIR)$(bindir)/oping || true; \
   56 			chmod u+s $(DESTDIR)$(bindir)/noping || true; \
   57 		fi; \
   58 	fi