# $Id$ # automake source for the fuse module for fuse Makefile # Copyright (C) 2005 Jan Kratochvil # # This program 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; exactly version 2 of June 1991 is required # # This program 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 this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA include $(top_srcdir)/Makefile-head.am include $(top_srcdir)/src/libcaptive/Makefile-libcaptive.am mount_captive_SOURCES= \ op_statfs.c \ op_statfs.h \ op_fsync.c \ op_fsync.h \ op_fsyncdir.c \ op_fsyncdir.h \ op_opendir.c \ op_opendir.h \ op_readdir.c \ op_readdir.h \ op_releasedir.c \ op_releasedir.h \ op_open.c \ op_open.h \ op_read.c \ op_read.h \ op_release.c \ op_release.h \ op_getattr.c \ op_getattr.h \ op_mknod.c \ op_mknod.h \ op_unlink.c \ op_unlink.h \ op_mkdir.c \ op_mkdir.h \ op_rmdir.c \ op_rmdir.h \ op_chmod.c \ op_chmod.h \ op_truncate.c \ op_truncate.h \ op_write.c \ op_write.h \ op_rename.c \ op_rename.h \ op_utime.c \ op_utime.h \ gnomevfsresult.c \ gnomevfsresult.h \ gnomevfsfileinfo.c \ gnomevfsfileinfo.h \ main.c \ main.h mount_captive_CFLAGS= $(GNOME_VFS_CFLAGS) $(FUSE_CFLAGS) mount_captive_LDADD =$(captive_library) $(GNOME_VFS_LIBS) $(FUSE_LIBS) $(INTLLIBS) mount_captive_LDFLAGS=$(READLINE_LDFLAGS) mount_captive_CFLAGS+=-DSBINDIR="$(sbindir)" mount_captive_CFLAGS+=-DVARLIBCAPTIVEDIR="$(localstatedir)/lib/$(PACKAGE)" if ENABLE_FUSE if ENABLE_SBIN_MOUNT mount_captive_cond=mount.captive initd_SCRIPTS_cond=captive install-exec-hook: $(mkinstalldirs) $(DESTDIR)$(enable_sbin_mountdir) IFS=:; \ enable_sbin_mount_fs="$(enable_sbin_mount_fs)"; \ for fs in $$enable_sbin_mount_fs; do \ if test $$fs != no; then \ $(RM) $(DESTDIR)$(enable_sbin_mountdir)/mount.captive-$$fs; \ $(LN_S) mount.captive $(DESTDIR)$(enable_sbin_mountdir)/mount.captive-$$fs; \ fi; \ done else install-exec-hook: @true endif else install-exec-hook: @true endif bin_PROGRAMS+=$(mount_captive_cond) EXTRA_DIST+=mount.captive.pod.pl.in CLEANFILES+=mount.captive.pod mount.captive.1 if ENABLE_MAN_PAGES if ENABLE_FUSE if ENABLE_SBIN_MOUNT mount_captive_man_cond=mount.captive.8 endif endif endif man_MANS=$(mount_captive_man_cond) initddir=$(sysconfdir)/init.d initd_SCRIPTS=$(captive_cond) EXTRA_DIST+=captive.init CLEANFILES+=captive captive: captive.init $(LN_S) $< $@