# 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$ if !HAVE_QTMAC PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\" endif plugindir = ${pkglibdir} #for plugin so plugin_LTLIBRARIES = gridmakerplugin.la # For standalone executable # don't build on mingw since we haven't figured out the makefile issues if MINGW_FALSE bin_PROGRAMS = gridmaker endif %.moc.cpp: %.h $(MOC) -o $@ $< ui_%.h: %.ui $(UIC) -o $@ $< %.qrc.cpp: %.qrc $(RCC) -o $@ $< ## ## For plugin lib ## gridmakerplugin_la_SOURCES = plugin.cpp \ graticulecreator.cpp \ graticulecreator.h \ utils.c \ shpopen.c \ dbfopen.c \ shapefile.h \ plugingui.cpp \ $(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 = gridmaker_plugin.qrc.cpp #plugin_QRC = gridmaker_plugin.qrc BUILT_SOURCES = $(plugin_MOC) $(plugin_UI) $(plugin_RES) gridmakerplugin_la_LIBADD = $(QT_LDADD) $(GDAL_LDADD) ../../core/libqgis_core.la ../../gui/libqgis_gui.la gridmakerplugin_la_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG_QGIS) gridmakerplugin_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) $(GDAL_CFLAGS) $(GEOS_CFLAGS) -I../../core -I../../ui -I../../gui gridmakerplugin_la_LDFLAGS = -avoid-version -module ## ## For standalone executable ## gridmaker_SOURCES = main.cpp \ graticulecreator.cpp \ graticulecreator.h \ utils.c \ shpopen.c \ dbfopen.c \ shapefile.h \ plugingui.cpp \ $(standalone_MOC) gridmaker_LDADD = $(QT_LDADD) gridmaker_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG_QGIS) gridmaker_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(PKGDATAPATH) $(DEBUG_QGIS) -I../../gui -I../../ui -I../../core standalone_MOC = plugingui.moc.cpp standalone_UI = ui_pluginguibase.h CLEANFILES = $(BUILT_SOURCES) ## ## Anything that must go in the tarball gets added here ## EXTRA_DIST = $(plugin_UIC) icon.xpm \ ui_pluginguibase.h \ plugingui.h \ plugin.h \ utils.h