#
#                          makefile
#    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 version 3 of the License
#
#    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, see <http://www.gnu.org/licenses/>.
#
#    Contact through http://www.computational-thermodynamics.mpg.de
#
# FFLAGS= -qsource -O
XLF= g77
# Dans sources on met toutes les subroutines SAUF le PRINCIPAL
sources= refstate.f dollar.f decoded.f elemsub.f

# Idem pour les objects
objects= refstate.o dollar.o decoded.o elemsub.o
.f.o:
	$(XLF) $(FFLAGS) -c $<

tdb2tex:  $(objects) tdb2texd.f
	$(XLF)  $(FFLAGS) -o  tdb2texd tdb2texd.f  $(objects)

install: tdb2texd
	cp tdb2texd ${HOME}/bin

clean: install
	rm *.o
	rm tbd2texd
	rm *.lst


