minidlna support now Samsung TV C550/C650 (thx amir909)
[tomato.git] / release / src / router / samba3 / Makefile
bloba7f8ca1246bb710f4de981c39abeb8e8608d5841
1 include ../common.mak
3 srcdir=source
5 SMBCFLAGS = $(EXTRACFLAGS) -Os -ffunction-sections -fdata-sections
6 SMBLDFLAGS = -ffunction-sections -fdata-sections -Wl,--gc-sections
8 ifneq ($(CONFIG_LINUX26),y)
9 SMBCFLAGS += -DMAX_DEBUG_LEVEL="-1"
10 endif
12 all: .conf apps
14 apps: .conf
15 mkdir -p $(srcdir)/bin
16 $(MAKE) -C $(srcdir) all
18 .conf:
19 cd $(srcdir) && \
20 ac_cv_lib_resolv_dn_expand=no \
21 ac_cv_lib_resolv__dn_expand=no \
22 ac_cv_lib_resolv___dn_expand=no \
23 ac_cv_func_prctl=no \
24 SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes \
25 linux_getgrouplist_ok=no \
26 samba_cv_fpie=no \
27 samba_cv_have_longlong=yes \
28 samba_cv_HAVE_INO64_T=yes \
29 samba_cv_HAVE_OFF64_T=yes \
30 samba_cv_HAVE_STRUCT_FLOCK64=yes \
31 samba_cv_SIZEOF_OFF_T=yes \
32 samba_cv_HAVE_MMAP=yes \
33 samba_cv_HAVE_FTRUNCATE_EXTEND=yes \
34 samba_cv_REPLACE_READDIR=no \
35 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no \
36 samba_cv_HAVE_SENDFILE=no \
37 samba_cv_HAVE_SENDFILE64=no \
38 samba_cv_HAVE_WRFILE_KEYTAB=yes \
39 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes \
40 samba_cv_HAVE_IFACE_IFCONF=yes \
41 samba_cv_have_setresgid=yes \
42 samba_cv_have_setresuid=yes \
43 samba_cv_USE_SETRESUID=yes \
44 samba_cv_USE_SETREUID=yes \
45 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes \
46 samba_cv_REALPATH_TAKES_NULL=no \
47 samba_cv_HAVE_FCNTL_LOCK=yes \
48 samba_cv_HAVE_SECURE_MKSTEMP=yes \
49 samba_cv_HAVE_NATIVE_ICONV=no \
50 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no \
51 samba_cv_HAVE_BROKEN_GETGROUPS=no \
52 samba_cv_HAVE_BROKEN_READDIR_NAME=no \
53 samba_cv_HAVE_C99_VSNPRINTF=yes \
54 samba_cv_HAVE_DEV64_T=no \
55 samba_cv_HAVE_DEVICE_MAJOR_FN=yes \
56 samba_cv_HAVE_DEVICE_MINOR_FN=yes \
57 samba_cv_HAVE_IFACE_AIX=no \
58 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no \
59 samba_cv_HAVE_KERNEL_SHARE_MODES=yes \
60 samba_cv_HAVE_MAKEDEV=yes \
61 samba_cv_HAVE_TRUNCATED_SALT=no \
62 samba_cv_HAVE_UNSIGNED_CHAR=no \
63 samba_cv_HAVE_WORKING_AF_LOCAL=yes \
64 samba_cv_HAVE_Werror=yes \
65 samba_cv_REPLACE_INET_NTOA=no \
66 samba_cv_SIZEOF_DEV_T=yes \
67 samba_cv_SIZEOF_INO_T=yes \
68 samba_cv_SIZEOF_TIME_T=no \
69 CPPFLAGS="-DNDEBUG -DSHMEM_SIZE=524288 -Dfcntl=fcntl64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_LARGE_FILES=1" \
70 CFLAGS="$(SMBCFLAGS)" LDFLAGS="$(SMBLDFLAGS)" CC=$(CC) LD=$(LD) AR=$(AR) RANLIB=$(RANLIB) \
71 $(CONFIGURE) \
72 --prefix=/usr \
73 --bindir=/usr/bin \
74 --sbindir=/usr/sbin \
75 --libdir=/etc \
76 --localstatedir=/var \
77 --with-configdir=/etc \
78 --with-rootsbindir=/usr/sbin \
79 --with-piddir=/var/run/samba \
80 --with-privatedir=/etc/samba \
81 --with-lockdir=/var/lock \
82 --with-syslog \
83 --with-included-popt=no \
84 --with-krb5=no \
85 --enable-shared \
86 --disable-static \
87 --disable-cups \
88 --disable-iprint \
89 --disable-pie \
90 --disable-fam \
91 --disable-dmalloc \
92 --disable-krb5developer \
93 --disable-developer \
94 --disable-debug \
95 --without-ads \
96 --without-acl-support \
97 --without-ldap \
98 --without-cifsmount \
99 --without-cifsupcall \
100 --without-cluster-support \
101 --without-sendfile-support \
102 --without-utmp \
103 --without-winbind \
104 --without-quotas \
105 --without-sys-quotas
106 touch .conf
107 mkdir -p $(srcdir)/bin
109 clean:
110 -$(MAKE) -C $(srcdir) distclean
111 @rm -f .conf
113 distclean: clean
114 @find $(srcdir) -name config.h | xargs rm -f
115 @find $(srcdir) -name Makefile | xargs rm -f
116 @find $(srcdir) -name config.status | xargs rm -f
117 @find $(srcdir) -name config.cache | xargs rm -f
119 install: all
120 @install -d $(INSTALLDIR)/usr/bin/
121 @install -d $(INSTALLDIR)/usr/sbin/
122 @install -d $(INSTALLDIR)/usr/lib/
123 @install -D $(srcdir)/bin/smbd $(INSTALLDIR)/usr/sbin/smbd
124 @install -D $(srcdir)/bin/nmbd $(INSTALLDIR)/usr/sbin/nmbd
125 @install -D $(srcdir)/bin/smbpasswd $(INSTALLDIR)/usr/bin/smbpasswd
126 @install -D $(srcdir)/bin/libbigballofmud.so $(INSTALLDIR)/usr/lib/libbigballofmud.so
128 $(STRIP) -s $(INSTALLDIR)/usr/sbin/smbd
129 $(STRIP) -s $(INSTALLDIR)/usr/sbin/nmbd
130 $(STRIP) -s $(INSTALLDIR)/usr/bin/smbpasswd
131 # do not strip shared library, it will be optimized by libfoo.pl
132 # $(STRIP) -s $(INSTALLDIR)/usr/lib/libbigballofmud.so