diff --git a/make/defs.mk b/make/defs.mk index 6f104fc3..5a0ca36f 100644 --- a/make/defs.mk +++ b/make/defs.mk @@ -1212,6 +1212,19 @@ EXE_SEARCH_PATH += $(USERVER_DIR)/bin PREREQ += USERVER endif +ifneq ($(filter xchange-pcap,$(PREREQ_BUILD)),) +XCHANGE_PCAP_DIR = $(firstword $(wildcard $(CVS_PROJ_DIR)/xchange-pcap /opt/$(FLAVOUR_PATH_PREFIX)xchange-pcap)) +XCHANGE_PCAP_VERSION = $(call version,$(XCHANGE_PCAP_DIR)) +RPM_REQUIRES_RUN += $(FLAVOUR_PREFIX)xchange-pcap-run = $(XCHANGE_PCAP_VERSION) +RPM_REQUIRES_DEVEL += $(FLAVOUR_PREFIX)xchange-pcap-devel = $(XCHANGE_PCAP_VERSION) +PREREQ_BUILD += xchange +INCLUDE += -I$(XCHANGE_PCAP_DIR)/include +#LIBFLAGS += -L$(XCHANGE_PCAP_DIR)/lib -lxchange-pcap +LIBFLAGS += -L$(XCHANGE_PCAP_DIR)/lib +EXE_SEARCH_PATH += $(XCHANGE_PCAP_DIR)/bin +PREREQ += XCHANGE_PCAP +endif + ifneq ($(filter xchange,$(PREREQ_BUILD)),) XCHANGE_DIR = $(firstword $(wildcard $(CVS_PROJ_DIR)/xchange /opt/$(FLAVOUR_PATH_PREFIX)xchange)) XCHANGE_VERSION = $(call version,$(XCHANGE_DIR))