summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore16
-rw-r--r--Makefile7
-rw-r--r--Makefile.am5
-rwxr-xr-xbootstrap2
-rw-r--r--configure.ac7
5 files changed, 30 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index 919e6fd..9594528 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,17 @@
setbg
+.deps
+Makefile
+Makefile.in
+aclocal.m4
+autom4te.cache
+config.h
+config.h.in
+config.log
+config.status
+configure
+depcomp
+install-sh
+missing
+*.o
+stamp-h1
+compile
diff --git a/Makefile b/Makefile
deleted file mode 100644
index c1ad25b..0000000
--- a/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-all: setbg
-
-setbg: setbg.c
- gcc -g -Wall -o setbg setbg.c `pkg-config --cflags --libs x11 xinerama gdk-2.0 dconf gio-2.0`
-
-clean:
- rm -f setbg
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..2fa8a31
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,5 @@
+bin_PROGRAMS = setbg
+setbg_SOURCES = setbg.c
+
+AM_CPPFLAGS = $(DEPS_CFLAGS)
+setbg_LDADD = $(DEPS_LIBS)
diff --git a/bootstrap b/bootstrap
new file mode 100755
index 0000000..442cb4f
--- /dev/null
+++ b/bootstrap
@@ -0,0 +1,2 @@
+#!/bin/sh
+autoreconf -vi
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..d28fae2
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,7 @@
+AC_INIT([setbg], [1.0], [kinote@kinote.org])
+AM_INIT_AUTOMAKE([foreign -Wall -Werror])
+AC_PROG_CC
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_FILES([Makefile])
+PKG_CHECK_MODULES([DEPS], [x11 xinerama gdk-2.0 dconf gio-2.0])
+AC_OUTPUT