diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2008-10-28 16:05:47 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2008-10-28 16:05:47 +0000 |
commit | a8f56ad4be41af5f1ccda75b48e65444bfcf8a8f (patch) | |
tree | c4eb66be38445adbec156dde4c72cdbff27e61e4 /rules/libpcap.make | |
parent | 68cea8b17fec5e4c4f9b34402c62d04a580841b7 (diff) | |
download | ptxdist-a8f56ad4be41af5f1ccda75b48e65444bfcf8a8f.tar.gz ptxdist-a8f56ad4be41af5f1ccda75b48e65444bfcf8a8f.tar.xz |
* libpcap.make:
cleanups
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8971 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/libpcap.make')
-rw-r--r-- | rules/libpcap.make | 87 |
1 files changed, 16 insertions, 71 deletions
diff --git a/rules/libpcap.make b/rules/libpcap.make index 46265b06b..6dc608784 100644 --- a/rules/libpcap.make +++ b/rules/libpcap.make @@ -1,7 +1,7 @@ # -*-makefile-*- # $Id$ # -# Copyright (C) 2003 by Marc Kleine-Budde <kleine-budde.de> +# Copyright (C) 2003-2008 by Marc Kleine-Budde <mkl@pengutronix.de> # # See CREDITS for details about who has contributed to this project. # @@ -30,107 +30,52 @@ LIBPCAP_DIR := $(BUILDDIR)/$(LIBPCAP) # Get # ---------------------------------------------------------------------------- -libpcap_get: $(STATEDIR)/libpcap.get - -$(STATEDIR)/libpcap.get: $(libpcap_get_deps_default) - @$(call targetinfo, $@) - @$(call touch, $@) - $(LIBPCAP_SOURCE): - @$(call targetinfo, $@) + @$(call targetinfo) @$(call get, LIBPCAP) # ---------------------------------------------------------------------------- -# Extract -# ---------------------------------------------------------------------------- - -libpcap_extract: $(STATEDIR)/libpcap.extract - -$(STATEDIR)/libpcap.extract: $(libpcap_extract_deps_default) - @$(call targetinfo, $@) - @$(call clean, $(LIBPCAP_DIR)) - @$(call extract, LIBPCAP) - @$(call patchin, LIBPCAP) - @$(call touch, $@) - -# ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- -libpcap_prepare: $(STATEDIR)/libpcap.prepare - LIBPCAP_PATH := PATH=$(CROSS_PATH) - -LIBPCAP_ENV := $(CROSS_ENV) +LIBPCAP_ENV := \ + $(CROSS_ENV) \ + ac_cv_linux_vers=2 # # autoconf # -LIBPCAP_AUTOCONF := $(CROSS_AUTOCONF_USR) +LIBPCAP_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) \ + --enable-protochain \ + --disable-optimizer-dbg \ + --disable-yydebug \ + --without-dag \ + --without-septel + ifdef PTXCONF_ARCH_MINGW LIBPCAP_AUTOCONF += --with-pcap=null LIBPCAP_ENV += ac_cv_lbl_gcc_fixincludes=yes else LIBPCAP_AUTOCONF += --with-pcap=linux -LIBPCAP_ENV += ac_cv_linux_vers=2 endif -# FIXME: Missing switches -# --disable-protochain disable \"protochain\" insn -# --enable-optimizer-dbg build optimizer debugging code -# --enable-yydebug build parser debugging code -# --with-dag include Endace DAG support -# --with-septel include Septel support -# - ifdef PTXCONF_LIBPCAP_IPV6 LIBPCAP_AUTOCONF += --enable-ipv6 else LIBPCAP_AUTOCONF += --disable-ipv6 endif -$(STATEDIR)/libpcap.prepare: $(libpcap_prepare_deps_default) - @$(call targetinfo, $@) - @$(call clean, $(LIBPCAP_BUILDDIR)) - cd $(LIBPCAP_DIR) && \ - $(LIBPCAP_PATH) $(LIBPCAP_ENV) \ - ./configure $(LIBPCAP_AUTOCONF) - @$(call touch, $@) - -# ---------------------------------------------------------------------------- -# Compile -# ---------------------------------------------------------------------------- - -libpcap_compile: $(STATEDIR)/libpcap.compile - -$(STATEDIR)/libpcap.compile: $(libpcap_compile_deps_default) - @$(call targetinfo, $@) - cd $(LIBPCAP_DIR) && \ - $(LIBPCAP_ENV) $(LIBPCAP_PATH) $(LIBPCAP_PATH) make - @$(call touch, $@) - -# ---------------------------------------------------------------------------- -# Install -# ---------------------------------------------------------------------------- - -libpcap_install: $(STATEDIR)/libpcap.install - -$(STATEDIR)/libpcap.install: $(libpcap_install_deps_default) - @$(call targetinfo, $@) - @$(call install, LIBPCAP) - @$(call touch, $@) - # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- -libpcap_targetinstall: $(STATEDIR)/libpcap.targetinstall - -$(STATEDIR)/libpcap.targetinstall: $(libpcap_targetinstall_deps_default) - @$(call targetinfo, $@) +$(STATEDIR)/libpcap.targetinstall: + @$(call targetinfo) # no targetinstall, cause it's a static lib (mkl) - @$(call touch, $@) + @$(call touch) # ---------------------------------------------------------------------------- # Clean |