diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-05-19 20:31:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-05-19 20:31:20 +0000 |
commit | ccbaf204138ed1c1e037206345ec5a2d4fe3042e (patch) | |
tree | b1d33334ac05a7b8f5e23f078d154ad390c0501f /package/olsrd/Makefile | |
parent | ed564aa20441e012ba8a27c4fe909ac172b908af (diff) | |
download | upstream-ccbaf204138ed1c1e037206345ec5a2d4fe3042e.tar.gz upstream-ccbaf204138ed1c1e037206345ec5a2d4fe3042e.tar.bz2 upstream-ccbaf204138ed1c1e037206345ec5a2d4fe3042e.zip |
fix olsrd build
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@961 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/olsrd/Makefile')
-rw-r--r-- | package/olsrd/Makefile | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/package/olsrd/Makefile b/package/olsrd/Makefile index 0060fd9c74..435c6a27d8 100644 --- a/package/olsrd/Makefile +++ b/package/olsrd/Makefile @@ -12,7 +12,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_CAT:=bzcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(TOPDIR)/package/rules.mk @@ -20,7 +19,7 @@ define PKG_mod_template $$(IPKG_$(1)): install -d -m0755 $$(IDIR_$(1))/usr/lib - install -m0755 $(PKG_INSTALL_DIR)/usr/lib/olsrd_$(2).so.* $$(IDIR_$(1))/usr/lib/ + install -m0755 $(PKG_BUILD_DIR)/lib/$(2)*/olsrd_$(2).so.* $$(IDIR_$(1))/usr/lib/ $(RSTRIP) $$(IDIR_$(1)) $(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR) @@ -46,23 +45,22 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.built: $(MAKE) -C "$(PKG_BUILD_DIR)" \ - $(TARGET_CONFIGURE_OPTS) \ - OFLAGS="$(TARGET_CFLAGS)" \ OS="linux" \ - all libs - rm -rf $(PKG_INSTALL_DIR) - mkdir -p $(PKG_INSTALL_DIR) + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS) -DOLSR_PLUGIN -I. -Isrc -Dlinux -I../../src -DNODEBUG" \ + libs $(MAKE) -C "$(PKG_BUILD_DIR)" \ - INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \ OS="linux" \ - install install_libs + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS) -I. -Isrc -Dlinux -I../../src -DNODEBUG" \ + all touch $(PKG_BUILD_DIR)/.built $(IPKG_OLSRD): install -d -m0755 $(IDIR_OLSRD)/etc - cp -fpR $(PKG_INSTALL_DIR)/etc/olsrd.conf $(IDIR_OLSRD)/etc/ + cp -fpR $(PKG_BUILD_DIR)/files/olsrd.conf.default.rfc $(IDIR_OLSRD)/etc/olsrd.conf install -d -m0755 $(IDIR_OLSRD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/olsrd $(IDIR_OLSRD)/usr/sbin/ + cp -fpR $(PKG_BUILD_DIR)/olsrd $(IDIR_OLSRD)/usr/sbin/ install -d -m0755 $(IDIR_OLSRD)/etc/init.d cp -fpR ./files/olsrd.init $(IDIR_OLSRD)/etc/init.d/olsrd $(RSTRIP) $(IDIR_OLSRD) |