X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=Makefile.am;h=11a2beb959b72da820675d5e73ddda4d3163b210;hp=e35f6f0df175a540c2c7c276a2659d5621c9705c;hb=a3b269f357b7e6b74d91a942f874ee041320dce7;hpb=77d91029549d9d526572966a0884c015acd2727e diff --git a/Makefile.am b/Makefile.am index e35f6f0..11a2beb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -43,6 +43,8 @@ INSTALLATION_DEFINES = \ -DLOG_DIR="\"$(LOGdir)\"" \ -DEXTENSION_DATA="\"$(EXTENSIONdir)\"" +SUBDIRS = include + if ENABLE_MISDN MISDN_INCLUDE = -DWITH_MISDN -DWITH_CRYPT @@ -59,7 +61,7 @@ GSM_LIB = if ENABLE_GSM -#if ENABLE_GSMHR +#if ENABLE_GSMFR GSM_INCLUDE += -DWITH_GSMFR @@ -69,6 +71,24 @@ SUBDIRS += libgsmfr #endif +if ENABLE_GSMHR + +GSM_INCLUDE += -DWITH_GSMHR + +GSM_LIB += libgsmhr/libgsmhr.la + +SUBDIRS += libgsmhr + +endif + +if ENABLE_GSMAMR + +GSM_INCLUDE += -DWITH_GSMAMR + +GSM_LIB += -lopencore-amrnb + +endif + GSM_SOURCE += gsm_audio.c gsm.cpp if ENABLE_GSM_BS @@ -86,6 +106,7 @@ GSM_INCLUDE += -DWITH_GSM_MS GSM_SOURCE += gsm_ms.cpp endif + endif @@ -147,7 +168,7 @@ uninstall-hook: cd '$(DESTDIR)$(astmoddir)' && rm -f chan_lcr.so endif -INCLUDES = $(all_includes) $(MISDN_INCLUDE) $(GSM_INCLUDE) $(SS5_INCLUDE) $(SIP_INCLUDE) -Wall $(INSTALLATION_DEFINES) +INCLUDES = $(all_includes) -I$(top_srcdir)/include $(MISDN_INCLUDE) $(GSM_INCLUDE) $(SS5_INCLUDE) $(SIP_INCLUDE) -Wall $(INSTALLATION_DEFINES) lcr_SOURCES = \ main.c select.c trace.c options.c tones.c alawulaw.c cause.c interface.c message.c callerid.c socket_server.c \