From d24c046127088eb8c2af9612043aba70fae66af6 Mon Sep 17 00:00:00 2001 From: ar Date: Fri, 20 Aug 2004 17:46:51 +0000 Subject: - add libpcap dir to lib- and include directory --- (limited to 'libopie2') diff --git a/libopie2/examples/opienet/miniwellenreiter/miniwellenreiter.pro b/libopie2/examples/opienet/miniwellenreiter/miniwellenreiter.pro index 5fccd30..fbbff27 100644 --- a/libopie2/examples/opienet/miniwellenreiter/miniwellenreiter.pro +++ b/libopie2/examples/opienet/miniwellenreiter/miniwellenreiter.pro @@ -1,5 +1,5 @@ TEMPLATE = app -CONFIG = qt warn_on +CONFIG = qt warn_on HEADERS = SOURCES = miniwellenreiter.cpp INCLUDEPATH += $(OPIEDIR)/include @@ -11,3 +11,9 @@ OBJECTS_DIR = obj include ( $(OPIEDIR)/include.pro ) +!isEmpty( LIBPCAP_INC_DIR ) { + INCLUDEPATH = $$LIBPCAP_INC_DIR $$INCLUDEPATH +} +!isEmpty( LIBPCAP_LIB_DIR ) { + LIBS = -L$$LIBPCAP_LIB_DIR $$LIBS +} diff --git a/libopie2/opienet/opienet.pro b/libopie2/opienet/opienet.pro index 4aef6c2..da062e4 100644 --- a/libopie2/opienet/opienet.pro +++ b/libopie2/opienet/opienet.pro @@ -1,5 +1,5 @@ TEMPLATE = lib -CONFIG += qt warn_on +CONFIG += qt warn_on DESTDIR = $(OPIEDIR)/lib HEADERS = 802_11_user.h \ dhcp.h \ @@ -29,6 +29,12 @@ LIBS += -lpcap } contains( platform, x11 ) { - LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib + LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib } +!isEmpty( LIBPCAP_INC_DIR ) { + INCLUDEPATH = $$LIBPCAP_INC_DIR $$INCLUDEPATH +} +!isEmpty( LIBPCAP_LIB_DIR ) { + LIBS = -L$$LIBPCAP_LIB_DIR $$LIBS +} -- cgit v0.9.0.2