CIFSMOUNT_VERSION:=1.10 CIFSMOUNT_SOURCE:=mount.cifs.tar.bz2 CIFSMOUNT_DIR:=$(SOURCE_DIR)/cifsmount-$(CIFSMOUNT_VERSION) CIFSMOUNT_MAKE_DIR:=$(MAKE_DIR)/cifsmount CIFSMOUNT_TARGET_DIR:=$(PACKAGES_DIR)/cifsmount-$(CIFSMOUNT_VERSION)/root/usr/sbin CIFSMOUNT_BINARY:=mount.cifs CIFSMOUNT_PKG_VERSION:=0.1 CIFSMOUNT_PKG_SOURCE:=cifsmount-$(CIFSMOUNT_VERSION)-dsmod-$(CIFSMOUNT_PKG_VERSION).tar.bz2 CIFSMOUNT_PKG_SITE:=http://131.246.137.121/~metz/dsmod/packages #$(DL_DIR)/$(CIFSMOUNT_SOURCE): # wget -P $(DL_DIR) $(CIFSMOUNT_SITE)/$(CIFSMOUNT_SOURCE) $(DL_DIR)/$(CIFSMOUNT_PKG_SOURCE): @wget -P $(DL_DIR) $(CIFSMOUNT_PKG_SITE)/$(CIFSMOUNT_PKG_SOURCE) $(CIFSMOUNT_DIR)/.unpacked: $(CIFSMOUNT_MAKE_DIR)/$(CIFSMOUNT_SOURCE) mkdir -p $(SOURCE_DIR)/cifsmount-$(CIFSMOUNT_VERSION) tar -C $(CIFSMOUNT_DIR) $(VERBOSE) -xjf $(CIFSMOUNT_MAKE_DIR)/$(CIFSMOUNT_SOURCE) # for i in $(CIFSMOUNT_MAKE_DIR)/patches/*.patch; do \ # patch -d $(CIFSMOUNT_DIR) -p1 < $$i; \ # done touch $@ $(CIFSMOUNT_DIR)/$(CIFSMOUNT_BINARY): $(CIFSMOUNT_DIR)/.unpacked (cd $(CIFSMOUNT_DIR); \ PATH=$(TARGET_PATH) \ $(TARGET_CC) $(TARGET_CFLAGS) -static-libgcc -o mount.cifs mount.cifs.c\ ) $(PACKAGES_DIR)/.cifsmount-$(CIFSMOUNT_VERSION): $(DL_DIR)/$(CIFSMOUNT_PKG_SOURCE) @tar -C $(PACKAGES_DIR) -xjf $(DL_DIR)/$(CIFSMOUNT_PKG_SOURCE) @touch $@ cifsmount: $(PACKAGES_DIR)/.cifsmount-$(CIFSMOUNT_VERSION) cifsmount-package: $(PACKAGES_DIR)/.cifsmount-$(CIFSMOUNT_VERSION) tar -C $(PACKAGES_DIR) $(VERBOSE) --exclude .svn -cjf $(PACKAGES_BUILD_DIR)/$(CIFSMOUNT_PKG_SOURCE) cifsmount-$(CIFSMOUNT_VERSION) cifsmount-precompiled: $(CIFSMOUNT_DIR)/$(CIFSMOUNT_BINARY) cifsmount $(TARGET_STRIP) $(CIFSMOUNT_DIR)/$(CIFSMOUNT_BINARY) cp $(CIFSMOUNT_DIR)/$(CIFSMOUNT_BINARY) $(CIFSMOUNT_TARGET_DIR)/ cifsmount-source: $(CIFSMOUNT_DIR)/.unpacked $(PACKAGES_DIR)/.cifsmount-$(CIFSMOUNT_VERSION) cifsmount-clean: -$(MAKE) -C $(CIFSMOUNT_DIR) clean rm -f $(PACKAGES_BUILD_DIR)/$(CIFSMOUNT_PKG_SOURCE) cifsmount-dirclean: rm -rf $(CIFSMOUNT_DIR) rm -rf $(PACKAGES_DIR)/cifsmount-$(CIFSMOUNT_VERSION) rm -f $(PACKAGES_DIR)/.cifsmount-$(CIFSMOUNT_VERSION) cifsmount-list: ifeq ($(strip $(DS_PACKAGE_CIFSMOUNT)),y) @echo "S40cifsmount-$(CIFSMOUNT_VERSION)" >> .static else @echo "S40cifsmount-$(CIFSMOUNT_VERSION)" >> .dynamic endif