Salome HOME
905d7eafce2fee45cf1e20d04b1ee30adb69bd2e
[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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
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_Med.hxx \
57 MEDMEM_MedMedDriver.hxx \
58 MEDMEM_MedMeshDriver.hxx \
59 MEDMEM_GibiMeshDriver.hxx \
60 MEDMEM_PorflowMeshDriver.hxx \
61 MEDMEM_DriverTools.hxx \
62 MEDMEM_ModulusArray.hxx \
63 MEDMEM_SkyLineArray.hxx \
64 MEDMEM_VtkMedDriver.hxx \
65 MEDMEM_VtkMeshDriver.hxx \
66 MEDMEM_VtkFieldDriver.hxx \
67 MEDMEM_Mesh.hxx \
68 MEDMEM_Meshing.hxx \
69 MEDMEM_STRING.hxx \
70 MEDMEM_Support.hxx \
71 MEDMEM_Unit.hxx \
72 MEDMEM_Grid.hxx
73
74 # Libraries targets
75
76 LIB=libmedmem.la
77
78 LIB_SRC = \
79 MEDMEM_CellModel.cxx \
80 MEDMEM_Connectivity.cxx \
81 MEDMEM_Coordinate.cxx \
82 MEDMEM_DriversDef.cxx \
83 MEDMEM_DriverFactory.cxx \
84 MEDMEM_Family.cxx \
85 MEDMEM_Field.cxx \
86 MEDMEM_GenDriver.cxx \
87 MEDMEM_Group.cxx \
88 MEDMEM_Med.cxx \
89 MEDMEM_Exception.cxx \
90 MEDMEM_MedMedDriver.cxx \
91 MEDMEM_MedMeshDriver.cxx \
92 MEDMEM_GibiMeshDriver.cxx \
93 MEDMEM_PorflowMeshDriver.cxx \
94 MEDMEM_DriverTools.cxx \
95 MEDMEM_SkyLineArray.cxx \
96 MEDMEM_Mesh.cxx \
97 MEDMEM_Meshing.cxx \
98 MEDMEM_Support.cxx \
99 MEDMEM_Unit.cxx \
100 MEDMEM_VtkMedDriver.cxx \
101 MEDMEM_VtkMeshDriver.cxx \
102 MEDMEM_Grid.cxx
103
104
105 # Executables targets
106 BIN = med2vtk duplicateMED med_test duplicateMEDMESH 
107 BIN_SRC = 
108 BIN_SERVER_IDL = 
109 BIN_CLIENT_IDL = 
110
111 TEST_PROGS = test_MEDMEM_ModulusArray test_MEDMEM_Array test_MEDMEM_SkyLineArray test_MEDMEM_CellModel testUPointerOf testUCoordinate testUUnit testUGeoNameMeshEntities testUMedException testUModulusArray testUSkyLineArray testUArray testUCellModel readEntete readCoordinate test_copie_field_ test_copie_fieldT test_copie_coordinate test_copie_medarray test_copie_connectivity test_copie_support test_copie_family test_copie_group test_copie_mesh test_affect_medarray test_MEDMEM_Meshing test_operation_fielddouble test_operation_fieldint test_gibi_driver test_porflow_driver test_grid
112
113 # testUCellModel -> a revoir car l'API a changee (plus de vector)
114
115 LDFLAGS+= -L$(top_builddir)/lib/salome 
116 LDFLAGSFORBIN+= -L$(top_builddir)/lib/salome
117
118 CPPFLAGS+=$(MED2_INCLUDES) $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
119
120 CXXFLAGS+=@CXXTMPDPTHFLAGS@ -I${KERNEL_ROOT_DIR}/include/salome
121 #LDFLAGS+=$(MED2_LIBS) $(HDF5_LIBS) -lSalomeLoggerServer -L${KERNEL_ROOT_DIR}/lib/salome
122 # change motivated by the bug KERNEL4778.
123 LDFLAGS+=$(MED2_LIBS) $(HDF5_LIBS) -L${KERNEL_ROOT_DIR}/lib/salome -lSALOMELocalTrace -lMEDWrapper_V2_1 $(STDLIB)
124
125 #LDFLAGSFORBIN+=$(MED2_LIBS) $(HDF5_LIBS) -lSalomeLoggerServer -L${KERNEL_ROOT_DIR}/lib/salome
126 # change motivated by the bug KERNEL4778.
127 LDFLAGSFORBIN+=-lm $(MED2_LIBS) $(HDF5_LIBS) -L${KERNEL_ROOT_DIR}/lib/salome -lSALOMELocalTrace -lMEDWrapper_V2_1 -lMEDWrapperBase
128
129 LIBSFORBIN=
130
131 LIBS=
132
133 # build create_mesh :
134 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
135
136 create_mesh create_mesh_c2q4s2 create_mesh_c3h8q4 create_grid create_mesh_c2q4 create_mesh_c3h8 create_mesh_c3h8q4_wrong create_mesh_c2q4s2_wrong: %: %.c
137         $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(MED2_LIBS) $(HDF5_LIBS) $< 
138
139 @CONCLUDE@