#
# **************************************************************
# *                  SIMUSOL PROYECT                           *
# *                                                            *
# *         Table extension for:                               *
# *         C++ Mathematical Expression Toolkit Library        *
# *         which is located in:                               *
# * URL: http://www.partow.net/programming/exprtk/index.html   *
# *                                                            *
# *   The extension was developed by                           *
# *   Diego.Saravia@gmail.com, 2016                            *
# *   and could be used in the same terms of the toolkit       *
# *   or every free license with copyleft needed.              *
# *   http://www.simusol.org                                   *
# **************************************************************
# This file is part of Table.
#
#    Table 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 3 of the License, or
#    (at your option) any later version.
#
#    Table 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 Table.  If not, see <http://www.gnu.org/licenses/>.

all: example_table

include ../makefile.inc


example_table.o: example_table.c
	 $(COMPILERC) $(OPTIONS) -c  -g -o example_table.o example_table.c



example_table_static: example_table.c  ../src/libsimusol_table.a simusol_table.h Makefile ../makefile.inc   # simusol_table_internal.h
	$(COMPILERC) $(OPTIONS) -static   -g -o example_table_static  example_table.c ../src/libsimusol_table.a $(LINKER_OPT)


example_table: ../src/simusol_table.c example_table.o example_table.c ../src/simusol_table.h  Makefile ../makefile.inc /usr/local/lib/libsimusol_table.so.1.0.1 # simusol_table_internal.h
	$(COMPILERC) $(OPTIONS)   -g -o example_table   example_table.o -lsimusol_table $(LINKER_OPT)

clean::
	rm -f core.* *~ *.o *.bak *stackdump gmon.out *.gcda *.gcno *.gcnor *.gch example_table example_table_static
