QGIS/plugins/geoprocessing/Makefile.am
morb_au 7f5677d2aa More changes for Qt4 porting readiness.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3948 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-09-21 21:11:18 +00:00

77 lines
2.0 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}
%.moc.cpp: %.h
$(MOC) -o $@ $<
if HAVE_QT3
%.uic.h: %.ui
$(UIC) -o $@ $<
endif
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 $<
plugin_LTLIBRARIES = pggeoprocessingplugin.la
pggeoprocessing_MOC = qgspggeoprocessing.moc.cpp \
qgsdlgpgbufferbase.moc.cpp \
qgsdlgpgbuffer.moc.cpp
pggeoprocessing_UI = qgsdlgpgbufferbase.uic.h \
qgsdlgpgbufferbase.uic.cpp
pggeoprocessing_UIC = qgsdlgpgbufferbase.ui
pggeoprocessingplugin_la_SOURCES = qgspggeoprocessing.cpp \
qgspggeoprocessing.h \
qgsdlgpgbuffer.cpp \
qgsdlgpgbuffer.h \
$(pggeoprocessing_UI)
nodist_pggeoprocessingplugin_la_SOURCES = $(pggeoprocessing_MOC)
# UI dependencies
qgsdlgpgbufferbase.uic.cpp: qgsdlgpgbufferbase.uic.h qgsdlgpgbufferbase.ui
qgsdlgpgbufferbase.uic.h: qgsdlgpgbufferbase.ui
BUILT_SOURCES = $(pggeoprocessing_MOC) $(pggeoprocessing_UI)
pggeoprocessingplugin_la_LIBADD = $(QT_LDADD) $(GDAL_LDADD) $(PG_LIB) ../../src/libqgis.la
pggeoprocessingplugin_la_LDFLAGS = -avoid-version -module
pggeoprocessingplugin_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) -I$(PG_INC) $(DEBUG_QGIS) $(GDAL_CFLAGS) $(GEOS_CFLAGS) -I../../src
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = $(pggeoprocessing_UIC) icon_buffer.xpm