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