aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-03-04 14:18:10 +0100
committerHarald Welte <laforge@gnumonks.org>2011-03-04 14:18:10 +0100
commit7241d22867e4a30d1f48fa71ef013fe386d90810 (patch)
treeccf865d705e4a2e958e44669b12e43339df5a94b
parent6836bfeca9f8799fb9d064c170f0939ad181c390 (diff)
Add autotools skeleton code
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac30
-rw-r--r--include/Makefile.am1
-rw-r--r--include/osmo-bts/Makefile.am1
-rw-r--r--include/osmo-bts/logging.h26
-rw-r--r--src/Makefile.am1
-rw-r--r--src/common/Makefile.am7
-rw-r--r--src/osmo-bts-bb/Makefile.am8
8 files changed, 77 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 00000000..bc3910fa
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,3 @@
+AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
+
+SUBDIRS = include src
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 00000000..2317575c
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,30 @@
+dnl Process this file with autoconf to produce a configure script
+AC_INIT
+
+AM_INIT_AUTOMAKE(osmo-bts, 0.0.0)
+
+dnl kernel style compile messages
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
+dnl checks for programs
+AC_PROG_MAKE_SET
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_RANLIB
+
+dnl checks for libraries
+PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore)
+PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty)
+
+dnl checks for header files
+AC_HEADER_STDC
+
+dnl Checks for typedefs, structures and compiler characteristics
+
+AC_OUTPUT(
+ src/Makefile
+ src/common/Makefile
+ src/osmo-bts-bb/Makefile
+ include/Makefile
+ include/osmo-bts/Makefile
+ Makefile)
diff --git a/include/Makefile.am b/include/Makefile.am
new file mode 100644
index 00000000..7585a65f
--- /dev/null
+++ b/include/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = osmo-bts
diff --git a/include/osmo-bts/Makefile.am b/include/osmo-bts/Makefile.am
new file mode 100644
index 00000000..4b4f2b63
--- /dev/null
+++ b/include/osmo-bts/Makefile.am
@@ -0,0 +1 @@
+noinst_HEADERS = bts.h abis.h rsl.h oml.h support.h rtp.h logging.h
diff --git a/include/osmo-bts/logging.h b/include/osmo-bts/logging.h
new file mode 100644
index 00000000..466d5953
--- /dev/null
+++ b/include/osmo-bts/logging.h
@@ -0,0 +1,26 @@
+#ifndef _LOGGING_H
+#define _LOGGING_H
+
+#define DEBUG
+#include <osmocore/logging.h>
+
+enum {
+ DRSL,
+ DOML,
+ DRLL,
+ DRR,
+ DMM,
+ DCC,
+ DSMS,
+ DMEAS,
+ DPAG,
+ DLAPDM,
+ DL1C,
+ DSAP,
+ DABIS,
+ DRTP,
+};
+
+extern const struct log_info log_info;
+
+#endif /* _LOGGING_H */
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 00000000..533e89da
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = common osmo-bts-bb
diff --git a/src/common/Makefile.am b/src/common/Makefile.am
new file mode 100644
index 00000000..0c13b54a
--- /dev/null
+++ b/src/common/Makefile.am
@@ -0,0 +1,7 @@
+INCLUDES = $(all_includes) -I$(top_srcdir)/include
+AM_CFLAGS = -Wall $(LIBOSMOCORE_CFLAGS)
+LDADD = $(LIBOSMOCORE_LIBS)
+
+noinst_LIBRARIES = libbts.a
+libbts_a_SOURCES = support.c bts.c abis.c rsl.c oml.c rtp.c
+# ../common/l1l2_interface.c ../common/lapdm.c ../common/logging.c
diff --git a/src/osmo-bts-bb/Makefile.am b/src/osmo-bts-bb/Makefile.am
new file mode 100644
index 00000000..ae0d9b50
--- /dev/null
+++ b/src/osmo-bts-bb/Makefile.am
@@ -0,0 +1,8 @@
+INCLUDES = $(all_includes) -I$(top_srcdir)/include
+AM_CFLAGS = -Wall $(LIBOSMOCORE_CFLAGS)
+LDADD = $(LIBOSMOCORE_LIBS)
+
+bin_PROGRAMS = osmo-bts-bb
+
+osmo_bts_bb_SOURCES = main.c
+osmo_bts_bb_LDADD = $(top_builddir)/src/common/libbts.a $(LDADD)