From ac1baabfd7004e24028de3f02975ec784419efd0 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Sat, 24 May 2008 09:32:43 +0000 Subject: [PATCH] adding conditional flags only once git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@989 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/Makefile b/core/Makefile index f153a4f7..b43a9e52 100644 --- a/core/Makefile +++ b/core/Makefile @@ -57,13 +57,21 @@ endif ifdef USE_SPANDSP +ifneq ($(spandsp_defs), 1) +spandsp_defs=1 +export spandsp_defs CPPFLAGS += -DUSE_SPANDSP -D__STDC_LIMIT_MACROS endif +endif ifdef USE_LIBSAMPLERATE +ifneq ($(libsrc_defs), 1) +libsrc_defs=1 +export libsrc_defs CPPFLAGS += -DUSE_LIBSAMPLERATE LDFLAGS +=-lsamplerate endif +endif ifdef WITH_ZRTP LDFLAGS +=-lzrtp -lbn