Salome HOME
Update copyright information
[modules/filter.git] / Makefile.in
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
2 #
3 #  This library is free software; you can redistribute it and/or
4 #  modify it under the terms of the GNU Lesser General Public
5 #  License as published by the Free Software Foundation; either
6 #  version 2.1 of the License.
7 #
8 #  This library is distributed in the hope that it will be useful,
9 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 #  Lesser General Public License for more details.
12 #
13 #  You should have received a copy of the GNU Lesser General Public
14 #  License along with this library; if not, write to the Free Software
15 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 # -* Makefile *- 
20 # Author : Patrick GOLDBRONN (CEA)
21 # Date : 28/06/2001
22 # $Header$
23 # source path
24 #
25 top_srcdir=@top_srcdir@
26 top_builddir=.
27 srcdir=@srcdir@
28 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
29
30
31 @COMMENCE@
32
33 SUBDIRS = src idl adm_local
34
35 RESOURCES_FILES = \
36 FILTERCatalog.xml \
37 FILTER_en.xml \
38 FILTER.config \
39 SalomeApp.xml \
40 Data.png \
41 Infos.png \
42 Structure.png \
43 ModuleFilter.png \
44 xx.aa.med
45
46 BIN_SCRIPT= \
47 VERSION
48
49 LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome 
50 LDFLAGSFORBIN= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
51
52 # copy header files in common directory
53 include_list = include/salome/SALOMEconfig.h \
54                include/salome/FILTER_version.h
55
56 ifeq ($(HAVE_SSTREAM),no)
57   include_list+=include/salome/sstream
58 endif
59
60 inc: idl $(include_list)
61
62 bin: bin/salome/VERSION
63
64 bin/salome/VERSION : bin/VERSION
65         -$(RM) $@
66         $(LN_S) ../../$< $@
67
68 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
69         -$(RM) $@
70         $(LN_S) ../../$< $@
71
72 # test if SALOMEconfig.h has changed (contents)
73 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
74         @if ! [ -a $@ ]; then \
75           cp -p -f $< $@;        \
76         fi;                   \
77         if ! cmp $< $@; then  \
78           cp -p -f $< $@;        \
79         fi;                   \
80
81 include/salome/sstream: salome_adm/unix/sstream
82         -$(RM) $@
83         $(LN_S) ../../$< $@
84
85 include/salome/FILTER_version.h: FILTER_version.h
86         -$(RM) $@
87         $(LN_S) ../../$< $@
88
89 depend: depend_idl
90
91 depend_idl:
92         (cd idl ; $(MAKE) $@) || exit 1
93
94 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
95 #doc:
96 #       (cd doc && $(MAKE) $@) || exit 1
97
98 install-end:
99 # finish libtool install
100 #       @$(LT) --mode=finish $(libdir)
101
102 install-include: $(include_list)
103         $(INSTALL) -d  $(includedir)
104         @for f in X $(include_list); do                         \
105            if test $$f != X; then                               \
106              (cp -p $$f $(includedir) || exit 1);               \
107            fi;                                                  \
108         done
109
110 # install script in $(bindir) :
111 install-bin: $(BIN_SCRIPT)
112         $(INSTALL) -d  $(bindir)
113         for f in X $(BIN_SCRIPT); do                            \
114            if test $$f != X; then                               \
115              (cp -p -f ./bin/salome/$$f $(bindir) || exit 1);   \
116            fi;                                                  \
117         done
118
119 uninstall: uninstall-idl
120
121 uninstall-idl:
122         $(RM) $(idldir)/*.idl
123
124 distclean: distclean-other
125
126 distclean-other:
127         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
128         -$(RM) salome_adm/unix/make_* 
129         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
130         -$(RM) config.cache config.log config.status 
131
132 @MODULE@
133
134 install: install-bin install-include install-end
135