Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[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
47 BIN_SCRIPT= \
48 VERSION
49
50 LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome 
51 LDFLAGSFORBIN= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
52
53 # copy header files in common directory
54 include_list = include/salome/SALOMEconfig.h \
55                include/salome/FILTER_version.h
56
57 ifeq ($(HAVE_SSTREAM),no)
58   include_list+=include/salome/sstream
59 endif
60
61 inc: idl $(include_list)
62
63 bin: bin/salome/VERSION
64
65 bin/salome/VERSION : bin/VERSION
66         -$(RM) $@
67         $(LN_S) ../../$< $@
68
69 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
70         -$(RM) $@
71         $(LN_S) ../../$< $@
72
73 # test if SALOMEconfig.h has changed (contents)
74 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
75         @if ! [ -a $@ ]; then \
76           cp -p -f $< $@;        \
77         fi;                   \
78         if ! cmp $< $@; then  \
79           cp -p -f $< $@;        \
80         fi;                   \
81
82 include/salome/sstream: salome_adm/unix/sstream
83         -$(RM) $@
84         $(LN_S) ../../$< $@
85
86 include/salome/FILTER_version.h: FILTER_version.h
87         -$(RM) $@
88         $(LN_S) ../../$< $@
89
90 depend: depend_idl
91
92 depend_idl:
93         (cd idl ; $(MAKE) $@) || exit 1
94
95 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
96 #doc:
97 #       (cd doc && $(MAKE) $@) || exit 1
98
99 install-end:
100 # finish libtool install
101 #       @$(LT) --mode=finish $(libdir)
102
103 install-include: $(include_list)
104         $(INSTALL) -d  $(includedir)
105         @for f in X $(include_list); do                         \
106            if test $$f != X; then                               \
107              (cp -p $$f $(includedir) || exit 1);               \
108            fi;                                                  \
109         done
110
111 # install script in $(bindir) :
112 install-bin: $(BIN_SCRIPT)
113         $(INSTALL) -d  $(bindir)
114         for f in X $(BIN_SCRIPT); do                            \
115            if test $$f != X; then                               \
116              (cp -p -f ./bin/salome/$$f $(bindir) || exit 1);   \
117            fi;                                                  \
118         done
119
120 uninstall: uninstall-idl
121
122 uninstall-idl:
123         $(RM) $(idldir)/*.idl
124
125 distclean: distclean-other
126
127 distclean-other:
128         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
129         -$(RM) salome_adm/unix/make_* 
130         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
131         -$(RM) config.cache config.log config.status 
132
133 @MODULE@
134
135 install: install-bin install-include install-end
136