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@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
rootdir = $(srcdir)/..
|
|
|
|
@MCFG@@MCF@
|
|
|
|
|
1999-06-22 23:56:36 +04:00
|
|
|
CFLAGS = $(XCFLAGS) -D_LARGEFILE64_SOURCE
|
|
|
|
CPPFLAGS = $(XCPPFLAGS) -Isamba/ubiqx -Isamba/smbwrapper
|
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
|
|
|
|
#
|
1999-06-22 23:56:36 +04:00
|
|
|
NETFILES = tcputil.o fish.o ftpfs.o smbfs.o mcfs.o utilvfs.o
|
|
|
|
|
|
|
|
SAMBAFILES= \
|
|
|
|
samba/param/loadparm.o \
|
|
|
|
samba/lib/time.o \
|
|
|
|
samba/lib/slprintf.o \
|
|
|
|
samba/lib/util.o \
|
|
|
|
samba/lib/debug.o \
|
|
|
|
samba/lib/system.o \
|
|
|
|
samba/lib/util_str.o \
|
|
|
|
samba/lib/kanji.o \
|
|
|
|
samba/lib/charcnv.o \
|
|
|
|
samba/lib/charset.o \
|
|
|
|
samba/lib/username.o \
|
|
|
|
samba/lib/util_file.o \
|
|
|
|
samba/lib/signal.o \
|
|
|
|
samba/lib/util_sock.o \
|
|
|
|
samba/lib/genrand.o \
|
|
|
|
samba/lib/md4.o \
|
|
|
|
samba/lib/doscalls.o \
|
|
|
|
samba/param/params.o \
|
|
|
|
samba/libsmb/clientgen.o \
|
|
|
|
samba/libsmb/pwd_cache.o \
|
|
|
|
samba/libsmb/smbencrypt.o \
|
|
|
|
samba/libsmb/smbdes.o \
|
|
|
|
samba/lib/util_unistr.o \
|
|
|
|
samba/lib/getsmbpass.o \
|
|
|
|
samba/libsmb/nmblib.o \
|
|
|
|
samba/libsmb/namequery.o\
|
|
|
|
samba/lib/interface.o \
|
|
|
|
samba/lib/netmask.o \
|
|
|
|
samba/libsmb/nterr.o \
|
|
|
|
samba/libsmb/smberr.o
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-09-26 00:10:06 +04:00
|
|
|
NONETFILES = \
|
1998-09-26 00:15:00 +04:00
|
|
|
container.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 \
|
1998-10-26 03:06:43 +03:00
|
|
|
direntry.c \
|
1998-09-26 00:10:06 +04:00
|
|
|
extfs.c \
|
|
|
|
ftpfs.c \
|
|
|
|
fish.c \
|
1998-11-18 05:31:23 +03:00
|
|
|
direntry.c \
|
1998-09-26 00:10:06 +04:00
|
|
|
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 \
|
|
|
|
shared_ftp_fish.c \
|
|
|
|
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 \
|
|
|
|
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@
|
|
|
|
|
1999-04-12 13:16:03 +04:00
|
|
|
EXTFS_MISC = README extfs.ini unarj.diff
|
|
|
|
EXTFS_CONST = a rpm hp48 mailfs patchfs sfs.ini trpm rpms uarj
|
1998-09-26 00:10:06 +04:00
|
|
|
|
|
|
|
EXTFS_IN = \
|
|
|
|
deb.in \
|
|
|
|
lslR.in \
|
|
|
|
ucpio.in \
|
|
|
|
urar.in \
|
|
|
|
uzoo.in \
|
|
|
|
ftplist.in \
|
|
|
|
uar.in \
|
|
|
|
ulha.in \
|
1999-03-22 01:56:20 +03:00
|
|
|
uha.in \
|
1998-09-26 00:10:06 +04:00
|
|
|
uzip.in
|
|
|
|
|
|
|
|
EXTFS_OUT = \
|
|
|
|
deb \
|
|
|
|
lslR \
|
|
|
|
ucpio \
|
|
|
|
urar \
|
|
|
|
uzoo \
|
|
|
|
ftplist \
|
|
|
|
uar \
|
|
|
|
ulha \
|
1999-03-22 01:56:20 +03:00
|
|
|
uha \
|
1998-09-26 00:10:06 +04:00
|
|
|
uzip
|
1998-06-29 18:11:26 +04:00
|
|
|
|
|
|
|
EXTFSSTUFF = $(EXTFS_MISC) $(EXTFS_CONST) $(EXTFS_IN)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-05-26 04:53:24 +04:00
|
|
|
#
|
|
|
|
# Commands to build standalone version (.so)
|
|
|
|
#
|
|
|
|
|
1998-09-15 00:50:11 +04:00
|
|
|
VFSSOOBJS = tcputil.so fish.so ftpfs.so mcfs.so utilvfs.so local.so vfs.so \
|
1998-08-27 22:51:20 +04:00
|
|
|
tar.so sfs.so names.so container.so extfs.so util-alone.so \
|
1998-11-21 22:36:01 +03:00
|
|
|
util.sor utilunix.sor direntry.so
|
1998-05-26 04:53:24 +04:00
|
|
|
|
|
|
|
%.sor: ../src/%.c
|
1998-11-22 19:17:42 +03:00
|
|
|
$(CC) -fpic -Wall -c $(CPPFLAGS) $(DEFS) $(CFLAGS) -DVFS_STANDALONE $< -o $@
|
1998-05-26 04:53:24 +04:00
|
|
|
|
|
|
|
%.so: %.c
|
1998-11-22 19:17:42 +03:00
|
|
|
$(CC) -fpic -Wall -c $(CPPFLAGS) $(DEFS) $(CFLAGS) -DVFS_STANDALONE $< -o $@
|
1998-05-26 04:53:24 +04:00
|
|
|
|
1998-09-30 02:49:38 +04:00
|
|
|
libvfs.so: $(VFSSOOBJS)
|
|
|
|
gcc $(VFSSOOBJS) -shared -o libvfs.so
|
1998-05-26 04:53:24 +04:00
|
|
|
|
1998-11-22 19:17:42 +03:00
|
|
|
libvfs.a: $(VFSSOOBJS)
|
|
|
|
$(RMF) $@
|
|
|
|
$(AR) cr $@ $(VFSSOOBJS)
|
|
|
|
-$(RANLIB) $@
|
1998-05-26 04:53:24 +04:00
|
|
|
|
1998-09-29 00:41:28 +04:00
|
|
|
Makefile: $(srcdir)/Make-mc.in $(builddir)/config.status
|
|
|
|
cd $(builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
1998-09-26 00:10:06 +04:00
|
|
|
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
#
|
|
|
|
# Distribution variables
|
|
|
|
#
|
|
|
|
|
1999-04-12 12:56:40 +04:00
|
|
|
DISTVFS = Make-mc.in ChangeLog $(VFSSRCS) $(VFSHDRS) callback.h README README.fish
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-06-16 11:58:53 +04:00
|
|
|
all: @LIBVFS@ @mcserv@
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
|
|
|
|
|
|
|
|
check:
|
|
|
|
@echo no tests are supplied.
|
|
|
|
|
|
|
|
checklinks:
|
|
|
|
@if test -f $(vfsdir)/mad.c; then echo ok; \
|
|
|
|
else $(MAKE) sourcelinks; fi
|
|
|
|
|
|
|
|
sourcelinks:
|
1998-05-04 13:42:55 +04:00
|
|
|
-cd $(vfsdir); $(LN_S) ../src/mad.c ../src/mad.h . >/dev/null 2>&1; true
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
mcserv: checklinks
|
|
|
|
$(MAKE) mcservx
|
|
|
|
|
|
|
|
mcservx: mcserv.o tcputil.o mad.o
|
|
|
|
$(CC) $(LDFLAGS) -o mcserv mcserv.o tcputil.o mad.o $(LIBS)
|
|
|
|
touch mcservx
|
|
|
|
|
1999-06-22 23:56:36 +04:00
|
|
|
$(SAMBAFILES):
|
|
|
|
cd samba && $(MAKE)
|
|
|
|
|
|
|
|
libvfs-mc.a: $(VFSOBJS) $(SAMBAFILES)
|
1998-02-27 07:54:42 +03:00
|
|
|
$(RMF) $@
|
1999-06-22 23:56:36 +04:00
|
|
|
$(AR) cr $@ $(VFSOBJS) $(SAMBAFILES)
|
1998-02-27 07:54:42 +03:00
|
|
|
-$(RANLIB) $@
|
|
|
|
|
|
|
|
showlibdep:
|
|
|
|
@echo 'OBJS="$(VFSOBJS)"'
|
|
|
|
|
|
|
|
cross:
|
|
|
|
$(MAKE) CC=gcc-linux CPP="gcc-linux -E" \
|
|
|
|
CPPFLAGS="$(CPPFLAGS) -I/usr/local/lib/gcc-lib/i386-linux-linux/include/ncurses "
|
|
|
|
|
|
|
|
TAGS: $(VFSSRCS)
|
|
|
|
etags $(VFSSRCS)
|
|
|
|
|
|
|
|
clean:
|
1998-11-22 19:17:42 +03:00
|
|
|
$(RMF) mcserv *.o core a.out *.a mcservx *.so *.sor
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
realclean: clean
|
|
|
|
$(RMF) .depend
|
|
|
|
$(RMF) TAGS
|
|
|
|
$(RMF) *~
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
-$(RMF) $(srcdir)/*~ $(srcdir)/mcserv $(srcdir)/*.o $(srcdir)/a.out
|
1998-05-26 04:53:24 +04:00
|
|
|
-$(RMF) $(srcdir)/core $(srcdir)/libvfs-mc.a $(srcdir)/libvfs.so
|
1998-02-27 07:54:42 +03:00
|
|
|
-$(RMF) $(srcdir)/mad.c $(srcdir)/mad.h
|
|
|
|
-if test $(srcdir) = .; then $(MAKE) realclean; fi
|
|
|
|
-$(RMF) $(srcdir)/Makefile
|
|
|
|
|
1998-05-20 06:19:17 +04:00
|
|
|
install: @mcserv@ install.extfs
|
|
|
|
-(if test x@mcserv@ != x; then \
|
1998-02-27 07:54:42 +03:00
|
|
|
$(INSTALL_PROGRAM) mcserv $(DESTDIR)$(bindir)/$(binprefix)mcserv; \
|
1998-05-20 06:19:17 +04:00
|
|
|
fi)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
install.extfs:
|
1998-06-29 18:11:26 +04:00
|
|
|
for I in $(EXTFS_MISC); do \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/extfs/$$I \
|
1999-03-22 02:52:33 +03:00
|
|
|
$(DESTDIR)$(extfsdir)/$$I; \
|
1998-06-29 18:11:26 +04:00
|
|
|
done
|
1998-07-31 17:56:56 +04:00
|
|
|
for I in $(EXTFS_CONST) ; do \
|
1998-06-29 18:11:26 +04:00
|
|
|
$(INSTALL_PROGRAM) $(srcdir)/extfs/$$I \
|
1999-03-22 02:52:33 +03:00
|
|
|
$(DESTDIR)$(extfsdir)/$$I; \
|
1998-06-29 18:11:26 +04:00
|
|
|
done
|
1998-07-31 17:56:56 +04:00
|
|
|
for I in $(EXTFS_OUT) ; do \
|
|
|
|
$(INSTALL_PROGRAM) $(builddir)/vfs/extfs/$$I \
|
1999-03-22 02:52:33 +03:00
|
|
|
$(DESTDIR)$(extfsdir)/$$I; \
|
1998-07-31 17:56:56 +04:00
|
|
|
done
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
uninstall:
|
1998-06-29 18:11:26 +04:00
|
|
|
for I in $(EXTFS_MISC); do \
|
1999-03-22 02:52:33 +03:00
|
|
|
$(RMF) $(DESTDIR)$(extfsdir)/$$I; \
|
1998-06-29 18:11:26 +04:00
|
|
|
done
|
|
|
|
for I in $(EXTFS_CONST) $(EXTFS_OUT); do \
|
1999-03-22 02:52:33 +03:00
|
|
|
$(RMF) $(DESTDIR)$(extfsdir)/$$I; \
|
1998-06-29 18:11:26 +04:00
|
|
|
done
|
1999-03-22 02:52:33 +03:00
|
|
|
-rmdir $(DESTDIR)$(extfsdir)
|
1998-02-27 07:54:42 +03:00
|
|
|
-$(RMF) $(DESTDIR)$(bindir)/$(binprefix)mcserv
|
|
|
|
|
|
|
|
distcopy:
|
|
|
|
$(CP) $(DISTVFS) ../../mc-$(VERSION)/vfs
|
1998-09-18 23:45:27 +04:00
|
|
|
mkdir ../../mc-$(VERSION)/vfs/extfs
|
1998-02-27 07:54:42 +03:00
|
|
|
cd extfs; $(CP) $(EXTFSSTUFF) ../../../mc-$(VERSION)/vfs/extfs
|
|
|
|
|
|
|
|
depend dep: mcdep
|
|
|
|
|
|
|
|
fastdeploc:
|
|
|
|
|
|
|
|
# ***Dependencies***Do not edit***
|
|
|
|
@DOTDEPEND@
|
|
|
|
# ***End of dependencies***
|