From de729a139ecdb3b1d88cd5c50738749e8b1c9dcd Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 23 Dec 2008 21:01:25 +0000 Subject: [PATCH] autoconf --- Makefile.am | 7 +++++++ configure.in | 19 +++++++++++++++++++ include/Makefile.am | 1 + include/openbsc/Makefile.am | 2 ++ src/Makefile.am | 7 +++++++ 5 files changed, 36 insertions(+) create mode 100644 Makefile.am create mode 100644 configure.in create mode 100644 include/Makefile.am create mode 100644 include/openbsc/Makefile.am create mode 100644 src/Makefile.am diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 000000000..b3a37eebc --- /dev/null +++ b/Makefile.am @@ -0,0 +1,7 @@ +AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6 + +INCLUDES = $(all_includes) -I$(top_srcdir)/include +SUBDIRS = include src + +#dist-hook: +# rm -rf `find $(distdir) -name .svn` diff --git a/configure.in b/configure.in new file mode 100644 index 000000000..1c4070ccf --- /dev/null +++ b/configure.in @@ -0,0 +1,19 @@ +dnl Process this file with autoconf to produce a configure script +AC_INIT + +AM_INIT_AUTOMAKE(openbsc, 0.0alpha1) + +dnl checks for programs +AC_PROG_MAKE_SET +AC_PROG_CC +AC_PROG_INSTALL + +dnl checks for libraries + +dnl checks for header files +AC_HEADER_STDC +AC_CHECK_HEADERS(mISDNif.h) + +dnl Checks for typedefs, structures and compiler characteristics + +AC_OUTPUT(include/openbsc/Makefile include/Makefile src/Makefile Makefile) diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 000000000..f5c6487bd --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = openbsc diff --git a/include/openbsc/Makefile.am b/include/openbsc/Makefile.am new file mode 100644 index 000000000..73e93309f --- /dev/null +++ b/include/openbsc/Makefile.am @@ -0,0 +1,2 @@ +noinst_HEADERS = abis_nm.h abis_rsl.h debug.h gsm_04_08.h gsm_data.h \ + gsm_subscriber.h linuxlist.h msgb.h select.h tlv.h diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 000000000..006571958 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,7 @@ +INCLUDES = $(all_includes) -I$(top_srcdir)/include +AM_CFLAGS=-Wall + +sbin_PROGRAMS = bsc_hack + +bsc_hack_SOURCES = bsc_hack.c misdn.c abis_rsl.c abis_nm.c gsm_04_08.c gsm_data.c \ + gsm_subscriber.c msgb.c select.c