# Copyright (C) 2003 Gary Sherman # and 2006 Tim Sutton # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # $Id$ #[pluginlcasename] below to be replaced with the name of the plugin ## ## Legacy support for pkgdatapath - you are encouraged to use ## Qt4.x resource files where possible rather! ## if !HAVE_QTMAC PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\" endif plugindir = ${pkglibdir} #for plugin so plugin_LTLIBRARIES = libqgis_plugin_[pluginlcasename].la ## For Qt4 intermerdiary meta object compiler files %.moc.cpp: %.h $(MOC) -o $@ $< ## For Qt4 User Interface Files ui_%.h: %.ui $(UIC) -o $@ $< ## For Qt4 Resource Files %.qrc.cpp: %.qrc $(RCC) -o $@ $< ## ## For plugin lib ## libqgis_plugin_[pluginlcasename]_la_SOURCES = [pluginlcasename].cpp \ [pluginlcasename]gui.cpp \ $(plugin_UI)\ $(plugin_MOC)\ $(plugin_QRC) \ $(plugin_RES) plugin_MOC = [pluginlcasename].moc.cpp \ [pluginlcasename]gui.moc.cpp plugin_UI = ui_[pluginlcasename]guibase.h plugin_UIC = [pluginlcasename]guibase.ui plugin_RES = [pluginlcasename].qrc.cpp plugin_QRC = [pluginlcasename].qrc BUILT_SOURCES = $(plugin_MOC) $(plugin_UI) $(plugin_RES) libqgis_plugin_[pluginlcasename]_la_LIBADD = $(QT_LDADD) \ $(GDAL_LDADD) \ ../../core/libqgis_core.la \ ../../gui/libqgis_gui.la libqgis_plugin_[pluginlcasename]_la_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG_QGIS) libqgis_plugin_[pluginlcasename]_la_CXXFLAGS = $(CXXFLAGS) \ $(EXTRA_CXXFLAGS) \ $(QT_CXXFLAGS) \ $(DEBUG_QGIS) \ $(GDAL_CFLAGS) \ $(GEOS_CFLAGS) \ -I../../core \ -I../../ui \ -I../../gui -I../../raster libqgis_plugin_[pluginlcasename]_la_LDFLAGS = -avoid-version -module