-DLOG_DIR="\"$(LOGdir)\"" \
-DEXTENSION_DATA="\"$(EXTENSIONdir)\""
+SUBDIRS = include
+
+if ENABLE_GSMHR
+SUBDIRS += libgsmhr
+endif
+
if ENABLE_MISDN
MISDN_INCLUDE = -DWITH_MISDN -DWITH_CRYPT
if ENABLE_GSM
-#if ENABLE_GSMHR
+#if ENABLE_GSMFR
GSM_INCLUDE += -DWITH_GSMFR
#endif
+if ENABLE_GSMHR
+
+GSM_INCLUDE += -DWITH_GSMHR
+
+GSM_LIB += libgsmhr/libgsmhr.a
+
+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
GSM_SOURCE += gsm_ms.cpp
endif
+
endif