-GSM_SOURCE += gsm_audio.c gsm.cpp
-
-GSM_LIB += /usr/lib/libgsm.a
+GSM_INCLUDE += -DWITH_GSMFR
+
+GSM_LIB += libgsmfr/lib/libgsm.a
+
+SUBDIRS += libgsmfr
+
+#endif
+
+if ENABLE_GSMHR
+
+GSM_INCLUDE += -DWITH_GSMHR
-chan_lcr_so_LDFLAGS = -shared
-chan_lcr_so_LDADD = chan_lcr.po bchannel.po options.po callerid.po select.po
+chan_lcr_so_LDFLAGS = --shared
+chan_lcr_so_LDADD = chan_lcr.po options.po callerid.po select.po
- $(CC) $(INCLUDES) $(AST_CFLAGS) $(CPPFLAGS) $(CFLAGS) -D_GNU_SOURCE -fPIC -c $< -o $@
-
-bchannel.po: bchannel.c bchannel.h
- $(CC) $(INCLUDES) -D_GNU_SOURCE $(CPPFLAGS) $(CFLAGS) -fPIC -c $< -o $@
+ $(CC) $(AM_CPPFLAGS) $(AST_CFLAGS) $(CPPFLAGS) $(CFLAGS) -D_GNU_SOURCE -fPIC -c $< -o $@
endpoint.cpp endpointapp.cpp \
appbridge.cpp apppbx.cpp route.c action.cpp action_efi.cpp action_vbox.cpp extension.c mail.c \
endpoint.cpp endpointapp.cpp \
appbridge.cpp apppbx.cpp route.c action.cpp action_efi.cpp action_vbox.cpp extension.c mail.c \
message.h callerid.h socket_server.h port.h vbox.h endpoint.h endpointapp.h \
appbridge.h apppbx.h route.h extension.h join.h joinpbx.h lcrsocket.h
message.h callerid.h socket_server.h port.h vbox.h endpoint.h endpointapp.h \
appbridge.h apppbx.h route.h extension.h join.h joinpbx.h lcrsocket.h
noinst_HEADERS += ss5.h ss5_encode.h ss5_decode.h
noinst_HEADERS += mncc.h gsm.h gsm_audio.h gsm_bs.h gsm_ms.h
noinst_HEADERS += ie.cpp sip.h
noinst_HEADERS += ss5.h ss5_encode.h ss5_decode.h
noinst_HEADERS += mncc.h gsm.h gsm_audio.h gsm_bs.h gsm_ms.h
noinst_HEADERS += ie.cpp sip.h
install-data-hook:
@fns='strcpy strncpy strcat strncat sprintf snprintf' ; \
files=$$( find $(srcdir) -type f -name "*.c*" \
install-data-hook:
@fns='strcpy strncpy strcat strncat sprintf snprintf' ; \
files=$$( find $(srcdir) -type f -name "*.c*" \
test -z "$$files" || { for fn in $$fns ; do \
$(GREP) -n $$fn $$files ; if test $$? = 0 ; then \
( echo "dont use $$fn, use makro instead." ; exit -1 ) ; \
test -z "$$files" || { for fn in $$fns ; do \
$(GREP) -n $$fn $$files ; if test $$? = 0 ; then \
( echo "dont use $$fn, use makro instead." ; exit -1 ) ; \