aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-30 14:33:01 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-30 15:11:29 +0800
commit5ccab1020c2502c851fd52b57c6507b01539559e (patch)
tree761ccdea75e608126f07a50986a5633850e5749c
parentec4bfdc435e4273a84b586e1c28786de9e440cf6 (diff)
osmo_bsc: Add empty osmo_bsc_main.c and hook it into the build
-rw-r--r--openbsc/configure.in1
-rw-r--r--openbsc/src/Makefile.am2
-rw-r--r--openbsc/src/bsc/Makefile.am12
-rw-r--r--openbsc/src/bsc/osmo_bsc_main.c29
4 files changed, 43 insertions, 1 deletions
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 <laforge@gnumonks.org>
+ * (C) 2009-2010 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (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 <openbsc/gsm_data.h>
+
+struct gsm_network *bsc_gsmnet = 0;
+
+int main(int argc, char **argv)
+{
+ return 0;
+}