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