# Ejemplo 04: la tabla desde una expresion de ExprTk.
#
# Muestra Table('archivo','COLX','COLY',valor,metodo) adentro de una expresion,
# que es como la usan Simusol y Sceptre.
#
# Se enlaza contra el arbol de fuentes; ver ../comun.mk. exprtk.hpp sale de
# ../../src/exprtk, que es la unica copia del paquete: antes se esperaba en
# /tmp/down, que no existe.
#
# El fuente que se compila es ../../src/exprtk/exprtk_table.cpp, el que mantiene
# el paquete: aca no hay copia. Habia una de abril de 2024 y se borro, porque
# mantener dos veces lo mismo es como se llego a que no compilara --no definia
# verbose ni archivoenuso, usaba una variable sin inicializar donde va la ruta
# del ejecutable y buscaba los datos en ../share/tabular/data, la distribucion
# de tabular 1--.
#
# 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

EXPRTK = -I$(TOP)/src/exprtk

all: exprtk_table

FUENTE = $(TOP)/src/exprtk/exprtk_table.cpp

exprtk_table: $(FUENTE) $(TABULAR_A) Makefile ../comun.mk
	$(CXX) $(CXXFLAGS) $(INCLUDES) $(EXPRTK) -o $@ $(FUENTE) $(LIBS)

prueba: exprtk_table
	./exprtk_table

clean:
	rm -f *~ *.o exprtk_table exprtk_table_static

.PHONY: all prueba clean
