From 7f587903cb1680dc6d9a70603a9db396dc645627 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Mon, 24 Apr 2017 22:59:43 +0200 Subject: [PATCH 1/1] Project base --- .gitignore | 21 +++++++++++++++++++++ AUTHORS | 0 ChangeLog | 0 Makefile.am | 16 ++++++++++++++++ NEWS | 0 README | 0 TODO | 0 VERSION | 1 + autogen.sh | 32 ++++++++++++++++++++++++++++++++ src/Makefile.am | 28 ++++++++++++++++++++++++++++ 10 files changed, 98 insertions(+) create mode 100644 .gitignore create mode 100644 AUTHORS create mode 100644 ChangeLog create mode 100644 Makefile.am create mode 100644 NEWS create mode 100644 README create mode 100644 TODO create mode 100644 VERSION create mode 100755 autogen.sh create mode 100644 src/Makefile.am diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9ba066d --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +COPYING +INSTALL +Makefile +Makefile.in +aclocal.m4 +autom4te.cache +config* +configure +libcaldav2.geany +libtool +m4 +stamp* +*.gz +src/Makefile +src/Makefile.in +src/*.lo +src/*.o +src/*.la +src/.deps +src/.libs + diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..e69de29 diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..bab4d6a --- /dev/null +++ b/Makefile.am @@ -0,0 +1,16 @@ +AUTOMAKE_OPTIONS = gnu + +SUBDIRS = src + +ACLOCAL_AMFLAGS = -I m4 + +EXTRA_DIST = \ + README \ + COPYING \ + AUTHORS \ + ChangeLog \ + INSTALL \ + NEWS \ + TODO \ + autogen.sh \ + VERSION diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/TODO b/TODO new file mode 100644 index 0000000..e69de29 diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..49d5957 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1 diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..c9f6e38 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +echo "Rebuilding build system......" + +autoreconf --version 2>&1 > /dev/null 2>&1 + +if [ $? -eq 0 ]; then + AUTORECONF=autoreconf +else + AUTORECONF= +fi + +error() { + echo "Missing tool: $1" + echo "Cannot proceed until the missing tool is available" + exit 1 +} + +if [ ! -z ${AUTORECONF} ]; then + echo "Using autoreconf to rebuild build system" + autoreconf --force --install --symlink +else + echo "No autoreconf found. Using plain old tools to rebuild build system" + libtoolize --automake --force || error libtoolize + aclocal -I m4|| error aclocal + autoheader --force || error autoheader + automake --add-missing --force-missing --gnu || error automake + autoconf --force || error autoconf +fi +./configure --enable-maintainer-mode $* + +exit 0 diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..0550453 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,28 @@ +AUTOMAKE_OPTIONS = gnu + +AM_CPPFLAGS = \ + @GLIB_CFLAGS@ \ + @CURL_CFLAGS@ \ + -I$(top_srcdir) -I$(top_builddir) \ + -I$(top_srcdir)/src -I$(top_builddir)/src + +lib_LTLIBRARIES = libcaldav.la + +libcaldav_la_SOURCES = \ + caldav.c \ + curllib.c + +nodist_include_HEADERS = \ + globals.h \ + curllib.h + +libcaldavincludedir = $(pkgincludedir) +libcaldavinclude_HEADERS = \ + caldav.h + +libcaldav_la_LDFLAGS = \ + -version-info @LIBVERSION@ + +libcaldav_la_LIBADD = \ + $(GLIB_LIBS) \ + @CURL_LIBS@ -- 2.39.2