2004-06-09 16:03:02 +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}
|
|
|
|
#ScaleBar below to be replaced with the name of the plugin
|
|
|
|
plugin_LTLIBRARIES = libScaleBarplugin.la
|
|
|
|
|
|
|
|
%.moc.cpp: %.h
|
|
|
|
$(MOC) -o $@ $<
|
|
|
|
|
2005-09-16 23:30:38 +00:00
|
|
|
if HAVE_QT3
|
|
|
|
%.uic.h: %.ui
|
2004-06-09 16:03:02 +00:00
|
|
|
$(UIC) -o $@ $<
|
2005-09-16 23:30:38 +00:00
|
|
|
endif
|
2004-06-09 16:03:02 +00:00
|
|
|
|
2005-09-16 23:30:38 +00:00
|
|
|
if HAVE_QT4
|
|
|
|
%.uic.h: %.ui
|
|
|
|
$(UIC) -o $@ $<
|
|
|
|
../../tools/qgis-qt3to4.pl -uic $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
if !NO_UIC_IMPLEMENTATIONS
|
|
|
|
%.uic.cpp: %.ui
|
|
|
|
$(UIC) -o $@ -impl $*.uic.h $<
|
|
|
|
endif
|
|
|
|
|
|
|
|
# %.h: %.ui
|
|
|
|
# $(UIC) -o $@ $<
|
|
|
|
#
|
|
|
|
# %.cpp: %.ui
|
|
|
|
# $(UIC) -o $@ -impl $*.h $<
|
2004-06-09 16:03:02 +00:00
|
|
|
|
|
|
|
libScaleBarplugin_la_SOURCES = plugin.cpp \
|
|
|
|
plugin.h \
|
|
|
|
plugingui.cpp \
|
|
|
|
plugingui.h \
|
|
|
|
$(plugin_UI)\
|
|
|
|
$(plugin_MOC)
|
|
|
|
|
|
|
|
plugin_MOC = plugin.moc.cpp \
|
|
|
|
plugingui.moc.cpp \
|
|
|
|
pluginguibase.moc.cpp
|
|
|
|
|
2005-09-16 23:30:38 +00:00
|
|
|
plugin_UI = pluginguibase.uic.h \
|
|
|
|
pluginguibase.uic.cpp
|
2004-06-09 16:03:02 +00:00
|
|
|
|
|
|
|
plugin_UIC = pluginguibase.ui
|
|
|
|
|
|
|
|
# UI dependencies
|
2005-09-16 23:30:38 +00:00
|
|
|
pluginguibase.uic.cpp: pluginguibase.uic.h pluginguibase.ui
|
2004-06-09 16:03:02 +00:00
|
|
|
|
|
|
|
BUILT_SOURCES = $(plugin_MOC) $(plugin_UI)
|
|
|
|
|
|
|
|
|
|
|
|
libScaleBarplugin_la_LIBADD = $(QT_LDADD) ../../src/libqgis.la
|
|
|
|
libScaleBarplugin_la_LDFLAGS = -avoid-version -module
|
2005-06-09 20:44:28 +00:00
|
|
|
libScaleBarplugin_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) $(GDAL_CFLAGS) $(GEOS_CFLAGS) -I../../src
|
2004-06-09 16:03:02 +00:00
|
|
|
|
2005-09-21 21:11:18 +00:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
2004-06-30 11:30:40 +00:00
|
|
|
EXTRA_DIST = $(plugin_UIC) \
|
|
|
|
icon.xpm \
|
|
|
|
pluginguibase.ui.h
|