QGIS/plugins/spit/Makefile.am
jobi 4ec847d71c ** Changed to simple macros for detecting QT and GDAL
** Added code for detecting QGIS as m4 file to tools
** this will be installed together with QT and GDAL detection to
   $prefix/share/aclocal/qgis.m4
   so the plugins can just use those simple unique macros
** updated German translation
!! Developers have to link the installed qgis.m4 to /usr/share/aclocal/
!! or where ever aclocal keeps the m4 files
!! otherwise it's not detected by the plugins autogen.sh (more exactly
!! aclocal)
!! It can be cheated by adding -I path/to/qgis.m4 to the aclocal of
!! autogen.sh. But be carefull not to commit that to CVS


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1213 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-04-18 23:44:41 +00:00

79 lines
2.1 KiB
Makefile

# 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}
plugin_LTLIBRARIES = spitplugin.la
%.moc.cpp: %.h
$(MOC) -o $@ $<
%.h: %.ui
$(UIC) -o $@ $<
%.cpp: %.ui
$(UIC) -o $@ -impl $*.h $<
spit_MOC = qgsspit.moc.cpp \
qgsspitplugin.moc.cpp \
qgsconnectiondialog.moc.cpp \
qgsshapefile.moc.cpp \
qgsmessageviewer.moc.cpp \
qgsconnectiondialogbase.moc.cpp \
qgsspitbase.moc.cpp \
qgsmessageviewerbase.moc.cpp
spit_UI = qgsconnectiondialogbase.h \
qgsconnectiondialogbase.cpp \
qgsspitbase.h \
qgsspitbase.cpp \
qgsmessageviewerbase.h \
qgsmessageviewerbase.cpp
spit_UIC = qgsconnectiondialogbase.ui \
qgsmessageviewerbase.ui \
qgsspitbase.ui
spitplugin_la_SOURCES = qgsspit.cpp \
qgsspit.h \
qgsspitplugin.cpp \
qgsspitplugin.h \
qgsdbfbase.h \
qgsconnectiondialog.cpp \
qgsconnectiondialog.h \
qgsshapefile.cpp \
qgsshapefile.h \
qgsmessageviewer.cpp \
qgsmessageviewer.h \
$(spit_UI)
nodist_spitplugin_la_SOURCES = $(spit_MOC)
# UI dependencies
qgsconnectiondialogbase.cpp: qgsconnectiondialogbase.ui qgsconnectiondialogbase.h
qgsconnectiondialogbase.h: qgsconnectiondialogbase.ui
qgsspitbase.cpp: qgsspitbase.h qgsspitbase.ui
qgsspitbase.h: qgsspitbase.ui
qgsmessageviewerbase.cpp: qgsmessageviewerbase.h qgsmessageviewerbase.ui
qgsmessageviewerbase.h: qgsmessageviewerbase.ui
BUILT_SOURCES = $(spit_MOC) $(spit_UI)
spitplugin_la_LIBADD = $(QT_LDADD) $(PG_LIB) $(GDAL_LDADD) ../../src/libqgis.la
spitplugin_la_LDFLAGS = -avoid-version -module
spitplugin_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) -I$(PG_INC) -I../../src
EXTRA_DIST = $(spit_UIC) icon_spit.xpm spiticon.xpm