Makefile.am 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. SUBDIRS = extfs
  2. if USE_SAMBA_FS
  3. AM_CFLAGS = $(GLIB_CFLAGS) -DCONFIGDIR=\""@configdir@"\"
  4. else
  5. AM_CFLAGS = $(GLIB_CFLAGS)
  6. endif
  7. BASICFILES = \
  8. cpio.c \
  9. direntry.c \
  10. extfs.c \
  11. local.c \
  12. names.c \
  13. tar.c \
  14. sfs.c \
  15. vfs.c
  16. VFSHDRS = \
  17. container.h \
  18. extfs.h \
  19. fish.h \
  20. ftpfs.h \
  21. local.h \
  22. mcfs.h \
  23. names.h \
  24. smbfs.h \
  25. tar.h \
  26. tcputil.h \
  27. utilvfs.h \
  28. vfs.h \
  29. xdirentry.h
  30. SMBFILES = smbfs.c
  31. if USE_SAMBA_FS
  32. SMB_NETFILES = $(SMBFILES)
  33. endif
  34. UNDELFILES = undelfs.c
  35. if USE_UNDEL_FS
  36. UNDEL_FILES = $(UNDELFILES)
  37. endif
  38. NETFILES = tcputil.c fish.c ftpfs.c mcfs.c utilvfs.c $(SMB_NETFILES)
  39. NONETFILES = $(BASICFILES) $(UNDEL_FILES)
  40. EXTRA_DIST = ChangeLog README README.fish \
  41. $(VFSHDRS) $(BASICFILES) $(NETFILES) $(SMBFILES) $(UNDELFILES)
  42. dist-hook:
  43. mkdir $(distdir)/samba
  44. mkdir $(distdir)/samba/include
  45. mkdir $(distdir)/samba/lib
  46. mkdir $(distdir)/samba/libsmb
  47. mkdir $(distdir)/samba/param
  48. mkdir $(distdir)/samba/tests
  49. for I in $(SAMBA_DIST); do \
  50. cp -p $(srcdir)/samba/$$I $(distdir)/samba/$$I || exit 1; \
  51. done
  52. mostlyclean-local:
  53. if test -f samba/Makefile; then \
  54. (cd samba && $(MAKE) mostlyclean) \
  55. else :; fi
  56. clean-local:
  57. if test -f samba/Makefile; then \
  58. (cd samba && $(MAKE) clean) \
  59. else :; fi
  60. distclean-local:
  61. if test -f samba/Makefile; then \
  62. (cd samba && $(MAKE) distclean) \
  63. else :; fi
  64. if USE_VFS
  65. noinst_LIBRARIES = libvfs-mc.a
  66. else
  67. noinst_LIBRARIES =
  68. endif
  69. if USE_VFS_NET
  70. libvfs_mc_a_SOURCES = $(NETFILES) $(NONETFILES)
  71. else
  72. libvfs_mc_a_SOURCES = $(NONETFILES)
  73. endif
  74. if MCSERV_INSTALL
  75. sbin_PROGRAMS = mcserv
  76. else
  77. if USE_VFS
  78. noinst_PROGRAMS = mcserv
  79. endif
  80. endif
  81. mcserv_SOURCES = mcserv.c tcputil.c
  82. mcserv_LDFLAGS = $(SHADOWLIB) $(TERMNET) $(PAMLIBS) $(LCRYPT)
  83. if USE_SAMBA_FS
  84. libvfs-mc.a: $(libvfs_mc_a_OBJECTS) $(libvfs_mc_a_DEPENDENCIES) samba/libsamba.a
  85. rm -f $@ libtmp.a
  86. cp -f samba/libsamba.a libtmp.a
  87. $(libvfs_mc_a_AR) libtmp.a $(libvfs_mc_a_OBJECTS) $(libvfs_mc_a_LIBADD)
  88. mv libtmp.a $@
  89. $(RANLIB) $@
  90. endif
  91. samba/libsamba.a:
  92. cd samba && $(MAKE) libsamba.a
  93. SAMBA_DIST = \
  94. Makefile.in \
  95. aclocal.m4 \
  96. architecture.doc \
  97. configure.in \
  98. configure \
  99. internals.doc \
  100. parsing.doc \
  101. include/byteorder.h \
  102. include/charset.h \
  103. include/client.h \
  104. include/config.h.in \
  105. include/dlinklist.h \
  106. include/includes.h \
  107. include/kanji.h \
  108. include/local.h \
  109. include/nameserv.h \
  110. include/ntdomain.h \
  111. include/nterr.h \
  112. include/proto.h \
  113. include/rpc_dce.h \
  114. include/rpc_lsa.h \
  115. include/rpc_misc.h \
  116. include/rpc_netlogon.h \
  117. include/rpc_reg.h \
  118. include/rpc_samr.h \
  119. include/rpc_secdes.h \
  120. include/rpc_srvsvc.h \
  121. include/rpc_wkssvc.h \
  122. include/rpcclient.h \
  123. include/smb.h \
  124. include/stamp-h.in \
  125. include/trans2.h \
  126. include/version.h \
  127. lib/charcnv.c \
  128. lib/charset.c \
  129. lib/debug.c \
  130. lib/doscalls.c \
  131. lib/genrand.c \
  132. lib/interface.c \
  133. lib/kanji.c \
  134. lib/md4.c \
  135. lib/netmask.c \
  136. lib/slprintf.c \
  137. lib/system.c \
  138. lib/time.c \
  139. lib/username.c \
  140. lib/util.c \
  141. lib/util_file.c \
  142. lib/util_sock.c \
  143. lib/util_str.c \
  144. lib/util_unistr.c \
  145. libsmb/clientgen.c \
  146. libsmb/namequery.c \
  147. libsmb/nmblib.c \
  148. libsmb/nterr.c \
  149. libsmb/pwd_cache.c \
  150. libsmb/smbdes.c \
  151. libsmb/smbencrypt.c \
  152. libsmb/smberr.c \
  153. param/loadparm.c \
  154. param/params.c \
  155. tests/README \
  156. tests/ftruncate.c \
  157. tests/getgroups.c \
  158. tests/summary.c \
  159. tests/trivial.c