*** empty log message ***
[midnight-commander.git] / vfs / Makefile.am
blob8c4861f0de25d06dd6c87a5d111ec1923a7eee5c
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 MCSERV_INSTALL
96 sbin_PROGRAMS = mcserv
97 else
98 if USE_VFS
99 noinst_PROGRAMS = mcserv
100 endif
101 endif
103 mcserv_SOURCES = mcserv.c tcputil.c
105 mcserv_LDADD = $(TERMNET) $(PAMLIBS) $(LCRYPT) $(GLIB_LIBS)
107 SAMBA_DIST =                    \
108         Makefile.in             \
109         aclocal.m4              \
110         architecture.doc        \
111         configure.in            \
112         configure               \
113         internals.doc           \
114         parsing.doc             \
115         include/byteorder.h     \
116         include/charset.h       \
117         include/client.h        \
118         include/config.h.in     \
119         include/dlinklist.h     \
120         include/includes.h      \
121         include/kanji.h         \
122         include/local.h         \
123         include/nameserv.h      \
124         include/ntdomain.h      \
125         include/nterr.h         \
126         include/proto.h         \
127         include/rpc_dce.h       \
128         include/rpc_lsa.h       \
129         include/rpc_misc.h      \
130         include/rpc_netlogon.h  \
131         include/rpc_reg.h       \
132         include/rpc_samr.h      \
133         include/rpc_secdes.h    \
134         include/rpc_srvsvc.h    \
135         include/rpc_wkssvc.h    \
136         include/rpcclient.h     \
137         include/smb.h           \
138         include/stamp-h.in      \
139         include/trans2.h        \
140         include/version.h       \
141         lib/charcnv.c           \
142         lib/charset.c           \
143         lib/debug.c             \
144         lib/doscalls.c          \
145         lib/genrand.c           \
146         lib/interface.c         \
147         lib/kanji.c             \
148         lib/md4.c               \
149         lib/netmask.c           \
150         lib/slprintf.c          \
151         lib/system.c            \
152         lib/time.c              \
153         lib/username.c          \
154         lib/util.c              \
155         lib/util_file.c         \
156         lib/util_sock.c         \
157         lib/util_str.c          \
158         lib/util_unistr.c       \
159         libsmb/clientgen.c      \
160         libsmb/namequery.c      \
161         libsmb/nmblib.c         \
162         libsmb/nterr.c          \
163         libsmb/pwd_cache.c      \
164         libsmb/smbdes.c         \
165         libsmb/smbencrypt.c     \
166         libsmb/smberr.c         \
167         param/loadparm.c        \
168         param/params.c          \
169         tests/README            \
170         tests/getgroups.c       \
171         tests/summary.c         \
172         tests/trivial.c