summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-01-15 22:20:14 +0000
committerLennart Poettering <lennart@poettering.net>2005-01-15 22:20:14 +0000
commitad8230c938a46d42fa53e69915c35842936612d2 (patch)
tree21bc9424251b6c7d9669299717fdd3ed66d2dd98 /src
parentcee709762ac069885a7066a3d6ae362a4c45656f (diff)
add autoconf stuff
git-svn-id: file:///home/lennart/svn/public/heatload/trunk@9 3bca8330-beed-0310-b360-ea58cfc96e4b
Diffstat (limited to 'src')
-rw-r--r--src/Makefile46
-rw-r--r--src/Makefile.am24
2 files changed, 24 insertions, 46 deletions
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644
index 2f96dd2..0000000
--- a/src/Makefile
+++ /dev/null
@@ -1,46 +0,0 @@
-VERSION=0.3
-CXXFLAGS=-Wall -W -pipe -O2 -g -DVERSION=\"$(VERSION)\" `pkg-config --cflags gtkmm-2.4 gdkmm-2.4`
-TAR=heatload-$(VERSION).tar.gz
-SOURCES=heatload.cc
-BINARY=heatload
-LIBS=`pkg-config --libs gtkmm-2.4 gdkmm-2.4`
-PACKAGE=heatload
-
-all: $(BINARY)
-
-$(BINARY): $(SOURCES)
- $(CXX) $(CXXFLAGS) $(SOURCES) -o $(BINARY) $(LIBS)
-
-strip: $(BINARY)
- @du -h $(BINARY)
- strip -s $(BINARY)
- @du -h $(BINARY)
-
-clean:
- rm -f $(BINARY)
- rm -f *~ *.bak *.tar.gz
-
-install: strip
- install -g root -o root -m 555 $(BINARY) /usr/local/bin
-
-deinstall:
- rm -f /usr/local/bin/$(BINARY)
-
-README: README.in
- sed s/VERSION/$(VERSION)/ < README.in > README
-
-index.html: README
- txt2html -t "$(PACKAGE) $(VERSION)" < README > index.html
-
-html: index.html
-
-$(TAR): clean README
- tar -C.. --exclude=$(PACKAGE)/$(TAR) -czvf $(TAR) $(PACKAGE)
-
-tar: $(TAR)
-
-web: $(TAR) README
- cp README $(TAR) ../../homepage/lennart/projects/$(PACKAGE)/ && $(MAKE) -C ../../homepage/lennart/projects/$(PACKAGE)
-
-upload: web
- $(MAKE) -C ../../homepage/lennart upload
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..e6818a8
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,24 @@
+# $Id$
+#
+# This file is part of heatload.
+#
+# heatload 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; either version 2 of the
+# License, or (at your option) any later version.
+#
+# heatload 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 heatload; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA.
+
+bin_PROGRAMS = heatload
+
+heatload_SOURCES = heatload.cc
+heatload_CXXFLAGS = $(AM_CXXFLAGS) $(GTKMM_CFLAGS)
+heatload_LDADD = $(AM_LDADD) $(GTKMM_LIBS)