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 \
65 Darcy3_3D_H_10x10x10.sauve \
66 dx200_dy1_avec_2couches.sauve \
67 elle_2D_QT_10x10.sauve \
68 elle_2D_QT_2x2.sauve \
69 elle_2D_QT_40x40.sauve \
70 elle_2D_QT_4x4.sauve \
71 elle_3D_HPr_10x10x10.sauve \
72 elle_3D_HPr_2x2x2.sauve \
73 elle_3D_HPr_4x4x4.sauve \
74 inclusion_2d_raf.sauve \
76 mail_ktest1-3-hexa.sauve \
77 mail_ktest1-3-tetra.sauve \
80 maillage_andra2_100elts.sauve \
81 maillage_cas2_2d.sauve \
82 maillage_cas4_234elts.sauve \
83 maillage_CHEMVAL_100elts.sauve \
84 maillage_CHEMVAL_40elts.sauve \
85 maillage_chemvalIV_cas1_100elts.sauve \
86 maillage_chemvalIV_cas1_40elts.sauve \
87 mail_test1-1-qua.sauve \
88 mail_test1-1-tri.sauve \
89 mail_test1-2-qua.sauve \
90 mail_test1-2-tri.sauve \
91 mail-test1-4-1.sauve \
92 mail-test1-4-2.sauve \
112 LDFLAGS= -L$(top_builddir)/lib/salome
113 LDFLAGSFORBIN= -L$(top_builddir)/lib/salome
115 # copy header files in common directory
116 include_list=include/salome/SALOMEconfig.h
118 ifeq ($(HAVE_SSTREAM),no)
119 include_list+=include/salome/sstream
122 inc: idl $(include_list)
124 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
128 # test if SALOMEconfig.h has changed (contents)
129 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
130 @if ! [ -a $@ ]; then \
133 if ! cmp $< $@; then \
137 include/salome/sstream: salome_adm/unix/sstream
144 (cd idl ; $(MAKE) $@) || exit 1
146 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
148 # (cd doc && $(MAKE) $@) || exit 1
151 # finish libtool install
152 # @$(LT) --mode=finish $(libdir)
154 install-include: $(include_list)
155 $(INSTALL) -d $(includedir)
156 # @for f in X $(include_list); do \
157 # if test $$f != X; then \
158 # (cp -p $$f $(includedir) || exit 1); \
162 # install script in $(bindir) :
163 install-bin: $(BIN_SCRIPT)
164 $(INSTALL) -d $(bindir)
165 for f in X $(BIN_SCRIPT); do \
166 if test $$f != X; then \
167 (cp -p -f ./bin/salome/$$f $(bindir) || exit 1); \
171 uninstall: uninstall-idl
174 $(RM) $(idldir)/*.idl
176 distclean: distclean-other
179 -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
180 -$(RM) salome_adm/unix/make_*
181 -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h
182 -$(RM) config.cache config.log config.status
186 install: install-bin install-include install-end