Salome HOME
Final version of the V2_2_0 in the main trunk of the CVS tree.
[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 ifeq (@WITHIHM@,no)
18       SUBDIRS = idl src
19 endif
20 ifeq (@WITHIHM@,yes)
21       SUBDIRS = idl src doc
22 endif
23
24 RESOURCES_FILES = \
25 MEDCatalog.xml \
26 MED_en.xml \
27 MED.config \
28 Data.png \
29 Infos.png \
30 Structure.png \
31 ModuleMed.png \
32 carre_en_quad4.med \
33 carre_en_quad4_seg2.med \
34 cube_hexa8.med \
35 cube_hexa8_quad4.med \
36 maill.0.med \
37 maillage_UniSegFam.med \
38 mesh.med \
39 pointe.med \
40 test19.med \
41 zzzz121b.med \
42 Mistrat.med \
43 TimeStamps.med \
44 Darcy3_3D_H_10x10x10.sauve \
45 dx200_dy1_avec_2couches.sauve \
46 elle_2D_QT_10x10.sauve \
47 elle_2D_QT_2x2.sauve \
48 elle_2D_QT_40x40.sauve \
49 elle_2D_QT_4x4.sauve \
50 elle_3D_HPr_10x10x10.sauve \
51 elle_3D_HPr_2x2x2.sauve \
52 elle_3D_HPr_4x4x4.sauve \
53 inclusion_2d_raf.sauve \
54 inclusion_2d.sauve \
55 mail_ktest1-3-hexa.sauve \
56 mail_ktest1-3-tetra.sauve \
57 mail_ktest3-1.sauve \
58 mail_ktest3-2.sauve \
59 maillage_andra2_100elts.sauve \
60 maillage_cas2_2d.sauve \
61 maillage_cas4_234elts.sauve \
62 maillage_CHEMVAL_100elts.sauve \
63 maillage_CHEMVAL_40elts.sauve \
64 maillage_chemvalIV_cas1_100elts.sauve \
65 maillage_chemvalIV_cas1_40elts.sauve \
66 mail_test1-1-qua.sauve \
67 mail_test1-1-tri.sauve \
68 mail_test1-2-qua.sauve \
69 mail_test1-2-tri.sauve \
70 mail-test1-4-1.sauve \
71 mail-test1-4-2.sauve \
72 boitenew.inp \
73 Case1.inp \
74 cube.inp \
75 test3.inp \
76 titi.inp \
77 boitenew.cnc \
78 Case1.cnc \
79 cube.cnc \
80 test3.cnc \
81 titi.cnc \
82 boitenew.xyz \
83 Case1.xyz \
84 cube.xyz \
85 test3.xyz \
86 titi.xyz
87
88 BIN_SCRIPT= \
89 VERSION
90
91 LDFLAGS= -L$(top_builddir)/lib/salome 
92 LDFLAGSFORBIN= -L$(top_builddir)/lib/salome
93
94 # copy header files in common directory
95 ifeq ($(HAVE_SSTREAM),yes)
96   include_list=include/salome/SALOMEconfig.h
97 else
98   include_list=include/salome/SALOMEconfig.h include/salome/sstream
99 endif
100
101 inc: idl $(include_list)
102
103 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
104         -$(RM) $@
105         $(LN_S) ../../$< $@
106
107 # test if SALOMEconfig.h has changed (contents)
108 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
109         @if ! [ -a $@ ]; then \
110           cp -p -f $< $@;        \
111         fi;                   \
112         if ! cmp $< $@; then  \
113           cp -p -f $< $@;        \
114         fi;                   \
115
116 include/salome/sstream: salome_adm/unix/sstream
117         -$(RM) $@
118         $(LN_S) ../../$< $@
119
120 depend: depend_idl
121
122 depend_idl:
123         (cd idl ; $(MAKE) $@) || exit 1
124
125 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
126 #doc:
127 #       (cd doc && $(MAKE) $@) || exit 1
128
129 install-end:
130 # finish libtool install
131 #       @$(LT) --mode=finish $(libdir)
132
133 install-include: $(include_list)
134         $(INSTALL) -d  $(includedir)
135 #       @for f in X $(include_list); do                         \
136 #          if test $$f != X; then                               \
137 #            (cp -p $$f $(includedir) || exit 1);               \
138 #          fi;                                                  \
139         done
140
141 # install script in $(bindir) :
142 install-bin: $(BIN_SCRIPT)
143         $(INSTALL) -d  $(bindir)
144         for f in X $(BIN_SCRIPT); do                            \
145            if test $$f != X; then                               \
146              (cp -p ./bin/salome/$$f $(bindir) || exit 1);      \
147            fi;                                                  \
148         done
149
150 uninstall: uninstall-idl
151
152 uninstall-idl:
153         $(RM) $(idldir)/*.idl
154
155 distclean: distclean-other
156
157 distclean-other:
158         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
159         -$(RM) salome_adm/unix/make_* 
160         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
161         -$(RM) config.cache config.log config.status 
162
163 @MODULE@
164
165 install: install-bin install-include install-end
166