projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add .gitignore
[lcr.git]
/
Makefile.am
diff --git
a/Makefile.am
b/Makefile.am
index
61d8a86
..
8e44c17
100644
(file)
--- a/
Makefile.am
+++ b/
Makefile.am
@@
-20,22
+20,23
@@
## the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
## Boston, MA 02110-1301, USA.
## the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
## Boston, MA 02110-1301, USA.
-INSTALLdir = $(DESTDIR)/usr/local/lcr
+
#
INSTALLdir = $(DESTDIR)/usr/local/lcr
pkglogdir=$(localstatedir)/log/@PACKAGE@
pkgsysconfdir=$(sysconfdir)/@PACKAGE@
pkglogdir=$(localstatedir)/log/@PACKAGE@
pkgsysconfdir=$(sysconfdir)/@PACKAGE@
-
#
CONFIGdir=$(DESTDIR)$(pkgsysconfdir)
-
#
SHAREdir=$(DESTDIR)$(pkgdatadir)
-
#
LOGdir=$(DESTDIR)$(pkglogdir)
-#EXTENSIONdir=$(DESTDIR)$(localstatedir)/lib/lcr
+CONFIGdir=$(DESTDIR)$(pkgsysconfdir)
+SHAREdir=$(DESTDIR)$(pkgdatadir)
+LOGdir=$(DESTDIR)$(pkglogdir)
+EXTENSIONdir=$(DESTDIR)$(localstatedir)/lib/lcr/extensions
-CONFIGdir=$(INSTALLdir)
-SHAREdir=$(INSTALLdir)
-LOGdir=$(INSTALLdir)
-EXTENSIONdir=$(INSTALLdir)/extensions
-astmoddir = $(DESTDIR)/usr/lib/asterisk/modules
+#CONFIGdir=$(INSTALLdir)
+#SHAREdir=$(INSTALLdir)
+#LOGdir=$(INSTALLdir)
+#EXTENSIONdir=$(INSTALLdir)/extensions
+
+astmoddir = $(DESTDIR)/$(libdir)/asterisk/modules
INSTALLATION_DEFINES = \
-DCONFIG_DATA="\"$(CONFIGdir)\"" \
INSTALLATION_DEFINES = \
-DCONFIG_DATA="\"$(CONFIGdir)\"" \
@@
-45,17
+46,25
@@
INSTALLATION_DEFINES = \
if ENABLE_GSM
if ENABLE_GSM
-GSM_INCLUDE = -DWITH_GSM
+GSM_INCLUDE = -DWITH_GSM
-I./openbsc/include -I./libosmocore/include
-GSM_SOURCE = gsm_audio.c gsm.cpp gsm_conf.c
bootstrap
.c
+GSM_SOURCE = gsm_audio.c gsm.cpp gsm_conf.c
openbsc/src/bsc_init.c openbsc/src/vty_interface.c openbsc/src/vty_interface_layer3
.c
-GSM_LIB = /usr/l
ocal/lib/libgsm.a /usr/local/lib/libbsc.a /usr/local/lib/libvty.a
-ldbi -lcrypt
+GSM_LIB = /usr/l
ib/libgsm.a ./openbsc/src/libbsc.a ./openbsc/src/libmsc.a ./openbsc/src/libvty.a -L./libosmocore/src/ -losmocore
-ldbi -lcrypt
#gsm_audio.po: gsm_audio.c gsm_audio.h
# $(CC) -D_GNU_SOURCE -fPIC -c gsm_audio.c -o gsm_audio.po
endif
#gsm_audio.po: gsm_audio.c gsm_audio.h
# $(CC) -D_GNU_SOURCE -fPIC -c gsm_audio.c -o gsm_audio.po
endif
+if ENABLE_SS5
+
+SS5_INCLUDE = -DWITH_SS5
+
+SS5_SOURCE = ss5.cpp ss5_encode.c ss5_decode.c
+
+endif
+
bin_PROGRAMS = lcradmin gentones genwave
sbin_PROGRAMS = lcr genrc genextension
bin_PROGRAMS = lcradmin gentones genwave
sbin_PROGRAMS = lcr genrc genextension
@@
-64,7
+73,7
@@
if ENABLE_ASTERISK_CHANNEL_DRIVER
noinst_PROGRAMS = chan_lcr.so
chan_lcr_so_SOURCES =
chan_lcr_so_LDFLAGS = -shared
noinst_PROGRAMS = chan_lcr.so
chan_lcr_so_SOURCES =
chan_lcr_so_LDFLAGS = -shared
-chan_lcr_so_LDADD = chan_lcr.po bchannel.po options.po callerid.po
+chan_lcr_so_LDADD = chan_lcr.po bchannel.po options.po callerid.po
select.po
chan_lcr.po: chan_lcr.c chan_lcr.h
$(CC) $(INCLUDES) -D_GNU_SOURCE -fPIC -c chan_lcr.c -o chan_lcr.po
chan_lcr.po: chan_lcr.c chan_lcr.h
$(CC) $(INCLUDES) -D_GNU_SOURCE -fPIC -c chan_lcr.c -o chan_lcr.po
@@
-78,15
+87,18
@@
callerid.po: callerid.c callerid.h
options.po: options.c options.h
$(CC) $(INCLUDES) -D_GNU_SOURCE -fPIC -c options.c -o options.po
options.po: options.c options.h
$(CC) $(INCLUDES) -D_GNU_SOURCE -fPIC -c options.c -o options.po
+select.po: select.c select.h
+ $(CC) $(INCLUDES) -D_GNU_SOURCE -fPIC -c select.c -o select.po
+
install-exec-hook:
mkdir -p $(astmoddir)
$(INSTALL) -d $(astmoddir)
$(INSTALL) chan_lcr.so $(astmoddir)
endif
install-exec-hook:
mkdir -p $(astmoddir)
$(INSTALL) -d $(astmoddir)
$(INSTALL) chan_lcr.so $(astmoddir)
endif
-INCLUDES = $(all_includes) $(GSM_INCLUDE)
-Wall -I/usr/include/mISDNuser
$(INSTALLATION_DEFINES)
+INCLUDES = $(all_includes) $(GSM_INCLUDE)
$(SS5_INCLUDE) -Wall
$(INSTALLATION_DEFINES)
-lcr_SOURCES = $(GSM_SOURCE) action.cpp mISDN.cpp tones.c \
+lcr_SOURCES = $(GSM_SOURCE)
$(SS5_SOURCE) select.c
action.cpp mISDN.cpp tones.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 \
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 \
@@
-124,9
+136,14
@@
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 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)/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 \
@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 \