Salome HOME
Change version name to 3.2.0a2
[modules/med.git] / Makefile.in
1 # -* Makefile *- 
2 #
3 # Author : Patrick GOLDBRONN (CEA)
4 # Date : 28/06/2001
5 # $Header$
6 #
7
8 # source path
9 top_srcdir=@top_srcdir@
10 top_builddir=.
11 srcdir=@srcdir@
12 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
13
14
15 @COMMENCE@
16
17 SUBDIRS = src
18
19 ifeq ($(MED_WITH_KERNEL),yes)
20       SUBDIRS+= idl
21 endif
22
23 ifeq (@WITHIHM@,yes)
24       SUBDIRS+= doc
25 endif
26
27 SUBDIRS+= adm_local
28
29 RESOURCES_FILES = \
30 MEDCatalog.xml \
31 MED_en.xml \
32 MED.config \
33 Data.png \
34 Infos.png \
35 Structure.png \
36 ModuleMed.png \
37 carre_en_quad4.med \
38 carre_en_quad4_seg2.med \
39 cube_hexa8.med \
40 cube_hexa8_quad4.med \
41 maill.0.med \
42 maillage_UniSegFam.med \
43 mesh.med \
44 pointe.med \
45 test19.med \
46 zzzz121b.med \
47 Mistrat.med \
48 TimeStamps.med \
49 cas_defaut_domaine_fluide.med \
50 polyedres.med \
51 polygones.med \
52 recoll_bord.med \
53 carre_en_quad4_import22.med \
54 carre_en_quad4_seg2_import22.med \
55 cube_hexa8_import22.med \
56 cube_hexa8_quad4_import22.med \
57 maillage_UniSegFam_import22.med \
58 mesh_import22.med \
59 Mistrat_import22.med \
60 pointe_import22.med \
61 TimeStamps_import22.med \
62 poly3D.med \
63 Darcy3_3D_H_10x10x10_2.med \
64 elle_3D_HPr_10x10x10_2.med \
65 elle_3D_HPr_2x2x2_2.med \
66 elle_3D_HPr_4x4x4_2.med \
67 test_2D.med \
68 Darcy3_3D_H_10x10x10.sauve \
69 dx200_dy1_avec_2couches.sauve \
70 elle_2D_QT_10x10.sauve \
71 elle_2D_QT_2x2.sauve \
72 elle_2D_QT_40x40.sauve \
73 elle_2D_QT_4x4.sauve \
74 elle_3D_HPr_10x10x10.sauve \
75 elle_3D_HPr_2x2x2.sauve \
76 elle_3D_HPr_4x4x4.sauve \
77 inclusion_2d_raf.sauve \
78 inclusion_2d.sauve \
79 mail_ktest1-3-hexa.sauve \
80 mail_ktest1-3-tetra.sauve \
81 mail_ktest3-1.sauve \
82 mail_ktest3-2.sauve \
83 maillage_andra2_100elts.sauve \
84 maillage_cas2_2d.sauve \
85 maillage_cas4_234elts.sauve \
86 maillage_CHEMVAL_100elts.sauve \
87 maillage_CHEMVAL_40elts.sauve \
88 maillage_chemvalIV_cas1_100elts.sauve \
89 maillage_chemvalIV_cas1_40elts.sauve \
90 mail_test1-1-qua.sauve \
91 mail_test1-1-tri.sauve \
92 mail_test1-2-qua.sauve \
93 mail_test1-2-tri.sauve \
94 mail-test1-4-1.sauve \
95 mail-test1-4-2.sauve \
96 boitenew.inp \
97 Case1.inp \
98 cube.inp \
99 test3.inp \
100 titi.inp \
101 boitenew.cnc \
102 Case1.cnc \
103 cube.cnc \
104 test3.cnc \
105 titi.cnc \
106 boitenew.xyz \
107 Case1.xyz \
108 cube.xyz \
109 test3.xyz \
110 titi.xyz
111
112 BIN_SCRIPT= \
113 VERSION
114
115 LDFLAGS= -L$(top_builddir)/lib/salome 
116 LDFLAGSFORBIN= -L$(top_builddir)/lib/salome
117
118 # copy header files in common directory
119 include_list=include/salome/SALOMEconfig.h
120
121 ifeq ($(HAVE_SSTREAM),no)
122   include_list+=include/salome/sstream
123 endif
124
125 inc: idl $(include_list)
126
127 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
128         -$(RM) $@
129         $(LN_S) ../../$< $@
130
131 # test if SALOMEconfig.h has changed (contents)
132 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
133         @if ! [ -a $@ ]; then \
134           cp -p -f $< $@;        \
135         fi;                   \
136         if ! cmp $< $@; then  \
137           cp -p -f $< $@;        \
138         fi;                   \
139
140 include/salome/sstream: salome_adm/unix/sstream
141         -$(RM) $@
142         $(LN_S) ../../$< $@
143
144 depend: depend_idl
145
146 depend_idl:
147         (cd idl ; $(MAKE) $@) || exit 1
148
149 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
150 #doc:
151 #       (cd doc && $(MAKE) $@) || exit 1
152
153 install-end:
154 # finish libtool install
155 #       @$(LT) --mode=finish $(libdir)
156
157 install-include: $(include_list)
158         $(INSTALL) -d  $(includedir)
159 #       @for f in X $(include_list); do                         \
160 #          if test $$f != X; then                               \
161 #            (cp -p $$f $(includedir) || exit 1);               \
162 #          fi;                                                  \
163         done
164
165 # install script in $(bindir) :
166 install-bin: $(BIN_SCRIPT)
167         $(INSTALL) -d  $(bindir)
168         for f in X $(BIN_SCRIPT); do                            \
169            if test $$f != X; then                               \
170              (cp -p -f ./bin/salome/$$f $(bindir) || exit 1);   \
171            fi;                                                  \
172         done
173
174 uninstall: uninstall-idl
175
176 uninstall-idl:
177         $(RM) $(idldir)/*.idl
178
179 distclean: distclean-other
180
181 distclean-other:
182         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
183         -$(RM) salome_adm/unix/make_* 
184         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
185         -$(RM) config.cache config.log config.status 
186
187 @MODULE@
188
189 install: install-bin install-include install-end
190