Use TARGET_CFLAGS, strip at package time
authorNicolas Thill <nico@openwrt.org>
Thu, 19 May 2005 23:12:35 +0000 (23:12 +0000)
committerNicolas Thill <nico@openwrt.org>
Thu, 19 May 2005 23:12:35 +0000 (23:12 +0000)
SVN-Revision: 983

openwrt/package/cifsmount/Makefile
openwrt/package/robocfg/Makefile

index d0d186a8d362576c836d6a05540ad5c3e3eebc94..2cb64d45fc8550af8bb74286b7e540501b501672 100644 (file)
@@ -20,11 +20,11 @@ $(PKG_BUILD_DIR)/.configured:
        touch $@
 
 $(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):
-       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)
index bc68f890583ab7c1d54c3d5f24cd5b5c6a8dcd8b..6f511c043375bc82d9ec13746d154d8173e53d03 100644 (file)
@@ -17,11 +17,11 @@ $(PKG_BUILD_DIR)/.prepared:
        touch $@
 
 $(PKG_BUILD_DIR)/.built:
-       $(TARGET_CC) -o $(PKG_BUILD_DIR)/robocfg robocfg.c
-       $(STRIP) $(PKG_BUILD_DIR)/robocfg
+       $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/robocfg robocfg.c
        touch $@
 
 $(IPKG_ROBOCFG):
-       mkdir -p $(IDIR_ROBOCFG)/sbin
-       install -m 0755 $(PKG_BUILD_DIR)/robocfg $(IDIR_ROBOCFG)/sbin/robocfg
+       install -d -m0755 $(IDIR_ROBOCFG)/sbin
+       install -m0755 $(PKG_BUILD_DIR)/robocfg $(IDIR_ROBOCFG)/sbin/
+       $(RSTRIP) $(IDIR_ROBOCFG)
        $(IPKG_BUILD) $(IDIR_ROBOCFG) $(PACKAGE_DIR)