aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2008-12-23 21:01:25 +0000
committerHarald Welte <laforge@gnumonks.org>2008-12-23 21:01:25 +0000
commitde729a139ecdb3b1d88cd5c50738749e8b1c9dcd (patch)
treed6b2939821e9853ef43216ac88a08cb4562aa9d8
parent52b1f9888905df8aa6ecd50af900b63f5273de6a (diff)
autoconf
-rw-r--r--Makefile.am7
-rw-r--r--configure.in19
-rw-r--r--include/Makefile.am1
-rw-r--r--include/openbsc/Makefile.am2
-rw-r--r--src/Makefile.am7
5 files changed, 36 insertions, 0 deletions
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