Add a macro to detect QScintilla2.
[autotroll.git] / build-aux / autotroll.mk
blob9e3ea2203f85211fb0c1706aac141b59554888d6
1 # Makerules.
2 # This file is part of AutoTroll.
3 # Copyright (C) 2006 Benoit Sigoure.
5 # AutoTroll is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18 # USA.
20 # ------------- #
21 # DOCUMENTATION #
22 # ------------- #
24 # See autotroll.m4 :)
27 SUFFIXES = .moc.cpp .moc.cc .moc.cxx .moc.C .h .hh \
28 .ui .ui.h .ui.hh \
29 .qrc .qrc.cpp .qrc.cc .qrc.cxx .qrc.C
31 # --- #
32 # MOC #
33 # --- #
35 .hh.moc.cpp:
36 $(MOC) $(QT_CPPFLAGS) $< -o $@
37 .h.moc.cpp:
38 $(MOC) $(QT_CPPFLAGS) $< -o $@
40 .hh.moc.cc:
41 $(MOC) $(QT_CPPFLAGS) $< -o $@
42 .h.moc.cc:
43 $(MOC) $(QT_CPPFLAGS) $< -o $@
45 .hh.moc.cxx:
46 $(MOC) $(QT_CPPFLAGS) $< -o $@
47 .h.moc.cxx:
48 $(MOC) $(QT_CPPFLAGS) $< -o $@
50 .hh.moc.C:
51 $(MOC) $(QT_CPPFLAGS) $< -o $@
52 .h.moc.C:
53 $(MOC) $(QT_CPPFLAGS) $< -o $@
55 # --- #
56 # UIC #
57 # --- #
59 .ui.ui.hh:
60 $(UIC) $< -o $@
62 .ui.ui.h:
63 $(UIC) $< -o $@
65 # --- #
66 # RCC #
67 # --- #
69 .qrc.qrc.cpp:
70 $(RCC) -name `echo "$<" | sed 's/\.qrc$$//'` $< -o $@
72 .qrc.qrc.cc:
73 $(RCC) -name `echo "$<" | sed 's/\.qrc$$//'` $< -o $@
75 .qrc.qrc.cxx:
76 $(RCC) -name `echo "$<" | sed 's/\.qrc$$//'` $< -o $@
78 .qrc.qrc.C:
79 $(RCC) -name `echo "$<" | sed 's/\.qrc$$//'` $< -o $@
81 DISTCLEANFILES = $(BUILT_SOURCES)