Salome HOME
Display text in SOCC Viewer
[samples/light.git] / Makefile.in
1 ########################################################################
2 #  LIGHT : sample (no-corba-engine) SALOME module
3 #
4 #  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 #
7 #  This library is free software; you can redistribute it and/or
8 #  modify it under the terms of the GNU Lesser General Public
9 #  License as published by the Free Software Foundation; either
10 #  version 2.1 of the License.
11 #
12 #  This library is distributed in the hope that it will be useful,
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 #  Lesser General Public License for more details.
16 #
17 #  You should have received a copy of the GNU Lesser General Public
18 #  License along with this library; if not, write to the Free Software
19 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
20 #
21 #  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
22 #
23 #  Author : Julia DOROVSKIKH
24 #  Date   : 01/06/2005
25 #  $Header$
26 #
27 ########################################################################
28
29 # source path
30 top_srcdir=@top_srcdir@
31 top_builddir=.
32 srcdir=@srcdir@
33 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
34
35
36 @COMMENCE@
37
38 ifeq (@WITHIHM@,no)
39       SUBDIRS = src
40 endif
41 ifeq (@WITHIHM@,yes)
42       SUBDIRS = src
43 endif
44
45 RESOURCES_FILES =          \
46         LIGHT.png          \
47         line_icon.png      \
48         paragraph_icon.png \
49         queen.txt
50
51 BIN_SCRIPT= \
52         VERSION
53
54 LDFLAGS= -L$(top_builddir)/lib/salome 
55 LDFLAGSFORBIN= -L$(top_builddir)/lib/salome
56
57 # copy header files in common directory
58 ifeq ($(HAVE_SSTREAM),yes)
59   include_list=include/salome/SALOMEconfig.h
60 else
61   include_list=include/salome/SALOMEconfig.h include/salome/sstream
62 endif
63
64 inc: $(include_list)
65
66 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
67         -$(RM) $@
68         $(LN_S) ../../$< $@
69
70 # test if SALOMEconfig.h has changed (contents)
71 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
72         @if ! [ -a $@ ]; then \
73           cp -p -f $< $@;        \
74         fi;                   \
75         if ! cmp $< $@; then  \
76           cp -p -f $< $@;        \
77         fi;                   \
78
79 include/salome/sstream: salome_adm/unix/sstream
80         -$(RM) $@
81         $(LN_S) ../../$< $@
82
83 depend:
84
85 install-end:
86 # finish libtool install
87 #       @$(LT) --mode=finish $(libdir)
88
89 install-include: $(include_list)
90         $(INSTALL) -d  $(includedir)
91 #       @for f in X $(include_list); do                         \
92 #          if test $$f != X; then                               \
93 #            (cp -p $$f $(includedir) || exit 1);               \
94 #          fi;                                                  \
95         done
96
97 # install script in $(bindir) :
98 install-bin: $(BIN_SCRIPT)
99         $(INSTALL) -d  $(bindir)
100         for f in X $(BIN_SCRIPT); do                            \
101            if test $$f != X; then                               \
102              (cp -p -f ./bin/salome/$$f $(bindir) || exit 1);   \
103            fi;                                                  \
104         done
105
106 uninstall:
107
108 distclean: distclean-other
109
110 distclean-other:
111         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
112         -$(RM) salome_adm/unix/make_* 
113         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
114         -$(RM) config.cache config.log config.status 
115
116 @MODULE@
117
118 install: install-bin install-include install-end