4 # This file is part of chiark-utils, a collection of useful utilities
7 # Copyright (C) 1997-1998,2000-2001 Ian Jackson <ian@chiark.greenend.org.uk>
9 # This is free software; you can redistribute it and/or modify it under the
10 # terms of the GNU General Public License as published by the Free Software
11 # Foundation; either version 3, or (at your option) any later version.
13 # This is distributed in the hope that it will be useful, but WITHOUT ANY
14 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18 # You should have received a copy of the GNU General Public License along
19 # with this program; if not, consult the Free Software Foundation's
20 # website at www.fsf.org, or the GNU Project website at www.gnu.org.
22 CONFIG_CPPFLAGS= -DRWBUFFER_SIZE_MB=$(RWBUFFER_SIZE_MB) \
23 -DREALLY_CHECK_FILE='"/etc/inittab"'
26 CFLAGS= $(WARNINGS) $(OPTIMISE) $(DEBUG)
27 CPPFLAGS= $(CONFIG_CPPFLAGS)
29 WARNINGS= -Wall -Wwrite-strings -Wmissing-prototypes \
30 -Wstrict-prototypes -Wpointer-arith
40 confdir=$(etcdir)/$(us)
42 sbindir=$(prefix)/sbin
43 sharedir=$(prefix)/share/$(us)
44 txtdocdir=$(prefix)/share/doc/$(us)
45 exampledir=$(txtdocdir)/examples
46 vardir=$(varlib)/$(us)
48 man1dir=${mandir}/man1
49 man8dir=${mandir}/man8
51 # INSTALL_PROGRAM_STRIP_OPT=-s
54 INSTALL_SHARE= $(INSTALL) -m 644 -o root -g $(SYSTEM_GROUP)
55 INSTALL_SCRIPT= $(INSTALL) -m 755 -o root -g $(SYSTEM_GROUP)
56 INSTALL_PROGRAM= $(INSTALL_SCRIPT) $(INSTALL_PROGRAM_STRIP_OPT)
57 INSTALL_DIRECTORY= $(INSTALL) -m 2755 -o root -g $(SYSTEM_GROUP) -d