automakeize
authormail <mail@joachim-breitner.de>
Thu, 14 Jun 2007 16:52:48 +0000 (16:52 +0000)
committermail <mail@joachim-breitner.de>
Thu, 14 Jun 2007 16:52:48 +0000 (16:52 +0000)
Makefile [deleted file]
Makefile.am [new file with mode: 0644]
configure.ac [new file with mode: 0644]

diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index 3ead73c..0000000
--- a/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-CFLAGS=-O3 `pkg-config pango gtk+-2.0 gdk-2.0 --cflags `
-LDFLAGS=-lm `pkg-config pango gtk+-2.0 gdk-2.0 --libs `
-
-all: sm
-
-sm: sm.c
-       gcc $(CFLAGS) $(LDFLAGS) $^ -o $@
-
-clean:
-       rm -f sm
-
diff --git a/Makefile.am b/Makefile.am
new file mode 100644 (file)
index 0000000..e5189dc
--- /dev/null
@@ -0,0 +1,8 @@
+
+bin_PROGRAMS = sm
+sm_SOURCES = sm.c
+sm_CFLAGS = $(DEPS_CFLAGS)
+sm_LDADD = $(DEPS_LIBS)
+
+man_MANS = sm.1
+EXTRA_DIST = sm.1
diff --git a/configure.ac b/configure.ac
new file mode 100644 (file)
index 0000000..9c19a12
--- /dev/null
@@ -0,0 +1,16 @@
+AC_INIT(sm, 0.3, mail@joachim-breitner.de)
+AC_CONFIG_SRCDIR([sm.c])
+AM_INIT_AUTOMAKE([foreign])
+
+AC_CONFIG_HEADERS(config.h)
+
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_STDC_HEADERS
+
+PKG_CHECK_MODULES(DEPS, gtk+-2.0 >= 2.10 gdk-2.0 >= 2.10 pango >= 1.16)
+AC_SUBST(DEPS_CFLAGS)
+AC_SUBST(DEPS_LIBS)
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT