From ad8230c938a46d42fa53e69915c35842936612d2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 15 Jan 2005 22:20:14 +0000 Subject: add autoconf stuff git-svn-id: file:///home/lennart/svn/public/heatload/trunk@9 3bca8330-beed-0310-b360-ea58cfc96e4b --- src/Makefile | 46 ---------------------------------------------- src/Makefile.am | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 46 deletions(-) delete mode 100644 src/Makefile create mode 100644 src/Makefile.am (limited to 'src') 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) -- cgit