From 5ccab1020c2502c851fd52b57c6507b01539559e Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 30 Jun 2010 14:33:01 +0800 Subject: osmo_bsc: Add empty osmo_bsc_main.c and hook it into the build --- openbsc/configure.in | 1 + openbsc/src/Makefile.am | 2 +- openbsc/src/bsc/Makefile.am | 12 ++++++++++++ openbsc/src/bsc/osmo_bsc_main.c | 29 +++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 openbsc/src/bsc/Makefile.am create mode 100644 openbsc/src/bsc/osmo_bsc_main.c diff --git a/openbsc/configure.in b/openbsc/configure.in index 80f6fd678..9a77e2af9 100644 --- a/openbsc/configure.in +++ b/openbsc/configure.in @@ -55,6 +55,7 @@ AC_OUTPUT( src/ipaccess/Makefile src/gprs/Makefile src/nat/Makefile + src/bsc/Makefile tests/Makefile tests/debug/Makefile tests/gsm0408/Makefile diff --git a/openbsc/src/Makefile.am b/openbsc/src/Makefile.am index 8792036cf..59ec2f168 100644 --- a/openbsc/src/Makefile.am +++ b/openbsc/src/Makefile.am @@ -3,7 +3,7 @@ AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) AM_LDFLAGS = $(LIBOSMOCORE_LIBS) # build current directory before building gprs -SUBDIRS = . ipaccess gprs nat +SUBDIRS = . ipaccess gprs nat bsc sbin_PROGRAMS = bsc_hack bs11_config isdnsync bsc_mgcp noinst_LIBRARIES = libbsc.a libmsc.a libvty.a libsccp.a libmgcp.a diff --git a/openbsc/src/bsc/Makefile.am b/openbsc/src/bsc/Makefile.am new file mode 100644 index 000000000..f4e7a723a --- /dev/null +++ b/openbsc/src/bsc/Makefile.am @@ -0,0 +1,12 @@ +INCLUDES = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir) +AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) +AM_LDFLAGS = $(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) + +bin_PROGRAMS = osmo-bsc + + +osmo_bsc_SOURCES = osmo_bsc_main.c osmo_bsc_rf.c \ + $(top_srcdir)/src/debug.c $(top_srcdir)/src/bsc_msc.c \ + $(top_srcdir)/src/bsc_init.c +osmo_bsc_LDADD = $(top_builddir)/src/libvty.a $(top_builddir)/src/libsccp.a \ + $(top_builddir)/src/libmgcp.a $(top_builddir)/src/libbsc.a diff --git a/openbsc/src/bsc/osmo_bsc_main.c b/openbsc/src/bsc/osmo_bsc_main.c new file mode 100644 index 000000000..d4c82e303 --- /dev/null +++ b/openbsc/src/bsc/osmo_bsc_main.c @@ -0,0 +1,29 @@ +/* (C) 2008-2009 by Harald Welte + * (C) 2009-2010 by Holger Hans Peter Freyther + * (C) 2009-2010 by On-Waves + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + +#include + +struct gsm_network *bsc_gsmnet = 0; + +int main(int argc, char **argv) +{ + return 0; +} -- cgit v1.2.3