]> SALOME platform Git repositories - modules/kernel.git/blob - Makefile.in
Salome HOME
PR: merge from tag mergeto_trunk_20Jan05
[modules/kernel.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:./bin/salome:@top_srcdir@/resources:./bin:@top_srcdir@/idl
13
14
15 @COMMENCE@
16
17 SUBDIRS = idl src examples doc salome_adm
18
19 RESOURCES_FILES = \
20 back.xpm \
21 cascade.png \
22 CatalogDataType.xml \
23 KERNELCatalog.xml \
24 CatalogResources.xml \
25 CatalogRessources.xml \
26 close.png \
27 config \
28 default.png \
29 dl_delete.png \
30 dl_insert.png \
31 dl_moveup.png \
32 dl_movedown.png \
33 forward.xpm \
34 help.png \
35 home.xpm \
36 new.png \
37 open.png \
38 print.png \
39 redo.png \
40 reset.png \
41 Application-Logo.png \
42 Application-Splash.png \
43 Application-About.png \
44 save.png \
45 select1.png \
46 tile.png \
47 Tools_en.xml \
48 undo.png \
49 view_back.png \
50 view_bottom.png \
51 view_camera_dump.png \
52 view_fitall.png \
53 view_fitarea.png \
54 view_front.png \
55 view_glpan.png \
56 view_left.png \
57 view_pan.png \
58 view_reset.png \
59 view_right.png \
60 view_rotate.png \
61 view_top.png \
62 view_triedre.png \
63 view_zoom.png \
64 copy.png \
65 paste.png \
66 plot2d_dump.png \
67 plot2d_fitall.png \
68 plot2d_fitarea.png \
69 plot2d_legend.png \
70 plot2d_linear.png \
71 plot2d_linear_y.png \
72 plot2d_lines.png \
73 plot2d_log.png \
74 plot2d_log_y.png \
75 plot2d_pan.png \
76 plot2d_points.png \
77 plot2d_settings.png \
78 plot2d_splines.png \
79 plot2d_zoom.png \
80 uc_add.png \
81 uc_current.png \
82 uc_del.png \
83 uc_new.png \
84 uc_clear.png \
85 channel.cfg \
86 Plugin \
87 SALOMEDS_Resources
88
89 BIN_SCRIPT= \
90 runIDLparser \
91 VERSION \
92 orbmodule.py \
93 runSalome.py \
94 killSalome.py \
95 killSalomeWithPort.py \
96 runSalome \
97 runSalome.csh \
98 runNS.sh \
99 launchConfigureParser.py \
100 salome.launch \
101 showNS.py
102
103 # copy header files in common directory
104 OWN_CONFIG_H=@OWN_CONFIG_H@
105
106 ifeq ($(OWN_CONFIG_H),yes)
107     ifeq ($(HAVE_SSTREAM),yes)
108         include_list=include/salome/SALOMEconfig.h include/salome/config.h
109     else
110         include_list=include/salome/SALOMEconfig.h include/salome/config.h include/salome/sstream
111     endif
112 else
113     ifeq ($(HAVE_SSTREAM),yes)
114         include_list=include/salome/SALOMEconfig.h
115     else
116         include_list=include/salome/SALOMEconfig.h include/salome/sstream
117     endif
118 endif
119
120 inc: idl $(include_list)
121
122 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
123         -$(RM) $@
124         $(LN_S) ../../$< $@
125
126 # test if SALOMEconfig.h has changed (contents)
127 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
128         @if ! [ -a $@ ]; then \
129           cp -p $< $@;        \
130         fi;                   \
131         if ! cmp $< $@; then  \
132           cp -p $< $@;        \
133         fi;                   \
134
135 include/salome/config.h: salome_adm/unix/config.h
136         -$(RM) $@
137         $(LN_S) ../../$< $@
138
139 include/salome/sstream: salome_adm/unix/sstream
140         -$(RM) $@
141         $(LN_S) ../../$< $@
142
143 depend: depend_idl
144
145 depend_idl:
146         (cd idl ; $(MAKE) $@) || exit 1
147
148 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
149 #doc:
150 #       (cd doc && $(MAKE) $@) || exit 1
151
152 # Install make_commence make_conclude ... for other modules
153 install-make:
154         ($(INSTALL) -d  $(incmakedir) || exit 1);
155         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_commence > $(incmakedir)/make_commence || exit 1);
156         (sed 's/^prefix=/#prefix=/' $(top_builddir)/salome_adm/unix/make_conclude > $(incmakedir)/make_conclude || exit 1);
157
158
159 install-end:
160 # finish libtool install
161 #       @$(LT) --mode=finish $(libdir)
162
163 install-include: $(include_list)
164         $(INSTALL) -d  $(includedir)
165         @for f in X $(include_list); do                         \
166            if test $$f != X; then                               \
167              (cp -p $$f $(includedir) || exit 1);               \
168            fi;                                                  \
169         done
170
171 # install script in $(bindir) :
172 install-bin: $(BIN_SCRIPT)
173         $(INSTALL) -d  $(bindir)
174         $(INSTALL_PROGRAM) $^ $(bindir)
175
176 uninstall: uninstall-idl
177
178 uninstall-idl:
179         $(RM) $(idldir)/*.idl
180
181 distclean: distclean-other
182
183 distclean-other:
184         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
185         -$(RM) salome_adm/unix/make_* 
186         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h salome_adm/unix/config.h 
187         -$(RM) config.cache config.log config.status 
188
189 @MODULE@
190
191 install: install-bin install-include install-make install-end
192