Makefile.am 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. BASICFILES = \
  9. cpio.c \
  10. direntry.c \
  11. extfs.c \
  12. gc.c \
  13. local.c \
  14. tar.c \
  15. sfs.c \
  16. utilvfs.c \
  17. vfs.c
  18. VFSHDRS = \
  19. fish.h \
  20. ftpfs.h \
  21. gc.h \
  22. local.h \
  23. mcfs.h \
  24. mcfsutil.h \
  25. smbfs.h \
  26. tcputil.h \
  27. utilvfs.h \
  28. vfs.h \
  29. vfs-impl.h \
  30. xdirentry.h
  31. SMBFILES = smbfs.c
  32. if USE_SAMBA_FS
  33. SMB_NETFILES = $(SMBFILES)
  34. endif
  35. UNDELFILES = undelfs.c
  36. if USE_UNDEL_FS
  37. UNDEL_FILES = $(UNDELFILES)
  38. endif
  39. NETFILES = tcputil.c fish.c ftpfs.c mcfs.c mcfsutil.c $(SMB_NETFILES)
  40. NONETFILES = $(BASICFILES) $(UNDEL_FILES)
  41. EXTRA_DIST = HACKING README README.fish \
  42. $(VFSHDRS) $(BASICFILES) $(NETFILES) $(SMBFILES) $(UNDELFILES)
  43. dist-hook:
  44. $(mkinstalldirs) $(distdir)/samba
  45. $(mkinstalldirs) $(distdir)/samba/include
  46. $(mkinstalldirs) $(distdir)/samba/lib
  47. $(mkinstalldirs) $(distdir)/samba/libsmb
  48. $(mkinstalldirs) $(distdir)/samba/param
  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 ENABLE_MCSERVER
  75. sbin_PROGRAMS = mcserv
  76. mcserv_SOURCES = mcserv.c mcfsutil.c
  77. mcserv_LDADD = $(MCSERVLIBS)
  78. endif
  79. SAMBA_DIST = \
  80. Makefile.in \
  81. aclocal.m4 \
  82. configure.ac \
  83. configure \
  84. internals.doc \
  85. parsing.doc \
  86. include/byteorder.h \
  87. include/charset.h \
  88. include/client.h \
  89. include/config.h.in \
  90. include/includes.h \
  91. include/kanji.h \
  92. include/local.h \
  93. include/nameserv.h \
  94. include/nterr.h \
  95. include/proto.h \
  96. include/smb.h \
  97. include/stamp-h.in \
  98. include/trans2.h \
  99. include/version.h \
  100. lib/charcnv.c \
  101. lib/charset.c \
  102. lib/debug.c \
  103. lib/interface.c \
  104. lib/kanji.c \
  105. lib/md4.c \
  106. lib/netmask.c \
  107. lib/slprintf.c \
  108. lib/system.c \
  109. lib/time.c \
  110. lib/username.c \
  111. lib/util.c \
  112. lib/util_file.c \
  113. lib/util_sock.c \
  114. lib/util_str.c \
  115. libsmb/clientgen.c \
  116. libsmb/namequery.c \
  117. libsmb/nmblib.c \
  118. libsmb/nterr.c \
  119. libsmb/pwd_cache.c \
  120. libsmb/smbdes.c \
  121. libsmb/smbencrypt.c \
  122. libsmb/smberr.c \
  123. param/loadparm.c \
  124. param/params.c