diff --git a/src/mod/codecs/mod_g723_1/Makefile b/src/mod/codecs/mod_g723_1/Makefile index e8b6fbdbca..47c7c8a2a5 100644 --- a/src/mod/codecs/mod_g723_1/Makefile +++ b/src/mod/codecs/mod_g723_1/Makefile @@ -1,6 +1,13 @@ +ifeq ($(shell ls $(BASE)/libs/libg723_1),$(BASE)/libs/libg723_1) + CFLAGS += -I$(PREFIX)/include/g723 LDFLAGS +=-lg723 +else + +CFLAGS += -DG723_PASSTHROUGH +endif + all: $(MODNAME).$(DYNAMIC_LIB_EXTEN) depends: diff --git a/src/mod/codecs/mod_g729/Makefile b/src/mod/codecs/mod_g729/Makefile index 63ba4d4bdd..ad8c52540c 100644 --- a/src/mod/codecs/mod_g729/Makefile +++ b/src/mod/codecs/mod_g729/Makefile @@ -1,6 +1,14 @@ +ifeq ($(shell ls $(BASE)/libs/libg729),$(BASE)/libs/libg729) + CFLAGS += -I$(PREFIX)/include/g729 LDFLAGS +=-lg729 +else + +CFLAGS += -DG729_PASSTHROUGH + +endif + all: $(MODNAME).$(DYNAMIC_LIB_EXTEN) depends: