Salome HOME
Merge from V6_main 01/04/2013
[modules/yacs.git] / adm / unix / make_end.am
1 # Copyright (C) 2006-2013  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 SUFFIXES =
20
21 # --------------------------------------------
22 # *.i --> *wrap.cxx
23 # --------------------------------------------
24
25 SUFFIXES += .i WRAP.cxx .idl .hh SK.cc _idl.py
26
27 .iWRAP.cxx :
28         $(SWIG) $(SWIG_PYTHON_OPT) $(SWIG_PYTHON_INCLUDES) $(MYSWIG_FLAGS) -o $@ $<
29
30 %SK.cc %.hh:%.idl
31         $(OMNIORB_IDL) $(OMNIORB_IDLCXXFLAGS) $(IDLCXXFLAGS) -bcxx $<
32
33 .idl_idl.py:
34         $(OMNIORB_IDL) $(OMNIORB_IDLPYFLAGS) $(IDLPYFLAGS) $<
35
36 # --------------------------------------------
37 # *.h --> *_moc.cxx
38 # --------------------------------------------
39
40 SUFFIXES += .h _moc.cxx
41
42 .h_moc.cxx :
43         $(MOC) -p . -o $@ $<
44
45 clean-local-h2Moc :
46         rm -f *_moc.cxx
47
48 # --------------------------------------------
49 # *.ui --> *.h
50 # --------------------------------------------
51
52 SUFFIXES += .ui .h
53
54 .ui.h :
55         $(UIC) -o $@ $<
56
57 clean-local-ui2h :
58         for Header in $(patsubst %.ui,%.h,$(wildcard *.ui)) ; do \
59                 rm -f $$Header ; \
60         done ;
61
62 # --------------------------------------------
63 # *.ui --> *.cxx
64 # --------------------------------------------
65
66 SUFFIXES += .ui .cxx
67
68 .ui.cxx :
69         $(UIC) -o $@ -impl $(patsubst %.cxx,%.h,$@) $<
70
71 clean-local-ui2cxx :
72         for Impl in $(patsubst %.ui,%.cxx,$(wildcard *.ui)) ; do \
73                 rm -f $$Impl ; \
74         done ;
75
76 # --------------------------------------------
77 # *.po --> *.qm
78 # --------------------------------------------
79
80 SUFFIXES += .po .qm
81
82 .po.qm :
83         subdir=`dirname $@` ; \
84         if ! test -d $$subdir; then \
85                 mkdir -p $$subdir ; \
86         fi ; \
87         $(MSG2QM) $< $@
88
89 clean-local-po2qm :
90         rm -f *.qm
91
92 clean-local : clean-local-h2Moc clean-local-po2qm clean-local-ui2cxx clean-local-ui2h