Improve formatting.
[midnight-commander.git] / vfs / Makefile.am
blob615c482718a6c4cc53fc9a0397663153d9446018
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         local.c                 \
20         names.c                 \
21         tar.c                   \
22         sfs.c                   \
23         vfs.c
25 VFSHDRS =                       \
26         container.h             \
27         extfs.h                 \
28         fish.h                  \
29         ftpfs.h                 \
30         local.h                 \
31         mcfs.h                  \
32         names.h                 \
33         smbfs.h                 \
34         tar.h                   \
35         tcputil.h               \
36         utilvfs.h               \
37         vfs.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 utilvfs.c $(SMB_NETFILES)
52 NONETFILES = $(BASICFILES) $(UNDEL_FILES)
54 EXTRA_DIST = ChangeLog 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         $(mkinstalldirs) $(distdir)/samba/tests
64         for I in $(SAMBA_DIST); do \
65           cp -p $(srcdir)/samba/$$I $(distdir)/samba/$$I || exit 1; \
66         done
68 mostlyclean-local:
69         if test -f samba/Makefile; then \
70           (cd samba && $(MAKE) mostlyclean) \
71         else :; fi
73 clean-local:
74         if test -f samba/Makefile; then \
75           (cd samba && $(MAKE) clean) \
76         else :; fi
78 distclean-local:
79         if test -f samba/Makefile; then \
80           (cd samba && $(MAKE) distclean) \
81         else :; fi
83 if USE_VFS
84 noinst_LIBRARIES = libvfs-mc.a
85 else
86 noinst_LIBRARIES =
87 endif
89 if USE_VFS_NET
90 libvfs_mc_a_SOURCES = $(NETFILES) $(NONETFILES)
91 else
92 libvfs_mc_a_SOURCES = $(NONETFILES)
93 endif
95 if USE_MCFS
96 sbin_PROGRAMS = mcserv
97 endif
99 mcserv_SOURCES = mcserv.c tcputil.c
101 mcserv_LDADD = $(PAMLIBS) $(LCRYPT) $(GLIB_LIBS)
103 SAMBA_DIST =                    \
104         Makefile.in             \
105         aclocal.m4              \
106         architecture.doc        \
107         configure.in            \
108         configure               \
109         internals.doc           \
110         parsing.doc             \
111         include/byteorder.h     \
112         include/charset.h       \
113         include/client.h        \
114         include/config.h.in     \
115         include/dlinklist.h     \
116         include/includes.h      \
117         include/kanji.h         \
118         include/local.h         \
119         include/nameserv.h      \
120         include/ntdomain.h      \
121         include/nterr.h         \
122         include/proto.h         \
123         include/rpc_dce.h       \
124         include/rpc_lsa.h       \
125         include/rpc_misc.h      \
126         include/rpc_netlogon.h  \
127         include/rpc_reg.h       \
128         include/rpc_samr.h      \
129         include/rpc_secdes.h    \
130         include/rpc_srvsvc.h    \
131         include/rpc_wkssvc.h    \
132         include/rpcclient.h     \
133         include/smb.h           \
134         include/stamp-h.in      \
135         include/trans2.h        \
136         include/version.h       \
137         lib/charcnv.c           \
138         lib/charset.c           \
139         lib/debug.c             \
140         lib/doscalls.c          \
141         lib/genrand.c           \
142         lib/interface.c         \
143         lib/kanji.c             \
144         lib/md4.c               \
145         lib/netmask.c           \
146         lib/slprintf.c          \
147         lib/system.c            \
148         lib/time.c              \
149         lib/username.c          \
150         lib/util.c              \
151         lib/util_file.c         \
152         lib/util_sock.c         \
153         lib/util_str.c          \
154         lib/util_unistr.c       \
155         libsmb/clientgen.c      \
156         libsmb/namequery.c      \
157         libsmb/nmblib.c         \
158         libsmb/nterr.c          \
159         libsmb/pwd_cache.c      \
160         libsmb/smbdes.c         \
161         libsmb/smbencrypt.c     \
162         libsmb/smberr.c         \
163         param/loadparm.c        \
164         param/params.c          \
165         tests/README            \
166         tests/getgroups.c       \
167         tests/summary.c         \
168         tests/trivial.c