mc.sh & mc.csh creation fixed...
[midnight-commander.git] / vfs / Makefile.am
blobf866f83c6595840f672120cf7563821f2d730140
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         extfs.h                 \
27         fish.h                  \
28         ftpfs.h                 \
29         local.h                 \
30         mcfs.h                  \
31         mcfsutil.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 mcfsutil.c utilvfs.c \
51         $(SMB_NETFILES)
53 NONETFILES = $(BASICFILES) $(UNDEL_FILES)
55 EXTRA_DIST = ChangeLog README README.fish \
56         $(VFSHDRS) $(BASICFILES) $(NETFILES) $(SMBFILES) $(UNDELFILES)
58 dist-hook:
59         $(mkinstalldirs) $(distdir)/samba
60         $(mkinstalldirs) $(distdir)/samba/include
61         $(mkinstalldirs) $(distdir)/samba/lib
62         $(mkinstalldirs) $(distdir)/samba/libsmb
63         $(mkinstalldirs) $(distdir)/samba/param
64         $(mkinstalldirs) $(distdir)/samba/tests
65         for I in $(SAMBA_DIST); do \
66           cp -p $(srcdir)/samba/$$I $(distdir)/samba/$$I || exit 1; \
67         done
69 mostlyclean-local:
70         if test -f samba/Makefile; then \
71           (cd samba && $(MAKE) mostlyclean) \
72         else :; fi
74 clean-local:
75         if test -f samba/Makefile; then \
76           (cd samba && $(MAKE) clean) \
77         else :; fi
79 distclean-local:
80         if test -f samba/Makefile; then \
81           (cd samba && $(MAKE) distclean) \
82         else :; fi
84 if USE_VFS
85 noinst_LIBRARIES = libvfs-mc.a
86 else
87 noinst_LIBRARIES =
88 endif
90 if USE_VFS_NET
91 libvfs_mc_a_SOURCES = $(NETFILES) $(NONETFILES)
92 else
93 libvfs_mc_a_SOURCES = $(NONETFILES)
94 endif
96 if USE_MCFS
97 sbin_PROGRAMS = mcserv
98 endif
100 mcserv_SOURCES = mcserv.c mcfsutil.c
102 mcserv_LDADD = $(PAMLIBS) $(LCRYPT)
104 SAMBA_DIST =                    \
105         Makefile.in             \
106         aclocal.m4              \
107         architecture.doc        \
108         configure.in            \
109         configure               \
110         internals.doc           \
111         parsing.doc             \
112         include/byteorder.h     \
113         include/charset.h       \
114         include/client.h        \
115         include/config.h.in     \
116         include/dlinklist.h     \
117         include/includes.h      \
118         include/kanji.h         \
119         include/local.h         \
120         include/nameserv.h      \
121         include/ntdomain.h      \
122         include/nterr.h         \
123         include/proto.h         \
124         include/rpc_dce.h       \
125         include/rpc_lsa.h       \
126         include/rpc_misc.h      \
127         include/rpc_netlogon.h  \
128         include/rpc_reg.h       \
129         include/rpc_samr.h      \
130         include/rpc_secdes.h    \
131         include/rpc_srvsvc.h    \
132         include/rpc_wkssvc.h    \
133         include/rpcclient.h     \
134         include/smb.h           \
135         include/stamp-h.in      \
136         include/trans2.h        \
137         include/version.h       \
138         lib/charcnv.c           \
139         lib/charset.c           \
140         lib/debug.c             \
141         lib/doscalls.c          \
142         lib/genrand.c           \
143         lib/interface.c         \
144         lib/kanji.c             \
145         lib/md4.c               \
146         lib/netmask.c           \
147         lib/slprintf.c          \
148         lib/system.c            \
149         lib/time.c              \
150         lib/username.c          \
151         lib/util.c              \
152         lib/util_file.c         \
153         lib/util_sock.c         \
154         lib/util_str.c          \
155         lib/util_unistr.c       \
156         libsmb/clientgen.c      \
157         libsmb/namequery.c      \
158         libsmb/nmblib.c         \
159         libsmb/nterr.c          \
160         libsmb/pwd_cache.c      \
161         libsmb/smbdes.c         \
162         libsmb/smbencrypt.c     \
163         libsmb/smberr.c         \
164         param/loadparm.c        \
165         param/params.c          \
166         tests/README            \
167         tests/getgroups.c       \
168         tests/summary.c         \
169         tests/trivial.c