1998-07-24 10:35:02 +04:00
|
|
|
# This is the "Makefile.in" that is used when vfs is built as part of
|
|
|
|
# mc. Any changes here must also be made in Makefile.am.
|
1999-06-22 23:56:36 +04:00
|
|
|
# x
|
1998-07-24 10:35:02 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
srcdir = @srcdir@
|
2000-09-14 19:12:00 +04:00
|
|
|
top_srcdir = @top_srcdir@
|
1998-02-27 07:54:42 +03:00
|
|
|
VPATH = @srcdir@
|
2000-09-18 08:57:29 +04:00
|
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
|
|
|
top_builddir = ..
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-09-23 09:14:31 +04:00
|
|
|
@MCF@
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2001-02-09 23:03:04 +03:00
|
|
|
SAMBA_INCLUDES =
|
2000-10-06 10:49:45 +04:00
|
|
|
|
|
|
|
CFLAGS = $(XCFLAGS)
|
2001-02-08 08:55:44 +03:00
|
|
|
CPPFLAGS = $(XCPPFLAGS) -I. $(SAMBA_INCLUDES)
|
1998-09-26 00:10:06 +04:00
|
|
|
LDFLAGS = $(XLDFLAGS)
|
|
|
|
DEFS = $(XDEFS)
|
1998-12-02 08:18:20 +03:00
|
|
|
LIBS = @LINTL@ @SHADOWLIB@ $(XLIBS) @TERMNET@ @PAMLIBS@ @LCRYPT@ $(XLIB)
|
1998-09-26 00:10:06 +04:00
|
|
|
INSTALL = @INSTALL@
|
1998-02-27 07:54:42 +03:00
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ -m 755
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
AR = @AR@
|
|
|
|
|
|
|
|
#
|
|
|
|
# VFS code
|
|
|
|
#
|
2001-03-15 04:40:30 +03:00
|
|
|
@USE_SAMBA_FS_TRUE@SMB_NETFILES = smbfs.o
|
|
|
|
@USE_SAMBA_FS_FALSE@SMB_NETFILES =
|
|
|
|
NETFILES = tcputil.o fish.o ftpfs.o mcfs.o utilvfs.o $(SMB_NETFILES)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2001-04-06 09:56:02 +04:00
|
|
|
SAMBA_DIST = \
|
1999-06-26 03:11:47 +04:00
|
|
|
Makefile.in \
|
1999-07-04 12:16:31 +04:00
|
|
|
acconfig.h \
|
1999-06-26 03:11:47 +04:00
|
|
|
aclocal.m4 \
|
|
|
|
architecture.doc \
|
|
|
|
configure.in \
|
1999-07-05 12:43:35 +04:00
|
|
|
configure \
|
1999-06-26 03:11:47 +04:00
|
|
|
internals.doc \
|
2001-04-06 09:56:02 +04:00
|
|
|
parsing.doc \
|
|
|
|
include/byteorder.h \
|
|
|
|
include/charset.h \
|
|
|
|
include/client.h \
|
|
|
|
include/config.h.in \
|
|
|
|
include/dlinklist.h \
|
|
|
|
include/includes.h \
|
|
|
|
include/kanji.h \
|
|
|
|
include/local.h \
|
|
|
|
include/nameserv.h \
|
|
|
|
include/ntdomain.h \
|
|
|
|
include/nterr.h \
|
|
|
|
include/proto.h \
|
|
|
|
include/rpc_dce.h \
|
|
|
|
include/rpc_lsa.h \
|
|
|
|
include/rpc_misc.h \
|
|
|
|
include/rpc_netlogon.h \
|
|
|
|
include/rpc_reg.h \
|
|
|
|
include/rpc_samr.h \
|
|
|
|
include/rpc_secdes.h \
|
|
|
|
include/rpc_srvsvc.h \
|
|
|
|
include/rpc_wkssvc.h \
|
|
|
|
include/rpcclient.h \
|
|
|
|
include/smb.h \
|
|
|
|
include/stamp-h.in \
|
|
|
|
include/trans2.h \
|
|
|
|
include/version.h \
|
|
|
|
lib/charcnv.c \
|
|
|
|
lib/charset.c \
|
|
|
|
lib/debug.c \
|
|
|
|
lib/doscalls.c \
|
|
|
|
lib/genrand.c \
|
|
|
|
lib/getsmbpass.c \
|
|
|
|
lib/interface.c \
|
|
|
|
lib/kanji.c \
|
|
|
|
lib/md4.c \
|
|
|
|
lib/netmask.c \
|
|
|
|
lib/signal.c \
|
|
|
|
lib/slprintf.c \
|
|
|
|
lib/system.c \
|
|
|
|
lib/time.c \
|
|
|
|
lib/username.c \
|
|
|
|
lib/util.c \
|
|
|
|
lib/util_file.c \
|
|
|
|
lib/util_sock.c \
|
|
|
|
lib/util_str.c \
|
|
|
|
lib/util_unistr.c \
|
|
|
|
libsmb/clientgen.c \
|
|
|
|
libsmb/namequery.c \
|
|
|
|
libsmb/nmblib.c \
|
|
|
|
libsmb/nterr.c \
|
|
|
|
libsmb/pwd_cache.c \
|
|
|
|
libsmb/smbdes.c \
|
|
|
|
libsmb/smbencrypt.c \
|
|
|
|
libsmb/smberr.c \
|
|
|
|
param/loadparm.c \
|
|
|
|
param/params.c \
|
|
|
|
tests/README \
|
|
|
|
tests/ftruncate.c \
|
|
|
|
tests/getgroups.c \
|
|
|
|
tests/summary.c \
|
|
|
|
tests/trivial.c
|
1999-07-04 12:16:31 +04:00
|
|
|
|
1998-09-26 00:10:06 +04:00
|
|
|
NONETFILES = \
|
2000-02-22 21:21:41 +03:00
|
|
|
cpio.o \
|
1998-10-26 03:06:43 +03:00
|
|
|
direntry.o \
|
1998-09-26 00:10:06 +04:00
|
|
|
extfs.o \
|
|
|
|
local.o \
|
|
|
|
names.o \
|
|
|
|
tar.o \
|
|
|
|
sfs.o \
|
1998-10-16 02:38:00 +04:00
|
|
|
vfs.o @undelfs_o@
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-09-26 00:10:06 +04:00
|
|
|
VFSSRCS = \
|
|
|
|
container.c \
|
2000-02-22 21:21:41 +03:00
|
|
|
cpio.c \
|
1998-10-26 03:06:43 +03:00
|
|
|
direntry.c \
|
1998-09-26 00:10:06 +04:00
|
|
|
extfs.c \
|
|
|
|
ftpfs.c \
|
|
|
|
fish.c \
|
|
|
|
local.c \
|
1998-12-16 06:20:38 +03:00
|
|
|
local.h \
|
1998-09-26 00:10:06 +04:00
|
|
|
mcfs.c \
|
|
|
|
names.c \
|
|
|
|
mcserv.c \
|
|
|
|
sfs.c \
|
|
|
|
shared_tar_ext.c \
|
1999-07-04 14:21:43 +04:00
|
|
|
smbfs.c \
|
1998-09-26 00:10:06 +04:00
|
|
|
tar.c \
|
|
|
|
tcputil.c \
|
|
|
|
undelfs.c \
|
|
|
|
utilvfs.c \
|
1999-02-06 23:19:50 +03:00
|
|
|
util-alone.c \
|
1998-09-26 00:10:06 +04:00
|
|
|
vfs.c
|
|
|
|
|
|
|
|
VFSHDRS = \
|
|
|
|
container.h \
|
|
|
|
extfs.h \
|
|
|
|
fish.h \
|
|
|
|
ftpfs.h \
|
|
|
|
mcfs.h \
|
|
|
|
names.h \
|
1999-07-04 14:21:43 +04:00
|
|
|
smbfs.h \
|
1998-09-26 00:10:06 +04:00
|
|
|
tar.h \
|
|
|
|
tcputil.h \
|
1999-01-25 19:50:38 +03:00
|
|
|
utilvfs.h \
|
1998-10-26 03:38:32 +03:00
|
|
|
vfs.h \
|
1999-02-06 23:19:50 +03:00
|
|
|
util-alone.h \
|
1998-10-26 03:38:32 +03:00
|
|
|
xdirentry.h
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
VFSOBJS = $(NONETFILES) @NETFILES@
|
|
|
|
|
2000-09-18 08:57:29 +04:00
|
|
|
Makefile: $(srcdir)/Make-mc.in $(top_builddir)/config.status
|
2001-02-09 09:39:34 +03:00
|
|
|
cd $(top_builddir) && \
|
|
|
|
CONFIG_FILES=vfs/Makefile:vfs/Make-mc.in \
|
|
|
|
CONFIG_HEADERS= $(SHELL) ./config.status
|
1998-09-26 00:10:06 +04:00
|
|
|
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
#
|
|
|
|
# Distribution variables
|
|
|
|
#
|
|
|
|
|
2001-02-09 09:39:34 +03:00
|
|
|
DISTVFS = Make-mc.in ChangeLog callback.h README README.fish \
|
|
|
|
$(VFSSRCS) $(VFSHDRS)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-06-16 11:58:53 +04:00
|
|
|
all: @LIBVFS@ @mcserv@
|
2001-02-09 09:39:34 +03:00
|
|
|
cd extfs && $(MAKE) all
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
|
|
|
|
|
|
|
|
check:
|
|
|
|
@echo no tests are supplied.
|
|
|
|
|
2000-09-14 20:13:36 +04:00
|
|
|
SRC_LINKS = mad.c mad.h
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-09-14 20:13:36 +04:00
|
|
|
$(SRC_LINKS):
|
|
|
|
for i in $(SRC_LINKS); do \
|
|
|
|
$(LN_S) $(mcsrcdir)/$$i . || exit 1; \
|
|
|
|
done
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-09-14 20:13:36 +04:00
|
|
|
mcserv: mcserv.o tcputil.o mad.o
|
1998-02-27 07:54:42 +03:00
|
|
|
$(CC) $(LDFLAGS) -o mcserv mcserv.o tcputil.o mad.o $(LIBS)
|
|
|
|
|
2001-03-15 04:40:30 +03:00
|
|
|
@USE_SAMBA_FS_TRUE@libvfs-mc.a: $(VFSOBJS) samba/libsamba.a
|
|
|
|
@USE_SAMBA_FS_FALSE@libvfs-mc.a: $(VFSOBJS)
|
2000-09-23 09:14:31 +04:00
|
|
|
rm -f $@
|
2001-03-15 04:40:30 +03:00
|
|
|
@USE_SAMBA_FS_TRUE@ cp -f samba/libsamba.a libtmp.a
|
|
|
|
@USE_SAMBA_FS_TRUE@ $(AR) r libtmp.a $(VFSOBJS)
|
|
|
|
@USE_SAMBA_FS_TRUE@ mv libtmp.a $@
|
|
|
|
@USE_SAMBA_FS_FALSE@ $(AR) cr $@ $(VFSOBJS)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2001-05-15 00:38:30 +04:00
|
|
|
#
|
|
|
|
# Commands to build standalone version (.so)
|
|
|
|
#
|
|
|
|
|
|
|
|
VFSSOOBJS = tcputil.so ftpfs.so mcfs.so utilvfs.so local.so vfs.so tar.so names.so container.so extfs.so util-alone.so util.sor utilunix.sor sfs.so fish.so direntry.so cpio.so
|
|
|
|
|
|
|
|
%.sor: ../src/%.c
|
|
|
|
$(CC) -c -fpic $(CPPFLAGS) $(DEFS) $(CFLAGS) -DVFS_STANDALONE $< -o $@
|
|
|
|
|
|
|
|
%.so: %.c
|
|
|
|
$(CC) -c -fpic $(CPPFLAGS) $(DEFS) $(CFLAGS) -DVFS_STANDALONE $< -o $@
|
|
|
|
|
|
|
|
libvfs.so: $(VFSSOOBJS)
|
|
|
|
gcc $(VFSSOOBJS) -shared -o libvfs.so
|
|
|
|
|
2001-03-15 04:40:30 +03:00
|
|
|
samba/libsamba.a:
|
|
|
|
cd samba && $(MAKE) libsamba.a
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
TAGS: $(VFSSRCS)
|
|
|
|
etags $(VFSSRCS)
|
|
|
|
|
2000-09-23 09:14:31 +04:00
|
|
|
mostlyclean:
|
2001-02-09 09:39:34 +03:00
|
|
|
(cd extfs && $(MAKE) mostlyclean)
|
2001-03-15 04:40:30 +03:00
|
|
|
if test -f samba/Makefile; then \
|
|
|
|
(cd samba && $(MAKE) mostlyclean); \
|
|
|
|
else :; fi
|
2001-05-22 17:18:18 +04:00
|
|
|
rm -f *.o core a.out $(VFSSOOBJS)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-09-23 09:14:31 +04:00
|
|
|
clean: mostlyclean
|
2001-02-09 09:39:34 +03:00
|
|
|
(cd extfs && $(MAKE) clean)
|
2001-02-08 19:35:13 +03:00
|
|
|
if test -f samba/Makefile; then \
|
2001-02-09 09:39:34 +03:00
|
|
|
(cd samba && $(MAKE) clean); \
|
2001-02-08 19:35:13 +03:00
|
|
|
else :; fi
|
2001-05-22 17:18:18 +04:00
|
|
|
rm -f mcserv *.a *.so
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-09-23 09:14:31 +04:00
|
|
|
distclean: clean
|
2001-02-09 09:39:34 +03:00
|
|
|
(cd extfs && $(MAKE) distclean)
|
|
|
|
if test -f samba/Makefile; then \
|
|
|
|
(cd samba && $(MAKE) distclean); \
|
|
|
|
else :; fi
|
2000-09-23 09:14:31 +04:00
|
|
|
rm -f $(SRC_LINKS)
|
|
|
|
rm -f TAGS
|
|
|
|
rm -f *~
|
|
|
|
rm -f Makefile
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2001-04-20 03:20:06 +04:00
|
|
|
install: install.extfs @MCSERV_INSTALL_TRUE@ install_mcserv
|
2000-08-24 18:39:33 +04:00
|
|
|
|
|
|
|
install_mcserv:
|
2000-09-18 08:57:29 +04:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
2000-08-24 18:39:33 +04:00
|
|
|
$(INSTALL_PROGRAM) mcserv $(DESTDIR)$(bindir)/$(binprefix)mcserv
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
install.extfs:
|
2001-02-09 09:39:34 +03:00
|
|
|
cd extfs && $(MAKE) install
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
uninstall:
|
2001-02-09 09:39:34 +03:00
|
|
|
(cd extfs && $(MAKE) uninstall)
|
2000-09-23 09:14:31 +04:00
|
|
|
rm -f $(DESTDIR)$(bindir)/$(binprefix)mcserv
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-08-28 22:51:22 +04:00
|
|
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
|
|
|
|
|
|
|
distdir:
|
2000-09-15 10:05:22 +04:00
|
|
|
for I in $(DISTVFS); \
|
|
|
|
do cp -p $(srcdir)/$$I $(distdir) || exit 1; \
|
|
|
|
done
|
2001-02-08 10:02:30 +03:00
|
|
|
$(mkinstalldirs) $(distdir)/extfs
|
2000-09-02 01:34:26 +04:00
|
|
|
(cd extfs && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) \
|
|
|
|
distdir=../$(distdir)/extfs distdir) || exit 1
|
2000-08-28 22:51:22 +04:00
|
|
|
mkdir $(distdir)/samba
|
|
|
|
mkdir $(distdir)/samba/include
|
|
|
|
mkdir $(distdir)/samba/lib
|
|
|
|
mkdir $(distdir)/samba/libsmb
|
|
|
|
mkdir $(distdir)/samba/param
|
|
|
|
mkdir $(distdir)/samba/tests
|
2001-04-06 09:56:02 +04:00
|
|
|
for I in $(SAMBA_DIST); do \
|
|
|
|
cp -p $(srcdir)/samba/$$I $(distdir)/samba/$$I \
|
2001-02-09 09:39:34 +03:00
|
|
|
|| exit 1; done
|
1999-06-26 03:11:47 +04:00
|
|
|
|
2001-05-27 08:34:12 +04:00
|
|
|
depend:
|
1998-02-27 07:54:42 +03:00
|
|
|
|