# Copyright (C) 2003 Gary Sherman # # 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$ plugindir = ${pkglibdir} if !HAVE_QTMAC PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\" endif #NorthArrow below to be replaced with the name of the plugin plugin_LTLIBRARIES = northarrowplugin.la %.moc.cpp: %.h $(MOC) -o $@ $< ui_%.h: %.ui $(UIC) -o $@ $< %.qrc.cpp: %.qrc $(RCC) -o $@ $< northarrowplugin_la_SOURCES = plugin.cpp \ plugin.h \ plugingui.cpp \ plugingui.h \ $(plugin_UI)\ $(plugin_MOC) \ $(plugin_QRC) \ $(plugin_RES) plugin_MOC = plugin.moc.cpp \ plugingui.moc.cpp plugin_UI = ui_pluginguibase.h plugin_UIC = pluginguibase.ui plugin_RES = northarrow_plugin.qrc.cpp #plugin_QRC = northarrow_plugin.qrc BUILT_SOURCES = $(plugin_MOC) $(plugin_UI) $(plugin_RES) northarrowplugin_la_LIBADD = $(QT_LDADD) $(GDAL_LDADD) ../../core/libqgis_core.la northarrowplugin_la_LDFLAGS = -avoid-version -module northarrowplugin_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) $(GDAL_CFLAGS) $(GEOS_CFLAGS) $(PKGDATAPATH) -I../../gui -I../../ui -I../../core CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(plugin_UIC) icon.xpm \ ui_pluginguibase.h