Permalink
Browse files

added build scripts

  • Loading branch information...
1 parent 0f85b3a commit 7a1696d5af9064a1d749189cdf0cf74313a5fc6e @pipelka committed Aug 23, 2011
Showing with 63 additions and 0 deletions.
  1. +1 −0 Makefile.am
  2. +27 −0 autogen.sh
  3. +32 −0 configure.in
  4. +3 −0 src/Makefile.am
View
@@ -0,0 +1 @@
+SUBDIRS = src
View
@@ -0,0 +1,27 @@
+echo "Generating build information ..."
+cd `dirname $0`
+aclocalinclude="$ACLOCAL_FLAGS"
+mkdir -p autotools
+
+echo "Running libtoolize ..."
+libtoolize --copy --force --automake || exit 1
+
+echo "Running aclocal $aclocalinclude ..."
+aclocal $aclocalinclude || {
+ echo
+ echo "**Error**: aclocal failed. This may mean that you have not"
+ echo "installed all of the packages you need, or you may need to"
+ echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
+ echo "for the prefix where you installed the packages whose"
+ echo "macros were not found"
+ exit 1
+}
+
+echo "Running automake ..."
+automake -c -a --foreign || ( echo "***ERROR*** automake failed." ; exit 1 )
+
+echo "Running autoconf ..."
+autoconf || ( echo "***ERROR*** autoconf failed." ; exit 1 )
+
+echo
+echo "Please run ./configure now."
View
@@ -0,0 +1,32 @@
+m4_define([MAJOR], 0)
+m4_define([MINOR], 9)
+m4_define([MICRO], 0)
+
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT([xbmc-addon-xvdr], [MAJOR.MINOR.MICRO], [alexander.pipelka@gmail.com])
+
+AC_CONFIG_AUX_DIR(autotools)
+
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+
+dnl Setup for automake
+AM_INIT_AUTOMAKE
+
+dnl Check for tools
+
+AC_LIBTOOL_WIN32_DLL
+AM_PROG_LIBTOOL
+AC_PROG_MAKE_SET
+AC_PROG_CXX
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_EXEEXT
+
+# Finally create all the generated files
+AC_OUTPUT([
+Makefile
+src/Makefile
+src/libTcpSocket/Makefile
+src/xvdr/Makefile
+])
View
@@ -0,0 +1,3 @@
+SUBDIRS = \
+ libTcpSocket \
+ xvdr

0 comments on commit 7a1696d

Please sign in to comment.