Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[plugins/netgenplugin.git] / src / NETGEN / Makefile.in
1 #  Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS, L3S, LJLL, MENSI
3 #
4 #  This library is free software; you can redistribute it and/or
5 #  modify it under the terms of the GNU Lesser General Public
6 #  License as published by the Free Software Foundation; either
7 #  version 2.1 of the License.
8 #
9 #  This library 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 GNU
12 #  Lesser General Public License for more details.
13 #
14 #  You should have received a copy of the GNU Lesser General Public
15 #  License along with this library; if not, write to the Free Software
16 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 # -* Makefile *- 
21 #
22 # Author : Edward AGAPOV (OCC)
23 # Module : NETGENPLUGIN
24 # Date : 10/01/2004
25 #
26 #
27
28 top_srcdir=@top_srcdir@
29 top_builddir=../..
30 srcdir=@srcdir@
31 VPATH=
32
33 # build .so of NETGEN itself
34
35 @COMMENCE@
36
37 LIB = libNETGEN.la
38
39 @CONCLUDE@
40
41 LIB_OBJ_O = \
42         linopt.o bfgs.o linsearch.o global.o bisect.o meshtool.o refine.o ruler3.o \
43         improve3.o adfront3.o tetrarls.o prism2rls.o profiler.o pyramidrls.o pyramid2rls.o \
44         netrule3.o ruler2.o meshclass.o improve2.o adfront2.o netrule2.o triarls.o geomsearch.o \
45         secondorder.o meshtype.o parser3.o quadrls.o specials.o parser2.o meshing2.o meshing3.o \
46         meshfunc.o localh.o improve2gen.o delaunay.o boundarylayer.o msghandler.o \
47         meshfunc2d.o smoothing2.o smoothing3.o topology.o curvedelems_new.o clusters.o zrefine.o \
48         ngexception.o geomtest3d.o geom2d.o geom2dmesh.o geom3d.o adtree.o transform3d.o geomfuncs.o \
49         polynomial.o densemat.o vector.o basemat.o sparsmat.o algprim.o brick.o manifold.o bspline2d.o \
50         meshsurf.o csgeom.o polyhedra.o curve2d.o singularref.o edgeflw.o solid.o explicitcurve2d.o \
51         specpoin.o gencyl.o revolution.o genmesh.o genmesh2d.o spline3d.o surface.o identify.o \
52         triapprox.o meshstlsurface.o stlline.o stltopology.o stltool.o stlgeom.o stlgeomchart.o \
53         stlgeommesh.o table.o optmem.o spbita2d.o hashtabl.o sort.o flags.o seti.o bitarray.o \
54         array.o symbolta.o mystring.o moveablemem.o spline.o splinegeometry.o ngnewdelete.o nglib.o \
55         hprefinement.o Partition_Inter2d.o Partition_Loop.o Partition_Loop3d.o Partition_Inter3d.o \
56         Partition_Loop2d.o Partition_Spliter.o occgeom.o occgenmesh.o occmeshsurf.o
57
58 NETGEN_LIBS_DIR=@NETGEN_LIBS_DIR@
59
60 $(LIB_OBJ_O):
61         ar x $(NETGEN_LIBS_DIR)/libnginterface.a
62         ar x $(NETGEN_LIBS_DIR)/libocc.a
63         ar x $(NETGEN_LIBS_DIR)/libcsg.a
64         ar x $(NETGEN_LIBS_DIR)/libgprim.a
65         ar x $(NETGEN_LIBS_DIR)/libmesh.a
66         ar x $(NETGEN_LIBS_DIR)/libopti.a
67         ar x $(NETGEN_LIBS_DIR)/libgen.a
68         ar x $(NETGEN_LIBS_DIR)/libla.a
69         ar x $(NETGEN_LIBS_DIR)/libstlgeom.a
70         ar x $(NETGEN_LIBS_DIR)/libgeom2d.a
71         rm -rf csgparser.o dynamicmem.o extrusion.o occconstruction.o parthreads.o readuser.o writeabaqus.o writediffpack.o writeelmer.o writefeap.o writefluent.o writegmsh.o writejcm.o writepermas.o writetecplot.o writetochnog.o writeuser.o wuchemnitz.o
72
73 LIB_OBJ_LO = $(LIB_OBJ_O:%.o=%.lo)
74
75 %.lo: %.o; @ln -s $< $@
76
77 $(LIB): $(LIB_OBJ_O) $(LIB_OBJ_LO)
78 LIB_OBJ = $(LIB_OBJ_LO)
79
80 ifeq ($(F77),gfortran)
81 LDFLAGS += -lgfortran
82 else
83 LDFLAGS += -lg2c
84 endif
85
86 LDFLAGS  += $(OCC_LDPATH) -lTKBRep -lTKShHealing -lTKSTEP -lTKXSBase -lTKIGES
87
88 MOSTLYCLEAN += $(LIB_OBJ_O)