X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/fdf2e0f8d9a97ae49f5ffce85bf775605903dc18..9268f753e21898a67bb74ede36d530307cc682ea:/openwrt/package/bluez-libs/Makefile diff --git a/openwrt/package/bluez-libs/Makefile b/openwrt/package/bluez-libs/Makefile index 6a6559084..7490fa8c8 100644 --- a/openwrt/package/bluez-libs/Makefile +++ b/openwrt/package/bluez-libs/Makefile @@ -22,12 +22,12 @@ $(PKG_BUILD_DIR)/.source: $(DL_DIR)/$(PKG_SOURCE) zcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - touch $(BLUEZLIBS_DIR)/.source -$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared +$(PKG_BUILD_DIR)/.configured: (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ CPPFLAGS="-I$(STAGING_DIR)/usr/include" \ - LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ + LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \ sys_lib_dlsearch_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \ sys_lib_search_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \ ./configure \ @@ -58,7 +58,7 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared ) touch $@ -$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured +$(PKG_BUILD_DIR)/.built: rm -rf $(PKG_INSTALL_DIR) mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ @@ -81,7 +81,8 @@ $(STAGING_DIR)/usr/lib/libbluetooth.so: $(PKG_BUILD_DIR)/.built install-dev: $(STAGING_DIR)/usr/lib/libbluetooth.so uninstall-dev: + rm -rf $(STAGING_DIR)/usr/include/bluetooth rm -rf $(STAGING_DIR)/usr/lib/libbluetooth.{a,so*} -compile: install-dev -clean: uninstall-dev +compile-targets: install-dev +clean-targets: uninstall-dev