2008-04-09 Marco Ciampa <ciampix@libero.it>
[midnight-commander.git] / vfs / Makefile.am
blob1b05e58a58119f2e7407294b0b234f0a445902c7
1 if USE_SAMBA_FS
2 SUBDIRS = samba extfs
3 else
4 SUBDIRS = extfs
5 endif
7 DIST_SUBDIRS = extfs
9 if USE_SAMBA_FS
10 AM_CFLAGS = $(GLIB_CFLAGS) -DCONFIGDIR=\""@configdir@"\"
11 else
12 AM_CFLAGS = $(GLIB_CFLAGS)
13 endif
15 BASICFILES =                    \
16         cpio.c                  \
17         direntry.c              \
18         extfs.c                 \
19         gc.c                    \
20         local.c                 \
21         tar.c                   \
22         sfs.c                   \
23         utilvfs.c               \
24         vfs.c
26 VFSHDRS =                       \
27         fish.h                  \
28         ftpfs.h                 \
29         gc.h                    \
30         local.h                 \
31         mcfs.h                  \
32         mcfsutil.h              \
33         smbfs.h                 \
34         tcputil.h               \
35         utilvfs.h               \
36         vfs.h                   \
37         vfs-impl.h              \
38         xdirentry.h
40 SMBFILES = smbfs.c
41 if USE_SAMBA_FS
42 SMB_NETFILES = $(SMBFILES)
43 endif
45 UNDELFILES = undelfs.c
46 if USE_UNDEL_FS
47 UNDEL_FILES = $(UNDELFILES)
48 endif
50 NETFILES = tcputil.c fish.c ftpfs.c mcfs.c mcfsutil.c $(SMB_NETFILES)
52 NONETFILES = $(BASICFILES) $(UNDEL_FILES)
54 EXTRA_DIST = ChangeLog HACKING README README.fish \
55         $(VFSHDRS) $(BASICFILES) $(NETFILES) $(SMBFILES) $(UNDELFILES)
57 dist-hook:
58         $(mkinstalldirs) $(distdir)/samba
59         $(mkinstalldirs) $(distdir)/samba/include
60         $(mkinstalldirs) $(distdir)/samba/lib
61         $(mkinstalldirs) $(distdir)/samba/libsmb
62         $(mkinstalldirs) $(distdir)/samba/param
63         for I in $(SAMBA_DIST); do \
64           cp -p $(srcdir)/samba/$$I $(distdir)/samba/$$I || exit 1; \
65         done
67 mostlyclean-local:
68         if test -f samba/Makefile; then \
69           (cd samba && $(MAKE) mostlyclean) \
70         else :; fi
72 clean-local:
73         if test -f samba/Makefile; then \
74           (cd samba && $(MAKE) clean) \
75         else :; fi
77 distclean-local:
78         if test -f samba/Makefile; then \
79           (cd samba && $(MAKE) distclean) \
80         else :; fi
82 if USE_VFS
83 noinst_LIBRARIES = libvfs-mc.a
84 else
85 noinst_LIBRARIES =
86 endif
88 if USE_VFS_NET
89 libvfs_mc_a_SOURCES = $(NETFILES) $(NONETFILES)
90 else
91 libvfs_mc_a_SOURCES = $(NONETFILES)
92 endif
94 if USE_MCFS
95 sbin_PROGRAMS = mcserv
96 endif
98 mcserv_SOURCES = mcserv.c mcfsutil.c
100 mcserv_LDADD = $(MCSERVLIBS)
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