Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/libpainter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2015-06-14 09:51:27 +0300
committerJay Sorg <jay.sorg@gmail.com>2015-06-14 09:51:27 +0300
commita62712531973ede8e3d52278372b527cb0a90cad (patch)
tree12c0c0a78b5d2379de27fe772a4144db46a401e3
parentde4deb34003317cb697ef43c8faceffce8be91c6 (diff)
add autotools files
-rw-r--r--.gitignore29
-rw-r--r--Makefile.am6
-rwxr-xr-xbootstrap36
-rw-r--r--configure.ac23
-rw-r--r--src/Makefile.am21
-rw-r--r--tests/Makefile.am24
-rw-r--r--tests/paintertest.c9
7 files changed, 148 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0f54594
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,29 @@
+*~
+aclocal.m4
+AUTHORS
+autom4te.cache/
+ChangeLog
+config_ac.h
+config_ac-h.in
+config.c
+config.guess
+config.log
+config.status
+config.sub
+configure
+depcomp
+.deps/
+install-sh
+*.la
+.libs
+libtool
+*.lo
+ltmain.sh
+Makefile
+Makefile.in
+missing
+NEWS
+*.o
+README
+stamp-h1
+
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..dad8f6a
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,6 @@
+EXTRA_DIST = bootstrap readme.txt
+
+SUBDIRS = \
+ src \
+ tests
+
diff --git a/bootstrap b/bootstrap
new file mode 100755
index 0000000..ec344d3
--- /dev/null
+++ b/bootstrap
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+which autoconf
+if ! test $? -eq 0
+then
+ echo "error, install autoconf"
+ exit 1
+fi
+
+which automake
+if ! test $? -eq 0
+then
+ echo "error, install automake"
+ exit 1
+fi
+
+which libtool
+if ! test $? -eq 0
+then
+ echo "error, install libtool"
+ exit 1
+fi
+
+which pkg-config
+if ! test $? -eq 0
+then
+ echo "error, install pkg-config"
+ exit 1
+fi
+
+touch configure.ac
+touch NEWS
+touch AUTHORS
+touch README
+touch ChangeLog
+autoreconf -fvi
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..acf81eb
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,23 @@
+# Process this file with autoconf to produce a configure script
+
+AC_PREREQ(2.59)
+AC_INIT([libpainter], [0.1.0], [xrdp-devel@lists.sourceforge.net])
+AC_CONFIG_HEADERS(config_ac.h:config_ac-h.in)
+AM_INIT_AUTOMAKE([1.6 foreign])
+AC_PROG_CC
+AC_C_CONST
+AC_PROG_LIBTOOL
+
+AM_CONDITIONAL(GOT_PREFIX, test "x${prefix}" != "xNONE"])
+
+if test "x${prefix}" = "xNONE" ; then
+sysconfdir="/etc";
+fi
+
+AC_CONFIG_FILES([Makefile
+ src/Makefile
+ tests/Makefile
+])
+
+AC_OUTPUT
+
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..c79791d
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,21 @@
+EXTRA_DIST =
+
+EXTRA_PAINTER_DEFINES =
+EXTRA_PAINTER_INCLUDES =
+EXTRA_PAINTER_LIBS =
+EXTRA_PAINTER_FLAGS =
+
+AM_CFLAGS = \
+ -I../include \
+ $(EXTRA_PAINTER_FLAGS)
+
+lib_LTLIBRARIES = libpainter.la
+
+libpainter_la_LDFLAGS =
+
+libpainter_ladir = $(moduledir)
+
+libpainter_la_SOURCES = painter.c painter_utils.c
+
+libpainter_la_LIBADD =
+
diff --git a/tests/Makefile.am b/tests/Makefile.am
new file mode 100644
index 0000000..dcd30d8
--- /dev/null
+++ b/tests/Makefile.am
@@ -0,0 +1,24 @@
+EXTRA_DIST =
+
+EXTRA_INCLUDES =
+EXTRA_LIBS =
+EXTRA_FLAGS =
+
+if GOT_PREFIX
+EXTRA_INCLUDES += -I$(prefix)/include
+EXTRA_FLAGS += -L$(prefix)/lib -Wl,-rpath -Wl,$(prefix)/lib
+endif
+
+INCLUDES = \
+ -I$(top_srcdir)/include \
+ $(EXTRA_INCLUDES)
+
+bin_PROGRAMS = paintertest
+
+paintertest_SOURCES = paintertest.c
+
+paintertest_LDADD = \
+ $(top_builddir)/src/libpainter.la $(EXTRA_LIBS)
+
+paintertest_LDFLAGS = $(EXTRA_FLAGS)
+
diff --git a/tests/paintertest.c b/tests/paintertest.c
new file mode 100644
index 0000000..f8100d8
--- /dev/null
+++ b/tests/paintertest.c
@@ -0,0 +1,9 @@
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+int main(int argc, char **argv)
+{
+ return 0;
+}