# Ejemplo 02: interpola, un programa de linea de comandos.
#
#   ./interpola tanque.simul VALOR_INICIAL VALOR_FINAL SALTO ABSCISA COL1 COL2...
#
# Por ejemplo, sobre la salida de una simulacion de Simusol que viene aca al
# lado:
#
#   ./interpola tanque.simul 0 10000 1000 TIME VCA J1
#
# Se enlaza contra el arbol de fuentes; ver ../comun.mk.
#
# This file is part of Tabular
#
#    Tabular is free software: you can redistribute it and/or modify
#    it under the terms of
#
#     1)the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    2) Any other free licence with copyleft recognized by the FSF
#
#    Tabular 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 Tabular.  If not, see <http://www.gnu.org/licenses/>.

include ../comun.mk

all: interpola

interpola: interpola.c $(TABULAR_A) Makefile ../comun.mk
	$(CC) $(CFLAGS) $(INCLUDES) -o $@ interpola.c $(LIBS)

# Corre el ejemplo con los datos que estan aca al lado
prueba: interpola
	./interpola tanque.simul 0 10000 1000 TIME VCA J1

clean:
	rm -f core.* *~ *.o *.bak *stackdump gmon.out *.gcda *.gcno interpola *.INTER

.PHONY: all prueba clean
