summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore26
-rw-r--r--Makefile.am1
-rwxr-xr-xautogen.sh9
-rw-r--r--configure.ac30
-rw-r--r--src/Makefile.am8
-rw-r--r--src/pjctl.c0
6 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..703a8a9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,26 @@
+*.deps
+*.o
+*.pc
+*.so
+*.swp
+*~
+.libs
+/aclocal.m4
+/autom4te.cache
+/config.guess
+/config.h
+/config.h.in
+/config.log
+/config.mk
+/config.status
+/config.sub
+/configure
+/depcomp
+/install-sh
+/libtool
+/ltmain.sh
+/missing
+/stamp-h1
+Makefile
+Makefile.in
+pjctl
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..af437a6
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = src
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..916169a
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+(
+ cd "$srcdir" &&
+ autoreconf --force -v --install
+) || exit
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..9a622c5
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,30 @@
+AC_PREREQ([2.64])
+
+AC_INIT([pjctl],
+ [1],
+ [benjaminfranzke@googlemail.com],
+ [pjctl],
+ [https://gitorious.org/pjctl/])
+
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIR([m4])
+
+AM_INIT_AUTOMAKE([foreign dist-bzip2])
+
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
+# Check for programs
+AC_PROG_CC
+
+PKG_PROG_PKG_CONFIG()
+PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.28])
+PKG_CHECK_MODULES(GIO, [gio-2.0])
+
+if test "x$GCC" = "xyes"; then
+ GCC_CFLAGS="-Wall -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"
+fi
+AC_SUBST([GCC_CFLAGS])
+
+AC_CONFIG_FILES([Makefile
+ src/Makefile])
+AC_OUTPUT
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..c3bb4c5
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,8 @@
+bin_PROGRAMS = pjctl
+
+pjctl_SOURCES = pjctl.c
+
+pjctl_LDADD = $(GLIB_LIBS) $(GIO_LIBS)
+AM_CPPFLAGS = $(GLIB_CFLAGS) $(GIO_CFLAGS)
+
+AM_CFLAGS = $(GCC_CFLAGS)
diff --git a/src/pjctl.c b/src/pjctl.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/pjctl.c