2004-02-21 22:28:45 +00:00
|
|
|
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
|
|
|
|
#
|
|
|
|
# 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}
|
|
|
|
#[pluginname] below to be replaced with the name of the plugin
|
2004-06-04 10:23:47 +00:00
|
|
|
plugin_LTLIBRARIES = [pluginname]plugin.la
|
2004-02-21 22:28:45 +00:00
|
|
|
|
|
|
|
%.moc.cpp: %.h
|
|
|
|
$(MOC) -o $@ $<
|
|
|
|
|
|
|
|
%.h: %.ui
|
|
|
|
$(UIC) -o $@ $<
|
|
|
|
|
|
|
|
%.cpp: %.ui
|
|
|
|
$(UIC) -o $@ -impl $*.h $<
|
|
|
|
|
2004-06-04 10:23:47 +00:00
|
|
|
[pluginname]plugin_la_SOURCES = plugin.cpp \
|
2004-02-21 22:28:45 +00:00
|
|
|
plugin.h \
|
|
|
|
plugingui.cpp \
|
|
|
|
plugingui.h \
|
|
|
|
$(plugin_UI)\
|
|
|
|
$(plugin_MOC)
|
|
|
|
|
|
|
|
plugin_MOC = plugin.moc.cpp \
|
|
|
|
plugingui.moc.cpp \
|
|
|
|
pluginguibase.moc.cpp
|
|
|
|
|
|
|
|
plugin_UI = pluginguibase.h \
|
|
|
|
pluginguibase.cpp
|
|
|
|
|
|
|
|
plugin_UIC = pluginguibase.ui
|
|
|
|
|
|
|
|
# UI dependencies
|
|
|
|
pluginguibase.cpp: pluginguibase.h pluginguibase.ui
|
|
|
|
|
|
|
|
BUILT_SOURCES = $(plugin_MOC) $(plugin_UI)
|
|
|
|
|
|
|
|
|
2004-06-04 10:23:47 +00:00
|
|
|
[pluginname]plugin_la_LIBADD = $(QT_LDADD) $(GDAL_LDADD) ../../src/libqgis.la
|
|
|
|
[pluginname]plugin_la_LDFLAGS = -avoid-version -module
|
|
|
|
[pluginname]plugin_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) -I../../src
|
2004-02-21 22:28:45 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = $(plugin_UIC) icon.xpm
|
|
|
|
|