Add autotools skeleton code

dbg_fwd
Harald Welte 12 years ago
parent 6836bfeca9
commit 7241d22867
  1. 3
      Makefile.am
  2. 30
      configure.ac
  3. 1
      include/Makefile.am
  4. 1
      include/osmo-bts/Makefile.am
  5. 26
      include/osmo-bts/logging.h
  6. 1
      src/Makefile.am
  7. 7
      src/common/Makefile.am
  8. 8
      src/osmo-bts-bb/Makefile.am

@ -0,0 +1,3 @@
AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
SUBDIRS = include src

@ -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)

@ -0,0 +1 @@
SUBDIRS = osmo-bts

@ -0,0 +1 @@
noinst_HEADERS = bts.h abis.h rsl.h oml.h support.h rtp.h 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 */

@ -0,0 +1 @@
SUBDIRS = common osmo-bts-bb

@ -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

@ -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)
Loading…
Cancel
Save