1 ## Process this file with automake to produce Makefile.in
4 NP_VERSION = @NP_RELEASE@
6 NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
7 @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN
8 .FORCE-NP-VERSION-FILE:
9 -include NP-VERSION-FILE
12 AM_CFLAGS = -DNP_VERSION='"$(NP_VERSION)"'
14 VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t $(srcdir)
16 AM_CPPFLAGS = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins @SSLINCLUDE@
18 localedir = $(datadir)/locale
19 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
20 # Don't add LTLIBINTL to all, as pst3 doesn't need it
21 #LIBS = @LTLIBINTL@ @LIBS@
23 noinst_PROGRAMS = check_dhcp check_icmp @EXTRAS_ROOT@
29 BASEOBJS = ../plugins/utils.o ../lib/libmonitoringplug.a ../gl/libgnu.a
30 NETOBJS = ../plugins/netutils.o $(BASEOBJS) $(EXTRA_NETOBJS)
31 NETLIBS = $(NETOBJS) $(SOCKETLIBS)
33 TESTS_ENVIRONMENT = perl -I $(top_builddir) -I $(top_srcdir)
38 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
41 NPTEST_DEBUG=1 HARNESS_VERBOSE=1 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
43 setuid_root_mode = ug=rx,u+s
45 # /* Author Coreutils team - see ACKNOWLEDGEMENTS */
48 for f in $(noinst_PROGRAMS) ; do \
50 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \
51 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \
52 echo " chown root $(DESTDIR)$(libexecdir)/$$p"; \
53 chown root $(DESTDIR)$(libexecdir)/$$p; \
54 echo " chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p"; \
55 chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \
58 install-root: $(noinst_PROGRAMS)
61 install-exec-local: $(noinst_PROGRAMS)
62 @TMPFILE=$(DESTDIR)$(libexecdir)/.setuid-$$$$; \
65 ## See if we can create a setuid root executable in $(libexecdir).
66 ## If not, then don't even try to install setuid plugins.
67 can_create_suid_root_executable=no; \
68 chown root $$TMPFILE > /dev/null 2>&1 \
69 && chmod $(setuid_root_mode) $$TMPFILE > /dev/null 2>&1 \
70 && can_create_suid_root_executable=yes; \
72 if test $$can_create_suid_root_executable = yes; then \
75 echo "WARNING: insufficient access; not installing setuid plugins"; \
76 echo "NOTE: to install setuid plugins, run 'make install-root' as root"; \
79 # /* Author Coreutils team sub-citation */
81 ##############################################################################
83 check_dhcp_LDADD = @LTLIBINTL@ $(NETLIBS) $(LIB_CRYPTO)
84 check_icmp_LDADD = @LTLIBINTL@ $(NETLIBS) $(SOCKETLIBS) $(LIB_CRYPTO)
86 # -m64 needed at compiler and linker phase
87 pst3_CFLAGS = @PST3CFLAGS@
88 pst3_LDFLAGS = @PST3CFLAGS@
89 # pst3 must not use monitoringplug/gnulib includes!
92 check_dhcp_DEPENDENCIES = check_dhcp.c $(NETOBJS) $(DEPLIBS)
93 check_icmp_DEPENDENCIES = check_icmp.c $(NETOBJS)