Ticket #2242 (improved FISH)
[midnight-commander.git] / lib / vfs / mc-vfs / Makefile.am
blob31ea8f5db55a9b0f2cb3d22f8d1a273882b06d3b
1 if USE_SAMBA_FS
2 SAMBA_CFLAGS  = -DCONFIGDIR=\""@configdir@"\"
3 SAMBA_SUBDIRS = samba
4 endif
6 DIST_SUBDIRS = extfs fish
8 SUBDIRS   = extfs fish $(SAMBA_SUBDIRS)
9 AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(SAMBA_CFLAGS)
11 AM_CPPFLAGS = -DLIBEXECDIR=\""$(libexecdir)/@PACKAGE@/"\"
13 BASICFILES =                    \
14         cpio.c                  \
15         direntry.c              \
16         extfs.c                 \
17         gc.c                    \
18         local.c                 \
19         tar.c                   \
20         sfs.c                   \
21         utilvfs.c               \
22         vfs.c
24 VFSHDRS =                       \
25         fish.h                  \
26         fishdef.h               \
27         ftpfs.h                 \
28         gc.h                    \
29         local.h                 \
30         mcfs.h                  \
31         mcfsutil.h              \
32         netutil.h               \
33         smbfs.h                 \
34         utilvfs.h               \
35         vfs.h                   \
36         vfs-impl.h              \
37         xdirentry.h
39 SMBFILES = smbfs.c
40 if USE_SAMBA_FS
41 SMB_NETFILES = $(SMBFILES)
42 endif
44 UNDELFILES = undelfs.c
45 if ENABLE_VFS_UNDELFS
46 UNDEL_FILES = $(UNDELFILES)
47 endif
49 NETFILES = netutil.c fish.c ftpfs.c mcfs.c mcfsutil.c $(SMB_NETFILES)
51 NONETFILES = $(BASICFILES) $(UNDEL_FILES)
53 EXTRA_DIST = HACKING README \
54         $(VFSHDRS) $(BASICFILES) $(NETFILES) $(SMBFILES) $(UNDELFILES)
56 dist-hook:
57         $(mkinstalldirs) $(distdir)/samba
58         $(mkinstalldirs) $(distdir)/samba/include
59         $(mkinstalldirs) $(distdir)/samba/lib
60         $(mkinstalldirs) $(distdir)/samba/libsmb
61         $(mkinstalldirs) $(distdir)/samba/param
62         for I in $(SAMBA_DIST); do \
63           cp -p $(srcdir)/samba/$$I $(distdir)/samba/$$I || exit 1; \
64         done
66 mostlyclean-local:
67         if test -f samba/Makefile; then \
68           (cd samba && $(MAKE) mostlyclean) \
69         else :; fi
71 clean-local:
72         if test -f samba/Makefile; then \
73           (cd samba && $(MAKE) clean) \
74         else :; fi
76 distclean-local:
77         if test -f samba/Makefile; then \
78           (cd samba && $(MAKE) distclean) \
79         else :; fi
81 if ENABLE_VFS
82 noinst_LTLIBRARIES = libvfs-mc.la
83 else
84 noinst_LTLIBRARIES =
85 endif
87 if ENABLE_VFS_NET
88 libvfs_mc_la_SOURCES = $(NETFILES) $(NONETFILES)
89 else
90 libvfs_mc_la_SOURCES = $(NONETFILES)
91 endif
93 if ENABLE_VFS
94 if ENABLE_MCSERVER
95 sbin_PROGRAMS = mcserv
96 mcserv_SOURCES = mcserv.c
97 mcserv_LDADD = $(MCSERVLIBS) $(GLIB_LIBS) libvfs-mc.la
98 endif
99 endif
102 SAMBA_DIST =                    \
103         Makefile.in             \
104         aclocal.m4              \
105         configure.ac            \
106         configure               \
107         internals.doc           \
108         parsing.doc             \
109         include/byteorder.h     \
110         include/charset.h       \
111         include/client.h        \
112         include/config.h.in     \
113         include/includes.h      \
114         include/kanji.h         \
115         include/local.h         \
116         include/nameserv.h      \
117         include/nterr.h         \
118         include/proto.h         \
119         include/smb.h           \
120         include/stamp-h.in      \
121         include/trans2.h        \
122         include/version.h       \
123         lib/charcnv.c           \
124         lib/charset.c           \
125         lib/debug.c             \
126         lib/interface.c         \
127         lib/kanji.c             \
128         lib/md4.c               \
129         lib/netmask.c           \
130         lib/slprintf.c          \
131         lib/system.c            \
132         lib/time.c              \
133         lib/username.c          \
134         lib/util.c              \
135         lib/util_file.c         \
136         lib/util_sock.c         \
137         lib/util_str.c          \
138         libsmb/clientgen.c      \
139         libsmb/namequery.c      \
140         libsmb/nmblib.c         \
141         libsmb/nterr.c          \
142         libsmb/pwd_cache.c      \
143         libsmb/smbdes.c         \
144         libsmb/smbencrypt.c     \
145         libsmb/smberr.c         \
146         param/loadparm.c        \
147         param/params.c