# Copyright 2005,2006 Jouni K. Seppnen          -*- coding: iso-8859-1 -*-
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE.

VERSION=1.0
DISTRIBUTABLES=dense.cc util.h dense.h Makefile example.dat LICENSE README

dense: dense.cc util.h dense.h
	g++ -g -Wall -o dense dense.cc

dense.opt: dense.cc util.h dense.h
	g++ -O3 -march=athlon-xp -DNDEBUG -o dense.opt dense.cc

dense.prof: dense.cc util.h dense.h
	g++ -pg -O3 -march=athlon-xp -DNDEBUG -o dense.prof dense.cc

clean:
	rm -f dense dense.opt dense.prof *~

dist:
	mkdir dense-$(VERSION)
	cp -l $(DISTRIBUTABLES) dense-$(VERSION)
	tar -c -f dense-$(VERSION).tar -h dense-$(VERSION)
	bzip2 -9 dense-$(VERSION).tar
	rm -rf dense-$(VERSION)

