X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=Makefile.am;h=dd1596606b52bb3bf65f487cae21f34347ce98c1;hp=f047c56bceaeb73fc3714a8c5204873d3da64a56;hb=302368de4846ab1d5dca3b73b7ed632aea08354e;hpb=d5e639588de9c88d5398cd047c5c73f6d439a5a7 diff --git a/Makefile.am b/Makefile.am index f047c56..dd15966 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ ## This file is part of linux-call-router ## Copyright (C) 2007 Joerg Habenicht (j.habenicht@gmx.de) ## Copyright (C) 2008 Peter Schlaile (peter -at- schlaile.de) -## Copyright (C) 2008 Andreas Eversberg (andreas@eversberg.eu) +## Copyright (C) 2008-2012 Andreas Eversberg (andreas@eversberg.eu) ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as @@ -43,6 +43,14 @@ INSTALLATION_DEFINES = \ -DLOG_DIR="\"$(LOGdir)\"" \ -DEXTENSION_DATA="\"$(EXTENSIONdir)\"" +if ENABLE_MISDN + +MISDN_INCLUDE = -DWITH_MISDN -DWITH_CRYPT +MISDN_SOURCE = mISDN.cpp dss1.cpp loop.c crypt.cpp remote.cpp joinremote.cpp +MISDN_LIB = -lmisdn + +endif + GSM_INCLUDE = GSM_SOURCE = GSM_LIB = @@ -62,7 +70,7 @@ endif if ENABLE_GSM_BS -GSM_INCLUDE += -DWITH_GSM_BS -I./openbsc/include -I./libosmocore/include -I./openbsc +GSM_INCLUDE += -DWITH_GSM_BS GSM_SOURCE += gsm_bs.cpp @@ -70,15 +78,9 @@ endif if ENABLE_GSM_MS -GSM_INCLUDE += -DPACKAGE_VERSION=0 -DWITH_GSM_MS -I./layer23/include -I./libosmocore/include +GSM_INCLUDE += -DWITH_GSM_MS -GSM_SOURCE += gsm_ms.cpp layer23/src/mobile/app_mobile.c - -GSM_LIB += ./layer23/src/mobile/libmobile.a \ - ./layer23/src/common/liblayer23.a \ - ./libosmocore/build-host/src/.libs/libosmocore.a \ - ./libosmocore/build-host/src/vty/.libs/libosmovty.a \ - ./libosmocore/build-host/src/codec/.libs/libosmocodec.a +GSM_SOURCE += gsm_ms.cpp endif @@ -90,6 +92,22 @@ SS5_SOURCE = ss5.cpp ss5_encode.c ss5_decode.c endif +SIP_LIB = + +if ENABLE_SIP + +# FIXME: remove that +#pkgconfigdir = $(libdir)/pkgconfig +#pkgconfig_DATA = sofia-sip-ua.pc + +SIP_INCLUDE = -DWITH_SIP $(SOFIA_CFLAGS) + +SIP_SOURCE = sip.cpp + +SIP_LIB += $(SOFIA_LIBS) + +endif + bin_PROGRAMS = lcradmin gentones genwave sbin_PROGRAMS = lcr genrc genextension @@ -121,18 +139,17 @@ install-exec-hook: $(INSTALL) chan_lcr.so $(astmoddir) endif -INCLUDES = $(all_includes) $(GSM_INCLUDE) $(SS5_INCLUDE) -Wall $(INSTALLATION_DEFINES) +INCLUDES = $(all_includes) $(MISDN_INCLUDE) $(GSM_INCLUDE) $(SS5_INCLUDE) $(SIP_INCLUDE) -Wall $(INSTALLATION_DEFINES) -lcr_SOURCES = $(GSM_SOURCE) $(SS5_SOURCE) select.c action.cpp mISDN.cpp \ - tones.c loop.c remote.c action_efi.cpp crypt.cpp mail.c trace.c \ - action_vbox.cpp dss1.cpp main.c \ - vbox.cpp alawulaw.c endpoint.cpp interface.c message.c \ - apppbx.cpp endpointapp.cpp join.cpp options.c \ - extension.c joinpbx.cpp port.cpp \ - callerid.c joinremote.cpp route.c \ - cause.c socket_server.c +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 \ + port.cpp vbox.cpp \ + $(MISDN_SOURCE) $(GSM_SOURCE) $(SS5_SOURCE) $(SIP_SOURCE) \ + endpoint.cpp endpointapp.cpp \ + appbridge.cpp apppbx.cpp route.c action.cpp action_efi.cpp action_vbox.cpp extension.c mail.c \ + join.cpp joinpbx.cpp -lcr_LDADD = $(LIBCRYPTO) -lmisdn -lpthread $(GSM_LIB) +lcr_LDADD = $(LIBCRYPTO) $(MISDN_LIB) -lpthread $(GSM_LIB) $(SIP_LIB) lcradmin_SOURCES = lcradmin.c cause.c options.c @@ -161,14 +178,6 @@ install-data-hook: @if test -a $(CONFIGdir)/routing.conf ; then \ echo "NOTE: routing.conf already exists, not changed." ; else \ cp -v default/routing.conf $(CONFIGdir) ; fi -if ENABLE_GSM - @if test -a $(CONFIGdir)/gsm.conf ; then \ - echo "NOTE: gsm.conf already exists, not changed." ; else \ - cp -v default/gsm.conf $(CONFIGdir) ; fi - @if test -a $(CONFIGdir)/openbsc.cfg ; then \ - echo "NOTE: openbsc.cfg already exists, not changed." ; else \ - cp -v default/openbsc.cfg $(CONFIGdir) ; fi -endif @if test -a $(CONFIGdir)/numbering_int.conf ; then \ echo "NOTE: numbering_int.conf is obsolete, please use routing." ; fi @if test -a $(CONFIGdir)/numbering_ext.conf ; then \