ipif: "include" looks for the file in the directory where "include" appears
[userv-utils] / settings.make
CommitLineData
6362f12c 1# common makefile settings for userv-utils
2
be9d5573 3# Copyright 1996-2013,2016 Ian Jackson <ijackson@chiark.greenend.org.uk>
9028e234
IJ
4# Copyright 1998 David Damerell <damerell@chiark.greenend.org.uk>
5# Copyright 1999,2003
6# Chancellor Masters and Scholars of the University of Cambridge
7# Copyright 2010 Tony Finch <fanf@dotat.at>
6362f12c 8#
9# This is free software; you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by
9028e234 11# the Free Software Foundation; either version 3 of the License, or
6362f12c 12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
9028e234 20# along with userv-utils; if not, see http://www.gnu.org/licenses/.
6362f12c 21
22etcdir= /etc
23prefix= /usr/local
24bindir= $(prefix)/bin
5e5500ed 25sbindir= $(prefix)/sbin
6362f12c 26vardir= /var
27
28libdir= $(prefix)/lib
29sharedir= $(prefix)/share
30
31docdir= $(sharedir)/doc
32
33libuserv= $(libdir)/userv
34shareuserv= $(sharedir)/userv
70b9d2e0 35varlog= $(vardir)/log
6362f12c 36varlib= $(vardir)/lib
37varlibuserv= $(varlib)/userv
38
39etcuserv= $(etcdir)/userv
40services= $(etcuserv)/services.d
41
42CFLAGS= -Wall -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes \
33e8a62b 43 -Wpointer-arith -D_GNU_SOURCE -Wno-pointer-sign \
6362f12c 44 $(OPTIMISE) $(DEBUG) $(SUBDIR_CFLAGS)
477d9486 45LDFLAGS= $(SUBDIR_LDFLAGS) $(DEBUG)
6362f12c 46
47OPTIMISE= -O2
48DEBUG= -g
49
84e9bd3c
IJ
50depr ?= disable
51# set depr to '' to enable deprecated output