Salome HOME
Committing of a more precise README file in the Med Memory V3_2_0.
[modules/med.git] / src / MEDMEM / Makefile.in
1 #  MED MEDMEM : MED files in memory
2 #
3 #  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5
6 #  This library is free software; you can redistribute it and/or 
7 #  modify it under the terms of the GNU Lesser General Public 
8 #  License as published by the Free Software Foundation; either 
9 #  version 2.1 of the License. 
10
11 #  This library is distributed in the hope that it will be useful, 
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 #  Lesser General Public License for more details. 
15
16 #  You should have received a copy of the GNU Lesser General Public 
17 #  License along with this library; if not, write to the Free Software 
18 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 #
23 #
24 #  File   : Makefile.in
25 #  Author : Patrick GOLDBRONN (CEA/DEN/DM2S/SFME/LGLS)
26 #  Module : MED
27
28 top_srcdir=@top_srcdir@
29 top_builddir=../..
30 srcdir=@srcdir@
31 VPATH=.:$(srcdir):$(srcdir)/tests
32
33 MACHINE=PCLINUX
34
35 @COMMENCE@
36
37
38 EXPORT_PYSCRIPTS = \
39
40
41 EXPORT_HEADERS = \
42 MEDMEM_PointerOf.hxx \
43 MEDMEM_CellModel.hxx \
44 MEDMEM_Connectivity.hxx \
45 MEDMEM_Coordinate.hxx \
46 MEDMEM_define.hxx \
47 MEDMEM_DriversDef.hxx \
48 MEDMEM_DriverFactory.hxx \
49 MEDMEM_Family.hxx \
50 MEDMEM_Field.hxx \
51 MEDMEM_GenDriver.hxx \
52 MEDMEM_Group.hxx \
53 MEDMEM_Array.hxx \
54 MEDMEM_Exception.hxx \
55 MEDMEM_MedFieldDriver.hxx \
56 MEDMEM_AsciiFieldDriver.hxx \
57 MEDMEM_Med.hxx \
58 MEDMEM_MedMedDriver.hxx \
59 MEDMEM_MedMeshDriver.hxx \
60 MEDMEM_GibiMeshDriver.hxx \
61 MEDMEM_PorflowMeshDriver.hxx \
62 MEDMEM_DriverTools.hxx \
63 MEDMEM_ModulusArray.hxx \
64 MEDMEM_SkyLineArray.hxx \
65 MEDMEM_VtkMedDriver.hxx \
66 MEDMEM_VtkMeshDriver.hxx \
67 MEDMEM_VtkFieldDriver.hxx \
68 MEDMEM_Mesh.hxx \
69 MEDMEM_Meshing.hxx \
70 MEDMEM_STRING.hxx \
71 MEDMEM_Support.hxx \
72 MEDMEM_Unit.hxx \
73 MEDMEM_Grid.hxx \
74 MEDMEM_RCBase.hxx \
75 MEDMEM_medimport_src.hxx \
76 MEDMEM_MedVersion.hxx \
77 MEDMEM_Compatibility21_22.hxx \
78 MEDMEM_MedFieldDriver21.hxx \
79 MEDMEM_MedMeshDriver21.hxx \
80 MEDMEM_MedMedDriver21.hxx \
81 MEDMEM_PolyhedronArray.hxx \
82 MEDMEM_MedFieldDriver22.hxx \
83 MEDMEM_MedMedDriver22.hxx \
84 MEDMEM_MedMeshDriver22.hxx \
85 MEDMEM_TopLevel.hxx \
86 MEDMEM_Utilities.hxx \
87 MEDMEM_ArrayInterface.hxx \
88 MEDMEM_IndexCheckingPolicy.hxx \
89 MEDMEM_InterlacingPolicy.hxx \
90 MEDMEM_InterlacingTraits.hxx \
91 MEDMEM_nArray.hxx \
92 MEDMEM_Tags.hxx \
93 MEDMEM_FieldConvert.hxx \
94 MEDMEM_ArrayConvert.hxx \
95 MEDMEM_FieldForward.hxx \
96 MEDMEM_GaussLocalization.hxx \
97 MEDMEM_MEDMEMgaussEcr.hxx \
98 MEDMEM_MEDMEMprofilEcr.hxx \
99 MEDMEM_MEDMEMchampLire.hxx \
100 MEDMEM_SetInterlacingType.hxx
101
102 # Libraries targets
103
104 LIB=libmedmem.la
105
106 LIB_SRC = \
107 MEDMEM_Init.cxx \
108 MEDMEM_CellModel.cxx \
109 MEDMEM_Connectivity.cxx \
110 MEDMEM_Coordinate.cxx \
111 MEDMEM_DriversDef.cxx \
112 MEDMEM_DriverFactory.cxx \
113 MEDMEM_Family.cxx \
114 MEDMEM_Field.cxx \
115 MEDMEM_GenDriver.cxx \
116 MEDMEM_Group.cxx \
117 MEDMEM_Med.cxx \
118 MEDMEM_Exception.cxx \
119 MEDMEM_MedMedDriver.cxx \
120 MEDMEM_MedMeshDriver.cxx \
121 MEDMEM_GibiMeshDriver.cxx \
122 MEDMEM_PorflowMeshDriver.cxx \
123 MEDMEM_DriverTools.cxx \
124 MEDMEM_SkyLineArray.cxx \
125 MEDMEM_Mesh.cxx \
126 MEDMEM_Meshing.cxx \
127 MEDMEM_Support.cxx \
128 MEDMEM_Unit.cxx \
129 MEDMEM_VtkMedDriver.cxx \
130 MEDMEM_VtkMeshDriver.cxx \
131 MEDMEM_Grid.cxx \
132 MEDMEM_MedVersion.cxx \
133 MEDMEM_MedMeshDriver21.cxx \
134 MEDMEM_MedMedDriver21.cxx \
135 MEDMEM_medimport_src.cxx \
136 MEDMEM_PolyhedronArray.cxx \
137 MEDMEM_MedMedDriver22.cxx \
138 MEDMEM_MedMeshDriver22.cxx \
139 MEDMEM_TopLevel.cxx \
140 MEDMEM_MEDMEMgaussEcr.cxx \
141 MEDMEM_MEDMEMprofilEcr.cxx \
142 MEDMEM_MEDMEMchampLire.cxx
143
144
145 # Executables targets
146 BIN = med2_1_To_med2_2 med2vtk duplicateMED med_test duplicateMEDMESH 
147 BIN_SRC = 
148 BIN_SERVER_IDL = 
149 BIN_CLIENT_IDL = 
150
151 TEST_PROGS = test_MEDMEM_ModulusArray test_MEDMEM_Array test_MEDMEM_SkyLineArray \
152         test_MEDMEM_CellModel testUPointerOf testUCoordinate testUUnit \
153         testUGeoNameMeshEntities testUMedException testUModulusArray \
154         testUSkyLineArray testUArray testUCellModel readEntete readCoordinate \
155         test_copie_field_ test_copie_fieldT test_copie_coordinate \
156         test_copie_medarray test_copie_connectivity test_copie_support \
157         test_copie_family test_copie_group test_copie_mesh test_affect_medarray \
158         test_MEDMEM_Meshing test_MEDMEM_MeshingPoly test_operation_fielddouble \
159         test_operation_fieldint test_gibi_driver test_porflow_driver \
160         test_grid test_MEDMEM_PolyhedronArray test_MEDMEM_PolyConnectivity \
161         test_MEDMEM_PolyDriverMedMeshRead test_MEDMEM_PolyDriverMedMeshWrite \
162         test_MEDMEM_poly3D test_MEDMEM_nArray test_MEDMEM_Meshing_poly test_profil_MedFieldDriver \
163         test_profil_gauss_MedFieldDriver test_GaussLocalization testAnalFile test_MEDMEM_MeshingFlica
164
165 LDFLAGS+= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome 
166 LDFLAGSFORBIN+= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
167
168 CPPFLAGS+=$(MED2_INCLUDES) $(HDF5_INCLUDES)
169
170 CXXFLAGS+=@CXXTMPDPTHFLAGS@
171 #LDFLAGS+=$(MED2_LIBS) $(HDF5_LIBS)
172 # change motivated by the bug KERNEL4778.
173 LDFLAGS+=$(MED2_LIBS) $(HDF5_LIBS) -lmed_V2_1 $(STDLIB)
174
175 #LDFLAGSFORBIN+=$(MED2_LIBS) $(HDF5_LIBS)
176 # change motivated by the bug KERNEL4778.
177 LDFLAGSFORBIN+=-lm $(MED2_LIBS) $(HDF5_LIBS) -lmed_V2_1
178
179 ifeq ($(MED_WITH_KERNEL),yes)
180   CPPFLAGS+= ${KERNEL_CXXFLAGS}
181   CXXFLAGS+= ${KERNEL_CXXFLAGS}
182   LDFLAGS+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace 
183   LDFLAGSFORBIN+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace -lSALOMEBasics
184 endif
185
186 LIBSFORBIN=
187
188 LIBS=
189
190 # build create_mesh :
191 bin: create_mesh create_mesh_c2q4s2 create_mesh_c3h8q4 create_mesh_c3h8q4_wrong create_mesh_c2q4s2_wrong create_grid create_mesh_c2q4 create_mesh_c3h8 create_poly3D
192
193 create_mesh create_mesh_c2q4s2 create_mesh_c3h8q4 create_grid create_mesh_c2q4 create_mesh_c3h8 create_mesh_c3h8q4_wrong create_mesh_c2q4s2_wrong create_poly3D: %: %.c
194         $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(MED2_LIBS) $(HDF5_LIBS) $< 
195
196 @CONCLUDE@