Hi,

Trying to port this program which has libnet as a dependency. How do i compile this ? The makefile i am using is given below. The compilation fails not finding any of the libnet header files. Libnet as a package has allready been compiled in the toolchain. How can this be fixed ?

# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$

include $(TOPDIR)/rules.mk

#These lines concatanate the package name and list the URL location from which the package source code is to be downloaded
PKG_NAME:=broadcaster
PKG_VERSION:=0.1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.cs.uh.edu/~vivekian/downloads/
PKG_MD5SUM:=781e8cb9be6f12caf7ace54fe4821308
PKG_CAT:=zcat

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

#These lines describe what your package does and its place in the menu config
define Package/broadcaster
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libnet1
  TITLE:=Broadcaster sends out frames
  DESCRIPTION:=\
        We are testing for conflict graphs  \\\
        It will make your life easier  \\\
        It will save you time !
  URL:=http://www.cs.uh.edu/~vivekian
endef

define Build/Configure
        $(call Build/Configure/Default, \
                --with-libnet="$(STAGING_DIR)/usr/lib/libnet-1.1.x" \
        )
endef

define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
               CFLAGS="$(TARGET_CFLAGS)" \
               CXX="$(TARGET_CROSS)g++"

endef

#These lines describe where your binary images are to be installed
define Package/broadcaster/install
        $(INSTALL_DIR) $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/broadcaster$(1)/usr/bin/
endef


$(eval $(call BuildPackage,broadcaster))