1############################################################################
2# This file is part of FreeFEM.                                            #
3#                                                                          #
4# FreeFEM is free software: you can redistribute it and/or modify          #
5# it under the terms of the GNU Lesser General Public License as           #
6# published by the Free Software Foundation, either version 3 of           #
7# the License, or (at your option) any later version.                      #
8#                                                                          #
9# FreeFEM is distributed in the hope that it will be useful,               #
10# but WITHOUT ANY WARRANTY; without even the implied warranty of           #
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
12# GNU Lesser General Public License for more details.                      #
13#                                                                          #
14# You should have received a copy of the GNU Lesser General Public License #
15# along with FreeFEM. If not, see <http://www.gnu.org/licenses/>.          #
16############################################################################
17# SUMMARY : ...
18# LICENSE : LGPLv3
19# ORG     : LJLL Universite Pierre et Marie Curie, Paris, FRANCE
20# AUTHORS : ...
21# E-MAIL  : ...
22
23# To create statically linked executables (see configure.ac)
24CXXLD = $(STATICTOOL) $(CXX)
25bin_PROGRAMS = FreeFem++ FreeFem++-nw @FFGLUTPROG@
26EXTRA_PROGRAMS = ffglut
27
28# FFCS:visualization stream redirection
29ffglut_SOURCES = ../femlib/Drawing.cpp \
30  ../femlib/fem.cpp \
31  ../fflib/ffapi.cpp \
32  ../femlib/FQuadTree.cpp \
33  ../femlib/GQuadTree.cpp \
34  ../femlib/Mesh1dn.cpp \
35  ../femlib/Mesh2dn.cpp \
36  ../femlib/Mesh3dn.cpp \
37  ../femlib/MeshSn.cpp \
38  ../femlib/MeshLn.cpp \
39  ../femlib/mshptg.cpp \
40  ../Graphics/ffglut.cpp \
41  ../Graphics/ffthreads.cpp \
42  ../Graphics/ffthreads.hpp \
43  ../Graphics/gggg.cpp
44
45ffglut_DEPENDENCIES = ../libMesh/libMesh.a
46ffglut_LDADD = ../libMesh/libMesh.a @LIBSGLUT@ @LIBSPTHREAD@
47
48FreeFem___nw_SOURCES = ../Graphics/sansrgraph.cpp ../mpi/parallelempi-empty.cpp ../fflib/ffapi.cpp
49FreeFem___SOURCES = ../Graphics/sansrgraph.cpp ../mpi/parallelempi-empty.cpp ../fflib/ffapi.cpp
50
51FreeFem___nw_DEPENDENCIES = ../fflib/libff.a ../lglib/liblg.a
52FreeFem___DEPENDENCIES = ../fflib/libff.a ../lglib/liblg.a
53
54LDADD = ../lglib/liblg.a ../fflib/libff.a @UMFPACKLIBS@ @ARPACKLIBS@ @BLASLIBS@
55AM_CPPFLAGS = -I$(srcdir)/../fflib -I$(srcdir)/../Graphics -I$(srcdir)/../.. -I$(srcdir)/../femlib
56