3 # Author : Patrick GOLDBRONN (CEA)
9 top_srcdir=@top_srcdir@
12 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
19 ifeq ($(MED_WITH_KERNEL),yes)
38 carre_en_quad4_seg2.med \
40 cube_hexa8_quad4.med \
42 maillage_UniSegFam.med \
49 cas_defaut_domaine_fluide.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 \
59 Mistrat_import22.med \
61 TimeStamps_import22.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 \
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 \
79 mail_ktest1-3-hexa.sauve \
80 mail_ktest1-3-tetra.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 \
115 LDFLAGS= -L$(top_builddir)/lib/salome
116 LDFLAGSFORBIN= -L$(top_builddir)/lib/salome
118 # copy header files in common directory
119 include_list=include/salome/SALOMEconfig.h
121 ifeq ($(HAVE_SSTREAM),no)
122 include_list+=include/salome/sstream
125 inc: idl $(include_list)
127 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
131 # test if SALOMEconfig.h has changed (contents)
132 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
133 @if ! [ -a $@ ]; then \
136 if ! cmp $< $@; then \
140 include/salome/sstream: salome_adm/unix/sstream
147 (cd idl ; $(MAKE) $@) || exit 1
149 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
151 # (cd doc && $(MAKE) $@) || exit 1
154 # finish libtool install
155 # @$(LT) --mode=finish $(libdir)
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); \
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); \
174 uninstall: uninstall-idl
177 $(RM) $(idldir)/*.idl
179 distclean: 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
189 install: install-bin install-include install-end