Makefile.am 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. if USE_SAMBA_FS
  2. SAMBA_CFLAGS = -DCONFIGDIR=\""@configdir@"\"
  3. SAMBA_SUBDIRS = samba
  4. endif
  5. DIST_SUBDIRS = extfs
  6. SUBDIRS = extfs $(SAMBA_SUBDIRS)
  7. AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(SAMBA_CFLAGS)
  8. AM_CPPFLAGS = -DLIBEXECDIR=\""$(libexecdir)/@PACKAGE@/"\"
  9. BASICFILES = \
  10. cpio.c \
  11. direntry.c \
  12. extfs.c \
  13. gc.c \
  14. local.c \
  15. tar.c \
  16. sfs.c \
  17. utilvfs.c \
  18. vfs.c
  19. VFSHDRS = \
  20. fish.h \
  21. ftpfs.h \
  22. gc.h \
  23. local.h \
  24. mcfs.h \
  25. mcfsutil.h \
  26. netutil.h \
  27. smbfs.h \
  28. utilvfs.h \
  29. vfs.h \
  30. vfs-impl.h \
  31. xdirentry.h
  32. SMBFILES = smbfs.c
  33. if USE_SAMBA_FS
  34. SMB_NETFILES = $(SMBFILES)
  35. endif
  36. UNDELFILES = undelfs.c
  37. if ENABLE_VFS_UNDELFS
  38. UNDEL_FILES = $(UNDELFILES)
  39. endif
  40. NETFILES = netutil.c fish.c ftpfs.c mcfs.c mcfsutil.c $(SMB_NETFILES)
  41. NONETFILES = $(BASICFILES) $(UNDEL_FILES)
  42. EXTRA_DIST = HACKING README README.fish \
  43. $(VFSHDRS) $(BASICFILES) $(NETFILES) $(SMBFILES) $(UNDELFILES)
  44. dist-hook:
  45. $(mkinstalldirs) $(distdir)/samba
  46. $(mkinstalldirs) $(distdir)/samba/include
  47. $(mkinstalldirs) $(distdir)/samba/lib
  48. $(mkinstalldirs) $(distdir)/samba/libsmb
  49. $(mkinstalldirs) $(distdir)/samba/param
  50. for I in $(SAMBA_DIST); do \
  51. cp -p $(srcdir)/samba/$$I $(distdir)/samba/$$I || exit 1; \
  52. done
  53. mostlyclean-local:
  54. if test -f samba/Makefile; then \
  55. (cd samba && $(MAKE) mostlyclean) \
  56. else :; fi
  57. clean-local:
  58. if test -f samba/Makefile; then \
  59. (cd samba && $(MAKE) clean) \
  60. else :; fi
  61. distclean-local:
  62. if test -f samba/Makefile; then \
  63. (cd samba && $(MAKE) distclean) \
  64. else :; fi
  65. if ENABLE_VFS
  66. noinst_LTLIBRARIES = libvfs-mc.la
  67. else
  68. noinst_LTLIBRARIES =
  69. endif
  70. if ENABLE_VFS_NET
  71. libvfs_mc_la_SOURCES = $(NETFILES) $(NONETFILES)
  72. else
  73. libvfs_mc_la_SOURCES = $(NONETFILES)
  74. endif
  75. if ENABLE_VFS
  76. if ENABLE_MCSERVER
  77. sbin_PROGRAMS = mcserv
  78. mcserv_SOURCES = mcserv.c
  79. mcserv_LDADD = $(MCSERVLIBS) $(GLIB_LIBS) libvfs-mc.la
  80. endif
  81. endif
  82. SAMBA_DIST = \
  83. Makefile.in \
  84. aclocal.m4 \
  85. configure.ac \
  86. configure \
  87. internals.doc \
  88. parsing.doc \
  89. include/byteorder.h \
  90. include/charset.h \
  91. include/client.h \
  92. include/config.h.in \
  93. include/includes.h \
  94. include/kanji.h \
  95. include/local.h \
  96. include/nameserv.h \
  97. include/nterr.h \
  98. include/proto.h \
  99. include/smb.h \
  100. include/stamp-h.in \
  101. include/trans2.h \
  102. include/version.h \
  103. lib/charcnv.c \
  104. lib/charset.c \
  105. lib/debug.c \
  106. lib/interface.c \
  107. lib/kanji.c \
  108. lib/md4.c \
  109. lib/netmask.c \
  110. lib/slprintf.c \
  111. lib/system.c \
  112. lib/time.c \
  113. lib/username.c \
  114. lib/util.c \
  115. lib/util_file.c \
  116. lib/util_sock.c \
  117. lib/util_str.c \
  118. libsmb/clientgen.c \
  119. libsmb/namequery.c \
  120. libsmb/nmblib.c \
  121. libsmb/nterr.c \
  122. libsmb/pwd_cache.c \
  123. libsmb/smbdes.c \
  124. libsmb/smbencrypt.c \
  125. libsmb/smberr.c \
  126. param/loadparm.c \
  127. param/params.c