|
| 1 | +# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com> |
| 2 | +# and 2006 Tim Sutton <tim@linfiniti.com> |
| 3 | +# |
| 4 | +# This file is free software; as a special exception the author gives |
| 5 | +# unlimited permission to copy and/or distribute it, with or without |
| 6 | +# modifications, as long as this notice is preserved. |
| 7 | +# |
| 8 | +# This program is distributed in the hope that it will be useful, but |
| 9 | +# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the |
| 10 | +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 11 | +# |
| 12 | +# $Id: Makefile.am 5198 2006-04-06 14:35:09Z timlinux $ |
| 13 | + |
| 14 | +## |
| 15 | +## Legacy support for pkgdatapath - you are encouraged to use |
| 16 | +## Qt4.x resource files where possible rather! |
| 17 | +## |
| 18 | +if !HAVE_QTMAC |
| 19 | +PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\" |
| 20 | +endif |
| 21 | + |
| 22 | +plugindir = ${pkglibdir} |
| 23 | + |
| 24 | +#for plugin so |
| 25 | +plugin_LTLIBRARIES = launcherplugin.la |
| 26 | + |
| 27 | +## For Qt4 intermerdiary meta object compiler files |
| 28 | +%.moc.cpp: %.h |
| 29 | + $(MOC) -o $@ $< |
| 30 | + |
| 31 | +## For Qt4 User Interface Files |
| 32 | +ui_%.h: %.ui |
| 33 | + $(UIC) -o $@ $< |
| 34 | + |
| 35 | +## For Qt4 Resource Files |
| 36 | +%.qrc.cpp: %.qrc |
| 37 | + $(RCC) -o $@ $< |
| 38 | + |
| 39 | +## |
| 40 | +## For plugin lib |
| 41 | +## |
| 42 | + |
| 43 | +launcherplugin_la_SOURCES = qgslauncherplugin.cpp \ |
| 44 | + qgslauncherplugin.h \ |
| 45 | + qgslauncherplugingui.cpp \ |
| 46 | + qgslauncherplugingui.h \ |
| 47 | + $(plugin_UI)\ |
| 48 | + $(plugin_MOC)\ |
| 49 | + $(plugin_QRC) \ |
| 50 | + $(plugin_RES) |
| 51 | + |
| 52 | + |
| 53 | +plugin_MOC = qgslauncherplugin.moc.cpp \ |
| 54 | + qgslauncherplugingui.moc.cpp |
| 55 | + |
| 56 | +plugin_UI = ui_qgslauncherpluginguibase.h |
| 57 | + |
| 58 | +plugin_UIC = qgslauncherpluginguibase.ui |
| 59 | + |
| 60 | +#plugin_RES = launcher.qrc.cpp |
| 61 | + |
| 62 | +#plugin_QRC = launcher.qrc |
| 63 | + |
| 64 | +BUILT_SOURCES = $(plugin_MOC) $(plugin_UI) $(plugin_RES) |
| 65 | + |
| 66 | +launcherplugin_la_LIBADD = $(QT_LDADD) \ |
| 67 | + $(GDAL_LDADD) \ |
| 68 | + ../../core/libqgis_core.la \ |
| 69 | + ../../gui/libqgis_gui.la |
| 70 | + |
| 71 | +launcherplugin_la_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG_QGIS) |
| 72 | +launcherplugin_la_CXXFLAGS = $(CXXFLAGS) \ |
| 73 | + $(EXTRA_CXXFLAGS) \ |
| 74 | + $(QT_CXXFLAGS) \ |
| 75 | + $(DEBUG_QGIS) \ |
| 76 | + $(GDAL_CFLAGS) \ |
| 77 | + $(GEOS_CFLAGS) \ |
| 78 | + -I../../core \ |
| 79 | + -I../../ui \ |
| 80 | + -I../../gui -I../../raster \ |
| 81 | + -I.. |
| 82 | + |
| 83 | +launcherplugin_la_LDFLAGS = -avoid-version -module |
0 commit comments