]> SALOME platform Git repositories - samples/light.git/blob - Makefile.in
Salome HOME
4e09f83a2f4d4522d4620ca3a333e1d87b44cd0d
[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
34
35
36 @COMMENCE@
37
38 SUBDIRS = src adm_local
39
40 RESOURCES_FILES =          \
41         LIGHT.png          \
42         line_icon.png      \
43         paragraph_icon.png \
44         queen.txt
45
46 BIN_SCRIPT= \
47         VERSION
48
49 LDFLAGS= -L$(top_builddir)/lib/salome 
50 LDFLAGSFORBIN= -L$(top_builddir)/lib/salome
51
52 # copy header files in common directory
53 ifeq ($(HAVE_SSTREAM),yes)
54   include_list=include/salome/SALOMEconfig.h
55 else
56   include_list=include/salome/SALOMEconfig.h include/salome/sstream
57 endif
58
59 inc: $(include_list)
60
61 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
62         -$(RM) $@
63         $(LN_S) ../../$< $@
64
65 # test if SALOMEconfig.h has changed (contents)
66 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
67         @if ! [ -a $@ ]; then \
68           cp -p -f $< $@;        \
69         fi;                   \
70         if ! cmp $< $@; then  \
71           cp -p -f $< $@;        \
72         fi;                   \
73
74 include/salome/sstream: salome_adm/unix/sstream
75         -$(RM) $@
76         $(LN_S) ../../$< $@
77
78 depend:
79
80 install-end:
81 # finish libtool install
82 #       @$(LT) --mode=finish $(libdir)
83
84 install-include: $(include_list)
85         $(INSTALL) -d  $(includedir)
86 #       @for f in X $(include_list); do                         \
87 #          if test $$f != X; then                               \
88 #            (cp -p $$f $(includedir) || exit 1);               \
89 #          fi;                                                  \
90         done
91
92 # install script in $(bindir) :
93 install-bin: $(BIN_SCRIPT)
94         $(INSTALL) -d  $(bindir)
95         for f in X $(BIN_SCRIPT); do                            \
96            if test $$f != X; then                               \
97              (cp -p -f ./bin/salome/$$f $(bindir) || exit 1);   \
98            fi;                                                  \
99         done
100
101 uninstall:
102
103 distclean: distclean-other
104
105 distclean-other:
106         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
107         -$(RM) salome_adm/unix/make_* 
108         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
109         -$(RM) config.cache config.log config.status 
110
111 @MODULE@
112
113 install: install-bin install-include install-end