6 SMBCFLAGS
= $(EXTRACFLAGS
) -Os
-ffunction-sections
-fdata-sections
7 SMBLDFLAGS
= -ffunction-sections
-fdata-sections
-Wl
,--gc-sections
9 ifeq ($(RTCONFIG_BCMARM
), y
)
13 ifneq ($(CONFIG_LINUX26
),y
)
14 SMBCFLAGS
+= -DMAX_DEBUG_LEVEL
="-1"
17 ifeq ($(RTCONFIG_BCMARM
), y
)
26 mkdir
-p
$(srcdir)/bin
27 $(MAKE
) -C
$(srcdir) all
31 export SMB_BUILD_CC_NEGATIVE_ENUM_VALUES
=yes
; \
32 export libreplace_cv_READDIR_GETDIRENTRIES
=no
; \
33 export libreplace_cv_READDIR_GETDENTS
=no
; \
34 export linux_getgrouplist_ok
=no
; \
35 export samba_cv_REPLACE_READDIR
=no
; \
36 export samba_cv_HAVE_WRFILE_KEYTAB
=yes
; \
37 export samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
; \
38 export samba_cv_HAVE_KERNEL_CHANGE_NOTIF
=yes
; \
39 export samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
; \
40 export samba_cv_HAVE_IFACE_IFCONF
=yes
; \
41 export samba_cv_USE_SETRESUID
=yes
; \
47 --localstatedir
=/var \
48 --host
=$(HOST
)-linux \
49 --with-configdir
=/etc \
50 --with-rootsbindir
=/usr
/sbin \
51 --with-piddir
=/var
/run
/samba \
52 --with-privatedir
=/etc
/samba \
53 --with-lockdir
=/var
/lock \
54 --with-included-popt
=no \
56 --with-shared-modules
=MODULES \
64 --disable-krb5developer \
68 --without-acl-support \
71 --without-cifsupcall \
72 --without-cluster-support \
78 mkdir
-p
$(srcdir)/bin
81 -$(MAKE
) -C
$(srcdir) distclean
85 @find
$(srcdir) -name config.h | xargs
rm -f
86 @find
$(srcdir) -name Makefile | xargs
rm -f
87 @find
$(srcdir) -name config.status | xargs
rm -f
88 @find
$(srcdir) -name config.cache | xargs
rm -f
91 @
install -d
$(INSTALLDIR
)/usr
/bin
/
92 @
install -d
$(INSTALLDIR
)/usr
/sbin
/
93 @
install -d
$(INSTALLDIR
)/usr
/lib
/
94 @
install -D
$(srcdir)/bin
/smbd
$(INSTALLDIR
)/usr
/sbin
/smbd
95 @
install -D
$(srcdir)/bin
/nmbd
$(INSTALLDIR
)/usr
/sbin
/nmbd
96 @
install -D
$(srcdir)/bin
/smbpasswd
$(INSTALLDIR
)/usr
/bin
/smbpasswd
97 # @install -D $(srcdir)/bin/libsmbclient.so $(INSTALLDIR)/usr/lib/libsmbclient.so
98 @
install -D
$(srcdir)/bin
/libbigballofmud.so
.0 $(INSTALLDIR
)/usr
/lib
/libbigballofmud.so
.0
99 ifeq ($(RTCONFIG_BCMARM
),y
)
100 @cp prebuilt.arm
/lib
/libresolv.so
.0 $(INSTALLDIR
)/usr
/lib
/libresolv.so
.0
102 @cp prebuilt
/lib
/libresolv.so
.0 $(INSTALLDIR
)/usr
/lib
/libresolv.so
.0
104 ###############################Charles Modify##########
106 $(STRIP
) -s
$(INSTALLDIR
)/usr
/sbin
/smbd
107 $(STRIP
) -s
$(INSTALLDIR
)/usr
/sbin
/nmbd
108 $(STRIP
) -s
$(INSTALLDIR
)/usr
/bin
/smbpasswd
109 # $(STRIP) -s $(INSTALLDIR)/usr/lib/libsmbclient.so
110 # do not strip shared library, it will be optimized by libfoo.pl
111 # $(STRIP) -s $(INSTALLDIR)/usr/lib/libbigballofmud.so