aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 474731510f1caa64f43255483b529f9da1ea4404 (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
# This file is part of GNU Pies.
# Copyright (C) 2008, 2009 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

pies_SOURCES = \
 acl.c\
 addrfmt.c\
 depmap.c\
 diag.c\
 inetd.c\
 inetd-bi.c\
 limits.c\
 meta.c\
 meta1gram.y\
 meta1lex.l\
 pies.c\
 progman.c\
 socket.c\
 url.c\
 userprivs.c

noinst_HEADERS = \
 acl.h\
 meta1gram.h\
 meta1lex.h\
 pies.h

meta1lex.c: meta1gram.h

incdir=$(pkgdatadir)/$(VERSION)/include
inc_DATA = pp-setup
EXTRA_DIST = pp-setup inetd.in

INCLUDES = \
 -I$(top_srcdir)/lib\
 -I$(top_srcdir)/gnu\
 -I$(top_builddir)/gnu\
 -I$(top_srcdir)/grecs/src

LDADD = \
 ../lib/libpies.a\
 ../grecs/src/libgrecs.a\
 ../gnu/libgnu.a\
 $(MF_PROCTITLE_LIBS)

pkgstatedir=$(localstatedir)/pies

AM_CPPFLAGS=\
 -DDEFAULT_PREPROCESSOR="$(DEFAULT_PREPROCESSOR)"\
 -DDEFAULT_VERSION_INCLUDE_DIR=\"$(incdir)\"\
 -DDEFAULT_INCLUDE_DIR=\"$(pkgdatadir)/include\"\
 -DDEFAULT_STATE_DIR=\"$(pkgstatedir)\"

AM_YFLAGS=-dvt -pmeta1
AM_LFLAGS=-dvp -Pmeta1 -olex.yy.c

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) $(pkgstatedir)

Return to:

Send suggestions and report system problems to the System administrator.