From: Florian Fainelli Date: Sun, 22 Nov 2009 23:51:37 +0000 (+0000) Subject: fix compilation of digitemp w/ and w/o usb, cleanup Makefile (#6170) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7c7f425fdf68cfef8542de6d0cc514242b63ff95;p=openwrt%2Fsvn-archive%2Fpackages.git fix compilation of digitemp w/ and w/o usb, cleanup Makefile (#6170) SVN-Revision: 18487 --- diff --git a/utils/digitemp/Makefile b/utils/digitemp/Makefile index be593dd50..070bfafae 100644 --- a/utils/digitemp/Makefile +++ b/utils/digitemp/Makefile @@ -57,24 +57,24 @@ define Build/Compile $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -DLINUX $(TARGET_CPPFLAGS) \ -I./src -I./userial" \ - LIBS="$(TARGET_LDFLAGS) -lusb -lm" \ + LIBS="$(TARGET_LDFLAGS)" \ DESTDIR="$(PKG_INSTALL_DIR)" \ ds9097 $(MAKE) -C $(PKG_BUILD_DIR) \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -DLINUX $(TARGET_CPPFLAGS) \ -I./src -I./userial -DOWUSB" \ - LIBS="$(TARGET_LDFLAGS) -lusb -lm" \ + LIBS="$(TARGET_LDFLAGS) -lusb -lm -DOWUSB" \ DESTDIR="$(PKG_INSTALL_DIR)" \ - ds2490 + clean ds2490 endef -define Package/digitemp/install +define Package/digitemp/install mkdir -p $(1)/usr/bin/ $(CP) $(PKG_BUILD_DIR)/digitemp_DS9097 $(1)/usr/bin/ endef -define Package/digitemp-usb/install +define Package/digitemp-usb/install mkdir -p $(1)/usr/bin/ $(CP) $(PKG_BUILD_DIR)/digitemp_DS2490 $(1)/usr/bin/ endef