1 # common makefile settings for userv-utils
3 # Copyright 1996-2013,2016 Ian Jackson <ijackson@chiark.greenend.org.uk>
4 # Copyright 1998 David Damerell <damerell@chiark.greenend.org.uk>
6 # Chancellor Masters and Scholars of the University of Cambridge
7 # Copyright 2010 Tony Finch <fanf@dotat.at>
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
11 # the Free Software Foundation; either version 3 of the License, or
12 # (at your option) any later version.
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.
19 # You should have received a copy of the GNU General Public License
20 # along with userv-utils; if not, see http://www.gnu.org/licenses/.
25 sbindir= $(prefix)/sbin
29 sharedir= $(prefix)/share
31 docdir= $(sharedir)/doc
33 libuserv= $(libdir)/userv
34 shareuserv= $(sharedir)/userv
37 varlibuserv= $(varlib)/userv
39 etcuserv= $(etcdir)/userv
40 services= $(etcuserv)/services.d
42 CFLAGS= -Wall -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes \
43 -Wpointer-arith -D_GNU_SOURCE -Wno-pointer-sign \
44 $(OPTIMISE) $(DEBUG) $(SUBDIR_CFLAGS)
45 LDFLAGS= $(SUBDIR_LDFLAGS) $(DEBUG)
51 # set depr to '' to enable deprecated output