-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
80 lines (62 loc) · 2.76 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# /******************************************************************
# * Copyright (c) 2000-2018, 2019 S.Bhatnagar
# *
# This file is part of fussy.
#
# fussy is a 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.
#
# fussy 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 fussy. If not, see <https://www.gnu.org/licenses/>.
bin_PROGRAMS = fussy
AM_CXXFLAGS = -Wno-dangling-else -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-c++11-compat-deprecated-writable-strings
noinst_LIBRARIES = libkum.a libcalc.a
libkum_a_SOURCES = src/sla/djm2e.f src/sla/ep2da.f src/sla/frye.f \
src/sla/slacaldj.f src/sla/slacldj.f src/sla/sladcc2s.f \
src/sla/sladcs2c.f src/sla/sladjcl.f src/sla/sladmxv.f \
src/sla/sladranrm.f src/sla/slagmst.f src/sla/slaprebn.f \
src/sla/slapreces.f src/sla/slaprec.f
libcalc_a_SOURCES = src/fussyparse.yy src/calcinit.cc src/tables.cc src/vcode.cc \
src/prtFuncs.cc src/ErrorObjStr.cc src/func.cc src/BitField.cc \
src/IDResource.cc src/ExitMsg.cc
src/fussyparse.yy: src/lex.yy.c
src/lex.yy.c: src/fussylex.l
$(LEX) $<
src/vm.a:
(cd src; sh ./vmMake $(CXX) -g -Wall -I. -Iemath > vm.a)
src/type.a: src/fussyparse.hh
(cd src; sh ./typeMake ./fussyparse.hh > type.a)
src/prtFuncs.cc: src/vm.a src/type.a
AM_YFLAGS = -d -t -y -p calc_
libcalc_a_CXXFLAGS = $(AM_CXXFLAGS) -Isrc -Isrc/emath
libcalc_a_CFLAGS = $(AM_CFLAGS) -Isrc -Isrc/emath
fussy_CXXFLAGS = $(AM_CXXFLAGS) -Isrc -Isrc/emath
fussy_CFLAGS = $(AM_CFLAGS) -Isrc -Isrc/emath
fussy_SOURCES = src/fussy.cc src/vcode.cc
fussy_LDADD = libkum.a libcalc.a
doc_DATA = doc/LaTeX/fussy.tex
if HAVE_PDFLATEX
doc_DATA += doc/LaTeX/fussy.pdf
doc/LaTeX/fussy.pdf: doc/LaTeX/fussy.tex
cd doc/LaTeX && $(PDFLATEX) fussy && $(PDFLATEX) fussy && $(PDFLATEX) fussy
if HAVE_HTLATEX
doc_DATA += doc/fussy.html
doc/fussy.html: doc/LaTeX/fussy.tex
mkdir doc/fussy.html ; cd doc/LaTeX ; mkdir tmp ; cd tmp ; cp -r ../* . ; \
htlatex fussy.tex "xhtml, mathml" "" -d../../../doc/fussy.html/ ; cd ../ ; \rm -rf tmp
endif
doc_DATA += doc/GNUFussyHomepage/fussy.info
doc/GNUFussyHomepage/fussy.info: doc/GNUFussyHomepage/fussy.texinfo
cd doc/GNUFussyHomepage && make manual
all-clean: maintainer-clean
\rm -rf doc/LaTeX/fussy.{pdf,aux,toc,out,log} doc/fussy.html
cd doc/GNUFussyHomepage && make clean
endif
TESTS = src/test/fussytest