X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=libs%2Flibnids%2FMakefile;h=21c0de1e568e86d0e1a12d0e4c490ce8c57759f8;hp=450afb18a5f6d410ba59f330c117f0a02f78e846;hb=6d892c2a3f1cd389aed7054ebfc052da37031ec5;hpb=acdb0e81d9f354161b53b74d9e4ca280a7762bf0 diff --git a/libs/libnids/Makefile b/libs/libnids/Makefile index 450afb18a5..21c0de1e56 100644 --- a/libs/libnids/Makefile +++ b/libs/libnids/Makefile @@ -1,10 +1,9 @@ # -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2009 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id$ include $(TOPDIR)/rules.mk @@ -16,9 +15,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.packetfactory.net/projects/libnids/dist/ PKG_MD5SUM:=9ee6dcdfac97bae6fe611aa27d2594a5 -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install - include $(INCLUDE_DIR)/package.mk define Package/libnids @@ -45,18 +41,20 @@ define Build/Configure ) endef +TARGET_CFLAGS += $(FPIC) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ LNETLIB="-L$(STAGING_DIR)/usr/lib/libnet-1.0.x/lib -lnet" \ - PCAPLIB="-L$(STAGING_DIR)/usr/lib -lpcap" \ + PCAPLIB="$(TARGET_LDFLAGS) -lpcap" \ install_prefix="$(PKG_INSTALL_DIR)" \ all install endef define Build/InstallDev - mkdir -p $(1)/usr/include + $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/nids.h $(1)/usr/include/ - mkdir -p $(1)/usr/lib + $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnids.{a,so*} $(1)/usr/lib/ endef