# This file is part of GNU Pies. # Copyright (C) 2008-2020 Sergey Poznyakoff # # GNU Pies is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # GNU Pies is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Pies. If not, see . */ sbin_PROGRAMS = pies bin_PROGRAMS = piesctl pies_SOURCES = \ acl.c\ comp.c\ ctl.c\ depmap.c\ diag.c\ inetd.c\ inetd-bi.c\ limits.c\ meta1parse.c\ pies.c\ progman.c\ socket.c\ syslog.c\ userprivs.c if PIES_COND_SYSVINIT pies_SOURCES += \ sysvinit.c\ sysdep.c\ utmp.c endif noinst_HEADERS = \ acl.h\ cmdline.h\ meta1parse.h\ pies.h\ pies_syslog.h\ prog.h\ piesctl-cl.h\ telinit.h BUILT_SOURCES=cmdline.h piesctl-cl.h telinit.h incdir=$(pkgdatadir)/$(VERSION)/include inc_DATA = pp-setup EXTRA_DIST = cmdline.opt piesctl-cl.opt telinit.opt pp-setup inetd.in SUFFIXES=.opt .c .h .opt.h: $(AM_V_GEN)m4 -s $(top_srcdir)/@GRECS_SUBDIR@/build-aux/getopt.m4 $< > $@ cmdline.h: cmdline.opt piesctl-cl.h: piesctl-cl.opt telinit.h: telinit.opt pies_LDADD = \ ../ident/libident.a\ ../lib/libpies.a\ @GRECS_LDADD@\ ../gnu/libgnu.a\ $(MF_PROCTITLE_LIBS)\ @PAM_LIBS@\ $(LTLIBINTL) $(LTLIBICONV) piesctl_SOURCES = piesctl.c piesctl_LDADD = \ ../lib/libpies.a\ @GRECS_LDADD@\ ../gnu/libgnu.a\ $(LTLIBINTL) $(LTLIBICONV) pkgstatedir=$(localstatedir)/pies AM_CPPFLAGS=\ -I$(top_srcdir)/lib\ -I$(top_srcdir)/ident\ -I$(top_srcdir)/gnu\ -I$(top_builddir)/gnu\ @GRECS_INCLUDES@\ -DDEFAULT_PREPROCESSOR="$(DEFAULT_PREPROCESSOR)"\ -DDEFAULT_VERSION_INCLUDE_DIR=\"$(incdir)\"\ -DDEFAULT_INCLUDE_DIR=\"$(pkgdatadir)/include\"\ -DDEFAULT_STATE_DIR=\"$(pkgstatedir)\"\ -DDEFAULT_PIES_CONTROL_URL='"$(DEFAULT_PIES_CONTROL_URL)"'\ -DDEFAULT_INIT_CONTROL_URL='"$(DEFAULT_INIT_CONTROL_URL)"'\ -DEMERGENCY_SHELL='"$(EMERGENCY_SHELL)"' EXTRA_SCRIPTS = inetd sbin_SCRIPTS = @INETD@ inetd: inetd.in $(AM_V_GEN)sed 's|_SBINDIR_|$(sbindir)|' \ $(top_srcdir)/src/inetd.in > $(top_builddir)/src/inetd install-data-hook: test -d $(DESTDIR)$(pkgstatedir) || $(MKDIR_P) $(DESTDIR)$(pkgstatedir)