Ticket #2419: configure script doesn't set samba configdir.
[pantumic.git] / lib / vfs / mc-vfs / Makefile.am
blobf890b0de75218fb79913325a7cf97c6d4524b2eb
1 if ENABLE_VFS_SMB
2 SAMBA_CFLAGS  = -DCONFIGDIR=\""@smbconfigdir@"\"
3 SAMBA_SUBDIRS = samba
4 endif
6 DIST_SUBDIRS = extfs fish
8 SUBDIRS = $(SAMBA_SUBDIRS)
9 if ENABLE_VFS_EXTFS
10 SUBDIRS += extfs
11 endif
12 if ENABLE_VFS_FISH
13 SUBDIRS += fish
14 endif
16 AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(SAMBA_CFLAGS)
18 AM_CPPFLAGS = -DLIBEXECDIR=\""$(libexecdir)/@PACKAGE@/"\"
20 BASICFILES = \
21         vfs.c vfs.h vfs-impl.h  \
22         direntry.c xdirentry.h  \
23         utilvfs.c utilvfs.h     \
24         gc.c gc.h               \
25         local.c local.h
27 CPIOFILES = cpio.c
28 TARFILES = tar.c
29 SFSFILES = sfs.c
30 EXTFSFILES = extfs.c
31 UNDELFILES = undelfs.c
33 NETFILES = netutil.c netutil.h
35 FTPFILES = ftpfs.c ftpfs.h
36 FISHFILES = fish.c fish.h fishdef.h
37 SMBFILES = smbfs.c smbfs.h
39 libvfs_mc_la_SOURCES = $(BASICFILES)
40 if ENABLE_VFS_CPIO
41 libvfs_mc_la_SOURCES += $(CPIOFILES)
42 endif
43 if ENABLE_VFS_TAR
44 libvfs_mc_la_SOURCES += $(TARFILES)
45 endif
46 if ENABLE_VFS_SFS
47 libvfs_mc_la_SOURCES += $(SFSFILES)
48 endif
49 if ENABLE_VFS_EXTFS
50 libvfs_mc_la_SOURCES += $(EXTFSFILES)
51 endif
52 if ENABLE_VFS_UNDELFS
53 libvfs_mc_la_SOURCES += $(UNDELFILES)
54 endif
55 if ENABLE_VFS_NET
56 libvfs_mc_la_SOURCES += $(NETFILES)
57 endif
58 if ENABLE_VFS_FTP
59 libvfs_mc_la_SOURCES += $(FTPFILES)
60 endif
61 if ENABLE_VFS_FISH
62 libvfs_mc_la_SOURCES += $(FISHFILES)
63 endif
64 if ENABLE_VFS_SMB
65 libvfs_mc_la_SOURCES += $(SMBFILES)
66 endif
68 EXTRA_DIST = HACKING README \
69         $(BASICFILES) \
70         $(CPIOFILES) \
71         $(TARFILES) \
72         $(SFSFILES) \
73         $(EXTFSFILES) \
74         $(UNDELFILES) \
75         $(NETFILES) \
76         $(FTPFILES) \
77         $(FISHFILES) \
78         $(SMBFILES)
80 dist-hook:
81         $(mkinstalldirs) $(distdir)/samba
82         $(mkinstalldirs) $(distdir)/samba/include
83         $(mkinstalldirs) $(distdir)/samba/lib
84         $(mkinstalldirs) $(distdir)/samba/libsmb
85         $(mkinstalldirs) $(distdir)/samba/param
86         for I in $(SAMBA_DIST); do \
87           cp -p $(srcdir)/samba/$$I $(distdir)/samba/$$I || exit 1; \
88         done
90 mostlyclean-local:
91         if test -f samba/Makefile; then \
92           (cd samba && $(MAKE) mostlyclean) \
93         else :; fi
95 clean-local:
96         if test -f samba/Makefile; then \
97           (cd samba && $(MAKE) clean) \
98         else :; fi
100 distclean-local:
101         if test -f samba/Makefile; then \
102           (cd samba && $(MAKE) distclean) \
103         else :; fi
105 noinst_LTLIBRARIES = libvfs-mc.la
107 SAMBA_DIST =                    \
108         Makefile.in             \
109         aclocal.m4              \
110         configure.ac            \
111         configure               \
112         internals.doc           \
113         parsing.doc             \
114         include/byteorder.h     \
115         include/charset.h       \
116         include/client.h        \
117         include/config.h.in     \
118         include/includes.h      \
119         include/kanji.h         \
120         include/local.h         \
121         include/nameserv.h      \
122         include/nterr.h         \
123         include/proto.h         \
124         include/smb.h           \
125         include/stamp-h.in      \
126         include/trans2.h        \
127         include/version.h       \
128         lib/charcnv.c           \
129         lib/charset.c           \
130         lib/debug.c             \
131         lib/interface.c         \
132         lib/kanji.c             \
133         lib/md4.c               \
134         lib/netmask.c           \
135         lib/slprintf.c          \
136         lib/system.c            \
137         lib/time.c              \
138         lib/username.c          \
139         lib/util.c              \
140         lib/util_file.c         \
141         lib/util_sock.c         \
142         lib/util_str.c          \
143         libsmb/clientgen.c      \
144         libsmb/namequery.c      \
145         libsmb/nmblib.c         \
146         libsmb/nterr.c          \
147         libsmb/pwd_cache.c      \
148         libsmb/smbdes.c         \
149         libsmb/smbencrypt.c     \
150         libsmb/smberr.c         \
151         param/loadparm.c        \
152         param/params.c