From 7241d22867e4a30d1f48fa71ef013fe386d90810 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 4 Mar 2011 14:18:10 +0100 Subject: [PATCH] Add autotools skeleton code --- Makefile.am | 3 +++ configure.ac | 30 ++++++++++++++++++++++++++++++ include/Makefile.am | 1 + include/osmo-bts/Makefile.am | 1 + include/osmo-bts/logging.h | 26 ++++++++++++++++++++++++++ src/Makefile.am | 1 + src/common/Makefile.am | 7 +++++++ src/osmo-bts-bb/Makefile.am | 8 ++++++++ 8 files changed, 77 insertions(+) create mode 100644 Makefile.am create mode 100644 configure.ac create mode 100644 include/Makefile.am create mode 100644 include/osmo-bts/Makefile.am create mode 100644 include/osmo-bts/logging.h create mode 100644 src/Makefile.am create mode 100644 src/common/Makefile.am create mode 100644 src/osmo-bts-bb/Makefile.am diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 000000000..bc3910fa5 --- /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 000000000..2317575cd --- /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 000000000..7585a65f3 --- /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 000000000..4b4f2b63f --- /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 000000000..466d5953e --- /dev/null +++ b/include/osmo-bts/logging.h @@ -0,0 +1,26 @@ +#ifndef _LOGGING_H +#define _LOGGING_H + +#define DEBUG +#include + +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 000000000..533e89da9 --- /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 000000000..0c13b54a0 --- /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 000000000..ae0d9b50e --- /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)