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)
36 carre_en_quad4_seg2.med \
38 cube_hexa8_quad4.med \
40 maillage_UniSegFam.med \
47 cas_defaut_domaine_fluide.med \
51 carre_en_quad4_import22.med \
52 carre_en_quad4_seg2_import22.med \
53 cube_hexa8_import22.med \
54 cube_hexa8_quad4_import22.med \
55 maillage_UniSegFam_import22.med \
57 Mistrat_import22.med \
59 TimeStamps_import22.med \
61 Darcy3_3D_H_10x10x10_2.med \
62 elle_3D_HPr_10x10x10_2.med \
63 elle_3D_HPr_2x2x2_2.med \
64 elle_3D_HPr_4x4x4_2.med \
66 Darcy3_3D_H_10x10x10.sauve \
67 dx200_dy1_avec_2couches.sauve \
68 elle_2D_QT_10x10.sauve \
69 elle_2D_QT_2x2.sauve \
70 elle_2D_QT_40x40.sauve \
71 elle_2D_QT_4x4.sauve \
72 elle_3D_HPr_10x10x10.sauve \
73 elle_3D_HPr_2x2x2.sauve \
74 elle_3D_HPr_4x4x4.sauve \
75 inclusion_2d_raf.sauve \
77 mail_ktest1-3-hexa.sauve \
78 mail_ktest1-3-tetra.sauve \
81 maillage_andra2_100elts.sauve \
82 maillage_cas2_2d.sauve \
83 maillage_cas4_234elts.sauve \
84 maillage_CHEMVAL_100elts.sauve \
85 maillage_CHEMVAL_40elts.sauve \
86 maillage_chemvalIV_cas1_100elts.sauve \
87 maillage_chemvalIV_cas1_40elts.sauve \
88 mail_test1-1-qua.sauve \
89 mail_test1-1-tri.sauve \
90 mail_test1-2-qua.sauve \
91 mail_test1-2-tri.sauve \
92 mail-test1-4-1.sauve \
93 mail-test1-4-2.sauve \
113 LDFLAGS= -L$(top_builddir)/lib/salome
114 LDFLAGSFORBIN= -L$(top_builddir)/lib/salome
116 # copy header files in common directory
117 include_list=include/salome/SALOMEconfig.h
119 ifeq ($(HAVE_SSTREAM),no)
120 include_list+=include/salome/sstream
123 inc: idl $(include_list)
125 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
129 # test if SALOMEconfig.h has changed (contents)
130 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
131 @if ! [ -a $@ ]; then \
134 if ! cmp $< $@; then \
138 include/salome/sstream: salome_adm/unix/sstream
145 (cd idl ; $(MAKE) $@) || exit 1
147 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
149 # (cd doc && $(MAKE) $@) || exit 1
152 # finish libtool install
153 # @$(LT) --mode=finish $(libdir)
155 install-include: $(include_list)
156 $(INSTALL) -d $(includedir)
157 # @for f in X $(include_list); do \
158 # if test $$f != X; then \
159 # (cp -p $$f $(includedir) || exit 1); \
163 # install script in $(bindir) :
164 install-bin: $(BIN_SCRIPT)
165 $(INSTALL) -d $(bindir)
166 for f in X $(BIN_SCRIPT); do \
167 if test $$f != X; then \
168 (cp -p -f ./bin/salome/$$f $(bindir) || exit 1); \
172 uninstall: uninstall-idl
175 $(RM) $(idldir)/*.idl
177 distclean: distclean-other
180 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
181 -$(RM) salome_adm/unix/make_*
182 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
183 -$(RM) config.cache config.log config.status
187 install: install-bin install-include install-end