ifdef CONFIG_USER_SAMBA_SHARED SHARED := enable else SHARED := disable endif CONFOPTS = --prefix= --with-smbmount --with-privatedir=/etc/config \ --with-configdir=/etc/config --with-logfilebase=/var/log \ --without-ldap --disable-cups \ --$(SHARED)-shared --disable-debug --disable-developer \ --disable-krb5developer --disable-dmalloc --disable-nls ifeq ($(ARCH),arm) CFLAGS := $(CFLAGS:-O1=-Os) endif all: build/build $(MAKE) -C build build/build: makefile rm -rf build mkdir build (cd build; sh ../configure $(CONFIGURE_OPTS) $(CONFOPTS)) touch build/build clean: rm -rf build romfs: $(ROMFSINST) -e CONFIG_USER_SAMBA_SHARED build/bin/libsmbclient.so /lib/libsmbclient.so.0 $(ROMFSINST) -e CONFIG_USER_SAMBA_NMBD build/bin/nmbd /bin/nmbd $(ROMFSINST) -e CONFIG_USER_SAMBA_SMBD build/bin/smbd /bin/smbd $(ROMFSINST) -e CONFIG_USER_SAMBA_SMBD build/bin/smbpasswd /bin/smbpasswd $(ROMFSINST) -e CONFIG_USER_SAMBA_SMBMOUNT build/bin/smbmnt /bin/smbmnt $(ROMFSINST) -e CONFIG_USER_SAMBA_SMBMOUNT build/bin/smbmount /bin/smbmount $(ROMFSINST) -e CONFIG_USER_SAMBA_SMBUMOUNT build/bin/smbumount /bin/smbumount