davfs2/src/Makefile.am

66 lines
2.5 KiB
Makefile
Raw Normal View History

2009-04-14 19:54:53 +00:00
## Makefile for program src directory in davfs.
## Copyright (C) 2006, 2007, 2008, 2009 Werner Baumann
##
## This file is part of davfs2.
##
## davfs2 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 of the License, or
## (at your option) any later version.
##
## davfs2 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 davfs2; if not, write to the Free Software Foundation,
## Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
## Process this file with automake to produce Makefile.in
localedir = $(datadir)/locale
pkgsysconfdir = $(sysconfdir)/@PACKAGE@
pkglocalstatedir = $(dav_localstatedir)/mount.davfs
pkgsyscachedir = $(dav_syscachedir)/@PACKAGE@
ssbindir = @ssbindir@
sbin_PROGRAMS = mount.davfs umount.davfs
mount_davfs_SOURCES = cache.c dav_coda.c \
dav_fuse.c kernel_interface.c mount_davfs.c webdav.c \
cache.h coda.h defaults.h fuse_kernel.h \
kernel_interface.h mount_davfs.h webdav.h
umount_davfs_SOURCES = umount_davfs.c defaults.h
2012-01-14 10:05:21 +00:00
AM_CPPFLAGS = -I$(top_builddir)/gl -I$(top_srcdir)/gl
2009-04-14 19:54:53 +00:00
AM_CFLAGS = -Wall
DEFS = -DPROGRAM_NAME=\"mount.davfs\" \
-DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \
-DDAV_SYS_RUN=\"$(pkglocalstatedir)\" \
-DDAV_SYS_CACHE=\"$(pkgsyscachedir)\" \
-DDAV_SECRETS=\"secrets\" \
-DDAV_CONFIG=\"$(PACKAGE).conf\" \
-DDAV_CERTS_DIR=\"certs\" \
-DDAV_CLICERTS_DIR=\"private\" \
-DDAV_DATA_DIR=\"$(pkgdatadir)\" \
-DLOCALEDIR=\"$(localedir)\" \
-DDAV_USER=\"$(dav_user)\" \
-DDAV_GROUP=\"$(dav_group)\" @DEFS@
LIBS = $(NEON_LIBS) @LIBS@
2010-12-31 20:18:02 +00:00
mount_davfs_LDADD = $(LIBINTL) $(LIBICONV)
umount_davfs_LDADD = $(LIBINTL)
2009-04-14 19:54:53 +00:00
install-exec-hook:
chmod u+s $(DESTDIR)$(sbindir)/mount.davfs; \
if test "$(sbindir)" != "$(ssbindir)"; then \
$(mkinstalldirs) $(DESTDIR)$(ssbindir); \
$(LN_S) -f $(DESTDIR)$(sbindir)/mount.davfs $(DESTDIR)$(ssbindir)/mount.davfs; \
$(LN_S) -f $(DESTDIR)$(sbindir)/umount.davfs $(DESTDIR)$(ssbindir)/umount.davfs; \
fi
uninstall-hook:
if test "$(sbindir)" != "$(ssbindir)"; then \
rm -f $(DESTDIR)$(ssbindir)/mount.davfs; \
rm -f $(DESTDIR)$(ssbindir)/umount.davfs; \
fi