|
@@ -11,20 +11,28 @@ DROPWATCH_DEPENDENCIES = binutils libnl readline host-pkgconf
|
|
DROPWATCH_LICENSE = GPLv2
|
|
DROPWATCH_LICENSE = GPLv2
|
|
DROPWATCH_LICENSE_FILES = COPYING
|
|
DROPWATCH_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
+# libbfd may be linked to libintl
|
|
|
|
+# Ugly... but LDFLAGS are hardcoded anyway
|
|
|
|
+ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
|
|
|
+DROPWATCH_LDFLAGS = LDFLAGS="-lintl -lbfd -lreadline -lnl-3 -lnl-genl-3"
|
|
|
|
+endif
|
|
|
|
+
|
|
define DROPWATCH_BUILD_CMDS
|
|
define DROPWATCH_BUILD_CMDS
|
|
- $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) build
|
|
|
|
|
|
+ $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
|
|
+ $(DROPWATCH_LDFLAGS) build
|
|
endef
|
|
endef
|
|
|
|
|
|
define DROPWATCH_CLEAN_CMDS
|
|
define DROPWATCH_CLEAN_CMDS
|
|
- $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) clean
|
|
|
|
|
|
+ $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) clean
|
|
endef
|
|
endef
|
|
|
|
|
|
define DROPWATCH_INSTALL_TARGET_CMDS
|
|
define DROPWATCH_INSTALL_TARGET_CMDS
|
|
- $(INSTALL) -D -m 0755 $(@D)/src/dropwatch $(TARGET_DIR)/usr/bin/dropwatch
|
|
|
|
|
|
+ $(INSTALL) -D -m 0755 $(@D)/src/dropwatch \
|
|
|
|
+ $(TARGET_DIR)/usr/bin/dropwatch
|
|
endef
|
|
endef
|
|
|
|
|
|
define DROPWATCH_UNINSTALL_CMDS
|
|
define DROPWATCH_UNINSTALL_CMDS
|
|
- rm -f $(TARGET_DIR)/usr/bin/dropwatch
|
|
|
|
|
|
+ rm -f $(TARGET_DIR)/usr/bin/dropwatch
|
|
endef
|
|
endef
|
|
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(generic-package))
|