# Lattice Boltzmann sample, written in Fortran 90
# 
# Copyright (C) 2006 Orestis Malaspinas
# Address: EPFL STI ISE LIN, ME A2 398, 1015 Lausanne, Switzerland
# E-mail: orestis.malaspinas@epfl.ch
# 
# This program 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.
# 
# This program 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 this program; if not, write to the Free 
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA  02110-1301, USA.


SHELL = /bin/sh
FC    = gfortran

default: unsteady

.SUFFIXES: .f90 .o
.f90.o:
	$(FC) $(IFORTOPT) $<
	
OBJunsteady = unsteady.o

# IFORTOPT = -fast -mp1 -inline all -mcpu=itanium -mtune=itanium -c
IFORTOPT	= -O3 -ipo -w -c

unsteady:	$(OBJunsteady)
	$(FC) -ipo -o unsteady $(OBJunsteady)

clean:
	/bin/rm -f  *.o unsteady *.mod *.dat
	
all:
	make unsteady
