1# Copyright (C) 1999, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2011,
2# 2012, 2013 Free Software Foundation, Inc.
3#
4# This file is part of GNU libmatheval
5#
6# GNU libmatheval is free software: you can redistribute it and/or
7# modify it under the terms of the GNU General Public License as
8# published by the Free Software Foundation, either version 3 of the
9# License, or (at your option) any later version.
10#
11# GNU libmatheval is distributed in the hope that it will be useful, but
12# WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14# General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with GNU libmatheval.  If not, see
18# <http://www.gnu.org/licenses/>.
19
20MAINTAINERCLEANFILES = Makefile.in parser.c parser.h scanner.c
21
22EXTRA_DIST = parser.h
23
24INCLUDES = -I$(top_builddir) -I$(top_srcdir)
25
26lib_LTLIBRARIES = libmatheval.la
27
28libmatheval_la_SOURCES = parser.y scanner.l error.c matheval.c	\
29g77_interface.c node.c symbol_table.c xmalloc.c xmath.c
30
31libmatheval_la_LDFLAGS = -version-info 1:0:0
32libmatheval_la_LIBADD = @LEXLIB@ -lm
33
34include_HEADERS = matheval.h
35noinst_HEADERS = common.h error.h node.h symbol_table.h xmalloc.h	\
36xmath.h
37
38AM_YFLAGS = -d
39
40.PHONY: beauty
41
42beauty:
43	-for file in $$(ls *.c *.h); do indent -orig -i8 -ncdb $$file; done
44	-rm -f *~
45