Simplify configure and add target optimizations,
[openwrt.git] / openwrt / package / cifsmount / Makefile
index 81eac62..2cb64d4 100644 (file)
@@ -14,13 +14,17 @@ $(eval $(call PKG_template,CIFSMOUNT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$
 
 $(PKG_BUILD_DIR)/.prepared:
        mkdir -p $@
 
 $(PKG_BUILD_DIR)/.prepared:
        mkdir -p $@
+       touch $@
+
+$(PKG_BUILD_DIR)/.configured:
+       touch $@
 
 $(PKG_BUILD_DIR)/.built:
 
 $(PKG_BUILD_DIR)/.built:
-       $(TARGET_CC) -o $(PKG_BUILD_DIR)/mount.cifs mount.cifs.c
-       $(STRIP) $(PKG_BUILD_DIR)/mount.cifs
+       $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/mount.cifs mount.cifs.c
        touch $@
 
 $(IPKG_CIFSMOUNT):
        touch $@
 
 $(IPKG_CIFSMOUNT):
-       mkdir -p $(IDIR_CIFSMOUNT)/sbin
-       install -m 0755 $(PKG_BUILD_DIR)/mount.cifs $(IDIR_CIFSMOUNT)/sbin/mount.cifs
+       install -d -m0755 $(IDIR_CIFSMOUNT)/sbin
+       install -m0755 $(PKG_BUILD_DIR)/mount.cifs $(IDIR_CIFSMOUNT)/sbin/
+       $(RSTRIP) $(IDIR_CIFSMOUNT)
        $(IPKG_BUILD) $(IDIR_CIFSMOUNT) $(PACKAGE_DIR)
        $(IPKG_BUILD) $(IDIR_CIFSMOUNT) $(PACKAGE_DIR)
This page took 0.030217 seconds and 4 git commands to generate.