summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14ac736)
raw | patch | inline | side by side (parent: 14ac736)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 9 Jan 2008 08:13:41 +0000 (09:13 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 9 Jan 2008 08:13:41 +0000 (09:13 +0100) |
* Libtoolized project.
* Added basically empty src/libfoobar.c and src/foobar.h.
* Added basically empty src/libfoobar.c and src/foobar.h.
.gitignore | patch | blob | history | |
bootstrap.sh | patch | blob | history | |
configure.ac | patch | blob | history | |
src/Makefile.am | patch | blob | history | |
src/foobar.c | patch | blob | history | |
src/foobar.h | [new file with mode: 0644] | patch | blob |
src/libfoobar.c | [new file with mode: 0644] | patch | blob |
diff --git a/.gitignore b/.gitignore
index 04580d2959b8d96ee32264fbfb5d3951be9f149d..860a4a0af1ec53694a48c1a380f52394a1b7a4d8 100644 (file)
--- a/.gitignore
+++ b/.gitignore
missing
stamp-h1
+# ltdl stuff
+libltdl
+libtool
+ltmain.sh
+
# build output
.libs
+*.la
+*.lo
*.o
foobar
diff --git a/bootstrap.sh b/bootstrap.sh
index 827027a30f0c23471c44fda9c3357db0dda123c0..40a1920fe9aa70451916b9442378c1e4d1779d3b 100755 (executable)
--- a/bootstrap.sh
+++ b/bootstrap.sh
test ! -f Makefile || make distclean
+rm -rf libltdl
+
rm -rf autom4te.cache
rm -f config.cache
aclocal
autoheader
+libtoolize --ltdl --copy --force
automake --add-missing --copy --foreign
autoconf -Wall
diff --git a/configure.ac b/configure.ac
index de68d59e50eff42c1aac767f45210d6a7c462875..583843df66554a719d478788c4e5e0aa7e33f8b9 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AM_PROG_CC_C_O
+AC_PROG_LIBTOOL
+
test_cc_flags() {
AC_LANG_CONFTEST([int main() {}])
$CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
diff --git a/src/Makefile.am b/src/Makefile.am
index 12dc45ef3f150f732d04cade0f8c2b0dd74a69b7..f90eccd224aa359c937c1616092fc43eba6030bc 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
AM_CFLAGS = @STRICT_CFLAGS@
+include_HEADERS = foobar.h
+lib_LTLIBRARIES = libfoobar.la
+
+libfoobar_la_SOURCES = libfoobar.c foobar.h
+libfoobar_la_LDFLAGS = -version-info 0:0:0
+
bin_PROGRAMS = foobar
-foobar_SOURCES = foobar.c
+foobar_SOURCES = foobar.c foobar.h
diff --git a/src/foobar.c b/src/foobar.c
index 523b57c6cd8f76ea926e05744b0c2d3e11249ded..c4205e9f7e1bf5d451eb4f0b680235427afb74af 100644 (file)
--- a/src/foobar.c
+++ b/src/foobar.c
# include "config.h"
#endif /* HAVE_CONFIG_H */
+#include "foobar.h"
+
#if HAVE_LIBGEN_H
# include <libgen.h>
#else /* HAVE_LIBGEN_H */
diff --git a/src/foobar.h b/src/foobar.h
--- /dev/null
+++ b/src/foobar.h
@@ -0,0 +1,37 @@
+/*
+ * foobar - src/foobar.h
+ * Copyright (C) 2008 Sebastian Harl <sh@tokkee.org>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; only version 2 of the License is applicable.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * A short description of this module...
+ */
+
+#ifndef FOOBAR_H
+#define FOOBAR_H 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* ! FOOBAR_H */
+
+/* vim: set tw=78 sw=4 ts=4 noexpandtab : */
+
diff --git a/src/libfoobar.c b/src/libfoobar.c
--- /dev/null
+++ b/src/libfoobar.c
@@ -0,0 +1,26 @@
+/*
+ * foobar - src/libfoobar.c
+ * Copyright (C) 2008 Sebastian Harl <sh@tokkee.org>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; only version 2 of the License is applicable.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * A short description of this module...
+ */
+
+#include "foobar.h"
+
+/* vim: set tw=78 sw=4 ts=4 noexpandtab : */
+