use target optimization flags, Makefile cleanup
authorNicolas Thill <nico@openwrt.org>
Sat, 28 Oct 2006 13:37:33 +0000 (13:37 +0000)
committerNicolas Thill <nico@openwrt.org>
Sat, 28 Oct 2006 13:37:33 +0000 (13:37 +0000)
SVN-Revision: 5321

net/wdiag/Makefile

index d2871caeff50982a2275f8ba099e1580d390b728..ac90a15c7207abf2a0f571d2961952dbf09b5d80 100644 (file)
@@ -11,14 +11,13 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=wdiag
 PKG_VERSION:=0.8
 PKG_RELEASE:=1
-PKG_MD5SUM:=248bc2ca318f697e9edce1af945c57bd
 
-PKG_SOURCE_URL:=@SF/wdiag
+PKG_MD5SUM:=248bc2ca318f697e9edce1af945c57bd
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
+PKG_SOURCE_URL:=@SF/wdiag
 PKG_CAT:=zcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
-PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -26,19 +25,19 @@ define Package/wdiag
   SECTION:=net
   CATEGORY:=Network
   TITLE:=Westell DSL Modem Diagnostics for Linux
-  DESCRIPTION:=A collection of utilities to get DSL stats from Westell DSL modems.\\\
+  DESCRIPTION:=A collection of utilities to get DSL stats from Westell DSL modems.
   URL:=http://sourceforge.net/projects/wdiag/
 endef
 
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)/src \
-       $(TARGET_CONFIGURE_OPTS) \
-       prefix="$(PKG_INSTALL_DIR)/usr"
+               $(TARGET_CONFIGURE_OPTS) \
+               CFLAGS="$(TARGET_CFLAGS)"
 endef
 
 define Package/wdiag/install
        install -m0755 -d $(1)/usr/sbin
-       $(CP) $(PKG_BUILD_DIR)/src/w{start,stop,estell} $(1)/usr/sbin
+       $(CP) $(PKG_BUILD_DIR)/src/w{start,stop,estell} $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,wdiag))