fix compilation of digitemp w/ and w/o usb, cleanup Makefile (#6170)
authorFlorian Fainelli <florian@openwrt.org>
Sun, 22 Nov 2009 23:51:37 +0000 (23:51 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 22 Nov 2009 23:51:37 +0000 (23:51 +0000)
SVN-Revision: 18487

utils/digitemp/Makefile

index be593dd50ef9d95f55c4ef8a80843743da9b3f79..070bfafae9f218f4c94fa2f9e3c9178051595ae8 100644 (file)
@@ -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