Salome HOME
Changing version to 4.1.3
[modules/filter.git] / Makefile.in
1 # Copyright (C) 2005  OPEN CASCADE, CEA, EDF R&D, LEG
2 #           PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
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 #
21 # Author : Patrick GOLDBRONN (CEA)
22 # Date : 28/06/2001
23 # $Header$
24 #
25
26 # source path
27 top_srcdir=@top_srcdir@
28 top_builddir=.
29 srcdir=@srcdir@
30 VPATH=.:@srcdir@:@top_srcdir@/bin:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl:${KERNEL_ROOT_DIR}/idl/salome
31
32
33 @COMMENCE@
34
35 SUBDIRS = src idl adm_local
36
37 RESOURCES_FILES = \
38 FILTERCatalog.xml \
39 FILTER_en.xml \
40 FILTER.config \
41 SalomeApp.xml \
42 Data.png \
43 Infos.png \
44 Structure.png \
45 ModuleFilter.png \
46 xx.aa.med
47
48 BIN_SCRIPT= \
49 VERSION
50
51 LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome 
52 LDFLAGSFORBIN= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
53
54 # copy header files in common directory
55 include_list = include/salome/SALOMEconfig.h \
56                include/salome/FILTER_version.h
57
58 ifeq ($(HAVE_SSTREAM),no)
59   include_list+=include/salome/sstream
60 endif
61
62 inc: idl $(include_list)
63
64 bin: bin/salome/VERSION
65
66 bin/salome/VERSION : bin/VERSION
67         -$(RM) $@
68         $(LN_S) ../../$< $@
69
70 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
71         -$(RM) $@
72         $(LN_S) ../../$< $@
73
74 # test if SALOMEconfig.h has changed (contents)
75 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
76         @if ! [ -a $@ ]; then \
77           cp -p -f $< $@;        \
78         fi;                   \
79         if ! cmp $< $@; then  \
80           cp -p -f $< $@;        \
81         fi;                   \
82
83 include/salome/sstream: salome_adm/unix/sstream
84         -$(RM) $@
85         $(LN_S) ../../$< $@
86
87 include/salome/FILTER_version.h: FILTER_version.h
88         -$(RM) $@
89         $(LN_S) ../../$< $@
90
91 depend: depend_idl
92
93 depend_idl:
94         (cd idl ; $(MAKE) $@) || exit 1
95
96 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
97 #doc:
98 #       (cd doc && $(MAKE) $@) || exit 1
99
100 install-end:
101 # finish libtool install
102 #       @$(LT) --mode=finish $(libdir)
103
104 install-include: $(include_list)
105         $(INSTALL) -d  $(includedir)
106         @for f in X $(include_list); do                         \
107            if test $$f != X; then                               \
108              (cp -p $$f $(includedir) || exit 1);               \
109            fi;                                                  \
110         done
111
112 # install script in $(bindir) :
113 install-bin: $(BIN_SCRIPT)
114         $(INSTALL) -d  $(bindir)
115         for f in X $(BIN_SCRIPT); do                            \
116            if test $$f != X; then                               \
117              (cp -p -f ./bin/salome/$$f $(bindir) || exit 1);   \
118            fi;                                                  \
119         done
120
121 uninstall: uninstall-idl
122
123 uninstall-idl:
124         $(RM) $(idldir)/*.idl
125
126 distclean: distclean-other
127
128 distclean-other:
129         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
130         -$(RM) salome_adm/unix/make_* 
131         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
132         -$(RM) config.cache config.log config.status 
133
134 @MODULE@
135
136 install: install-bin install-include install-end
137