1all: .conf makesmb 2.conf: 3 cd source ; \ 4 ./configure --without-python \ 5 --with-included-popt \ 6 --without-acl-support \ 7 --without-spinlocks \ 8 --without-profiling-data \ 9 --without-syslog \ 10 --without-nisplus-home \ 11 --without-ldapsam \ 12 --without-pam_smbpass \ 13 --without-pam \ 14 --without-smbmount \ 15 --without-automount \ 16 --without-expsam \ 17 --without-krb5 \ 18 --without-dce-dfs \ 19 --without-vfs-afsacl \ 20 --without-fake-kaserver \ 21 --without-afs \ 22 --without-smbwrapper \ 23 --without-swatdir \ 24 --without-fhs \ 25 --disable-xmltest \ 26 --disable-dmalloc \ 27 --disable-krb5developer \ 28 --disable-developer \ 29 --disable-debug \ 30 --without-shared-modules \ 31 --without-readline \ 32 --without-utmp \ 33 --without-quotas \ 34 --without-sys-quotas \ 35 --without-ads \ 36 --disable-cups \ 37 --without-libsmbclient \ 38 --without-smbmount \ 39 --without-ldap \ 40 --target=mipsel-linux \ 41 --host=i686-linux \ 42 --without-winbind \ 43 --prefix=/usr/local/samba 44 45 touch .conf 46makesmb: 47#ifeq ($(PROFILE),WNDR3400) 48 cp config_WNDR3400.h source/include/config.h 49#endif 50 cd source ; make 51 52clean: .conf cleansmb 53 54cleansmb: 55 cd source ; make clean 56 57distclean: 58 rm -rf .conf 59 cd source ; make distclean 60 61install: 62 install -d $(TARGETDIR)/usr/local/ 63 install -d $(TARGETDIR)/usr/local/samba 64 install -d $(TARGETDIR)/usr/local/samba/lib 65 install -d $(TARGETDIR)/tmp/samba/ 66 install -d $(TARGETDIR)/tmp/samba/private 67 install -d $(TARGETDIR)/etc 68 install -m 755 data/group $(TARGETDIR)/etc 69 #install -m 755 data/smb.conf $(TARGETDIR)/usr/local/samba/lib 70 install -m 755 data/lmhosts $(TARGETDIR)/usr/local/samba/lib 71 install -m 755 source/bin/smb_pass $(TARGETDIR)/usr/local/samba/ 72 install -m 755 source/bin/nmbd $(TARGETDIR)/usr/local/samba/ 73 install -m 755 source/bin/smbd $(TARGETDIR)/usr/local/samba/ 74 $(STRIP) $(TARGETDIR)/usr/local/samba/smbd 75 $(STRIP) $(TARGETDIR)/usr/local/samba/nmbd 76 $(STRIP) $(TARGETDIR)/usr/local/samba/smb_pass 77 cd $(TARGETDIR)/usr/local/samba && unlink private || pwd 78 cd $(TARGETDIR)/usr/local/samba && unlink var || pwd 79 cd $(TARGETDIR)/usr/local/samba && unlink lock || pwd 80 cd $(TARGETDIR)/usr/local/samba && ln -sf ../../../tmp/samba/private private 81 cd $(TARGETDIR)/usr/local/samba && ln -sf ../../../var var 82 cd $(TARGETDIR)/usr/local/samba && ln -sf ../../../var/lock lock 83 cd $(TARGETDIR)/usr/local/samba/lib && ln -sf ../../../tmp/samba/private/smb.conf smb.conf 84 # 85 # dummy install for smbd printer part 86 # 87 #cp ../LPRng-3.8.32/printcap ./ 88 #install -m 755 printcap $(TARGETDIR)/etc 89 cd $(TARGETDIR)/etc && unlink passwd || pwd 90 #cd $(TARGETDIR)/etc && ln -sf ../var/samba/private/passwd passwd 91 cd $(TARGETDIR)/etc && ln -sf ../tmp/samba/private/passwd passwd 92 93