summaryrefslogtreecommitdiffabout
path: root/src/Makefile.am
blob: d30eab8304b93d73bd5c046fbd76ca61f31b5738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# This file is part of GNU Pies.
# Copyright (C) 2008-2019 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 <http://www.gnu.org/licenses/>. */

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\
 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\
 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)

Return to:

Send suggestions and report system problems to the System administrator.