# along with userv; if not, write to the Free Software
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-VERSION=0.58
+VERSION=
VEREXT=std
CC=gcc
-CFLAGS=-g $(OPTIMISE) -Wall -Wno-implicit -Wwrite-strings -Wpointer-arith -Wimplicit -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -Werror $(XCFLAGS) -DVERSION='"$(VERSION)"' -DVEREXT='"$(VEREXT)"'
+CFLAGS=-g $(OPTIMISE) -D_GNU_SOURCE -Wall -Wno-implicit -Wwrite-strings -Wpointer-arith -Wimplicit -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -Werror $(XCFLAGS) -DVERSION='"$(VERSION)"' -DVEREXT='"$(VEREXT)"'
OPTIMISE=-O2
-CPPFLAGS=-DDEBUG -DVARDIR='"/u/ian/things/userv/vd"' -DSYSTEMCONFIGDIR='"/u/ian/things/userv/slash-etc"' -DSERVICEUSERDIR='"/u/ian/things/userv/tilde"' $(XCPPFLAGS)
+CPPFLAGS=-DDEBUG -DVARDIR='"/u/ian/things/userv-alt/vd"' -DSYSTEMCONFIGDIR='"/u/ian/things/userv-alt/slash-etc"' -DSERVICEUSERDIR='"/u/ian/things/userv-alt/tilde"' $(XCPPFLAGS)
LDLIBS=-lefence $(XLDLIBS)
M4=m4
install: all
$(INSTALL_PROGRAM) -s -o root -g root -m 755 daemon $(sbindir)/uservd
$(INSTALL_PROGRAM) -s -o root -g root -m 4755 client $(bindir)/userv
- $(INSTALL) -d -o root -g root -m 2755 $(etcsubdir)
+ $(INSTALL) -d -o root -g root -m 2755 $(etcsubdir) \
+ $(etcsubdir)/default.d $(etcsubdir)/services.d $(etcsubdir)/override.d
if ! test -f $(etcsubdir)/system.default; then \
$(INSTALL_DATA) -o root -g root system.default $(etcsubdir); fi
if ! test -f $(etcsubdir)/system.override; then \