1
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
3
# This file is free software; as a special exception the author gives
4
# unlimited permission to copy and/or distribute it, with or without
5
# modifications, as long as this notice is preserved.
7
# This program is distributed in the hope that it will be useful, but
8
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
# $Id: Makefile.am 6350 2006-12-30 02:15:25Z gsherman $
14
PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\"
17
plugindir = ${pkglibdir}
20
plugin_LTLIBRARIES = gridmakerplugin.la
22
# For standalone executable
23
# don't build on mingw since we haven't figured out the makefile issues
25
bin_PROGRAMS = gridmaker
41
gridmakerplugin_la_SOURCES = plugin.cpp \
42
graticulecreator.cpp \
55
plugin_MOC = plugin.moc.cpp \
58
plugin_UI = ui_pluginguibase.h
60
plugin_UIC = pluginguibase.ui
62
plugin_RES = gridmaker_plugin.qrc.cpp
64
#plugin_QRC = gridmaker_plugin.qrc
66
BUILT_SOURCES = $(plugin_MOC) $(plugin_UI) $(plugin_RES)
68
gridmakerplugin_la_LIBADD = $(QT_LDADD) $(GDAL_LDADD) ../../core/libqgis_core.la ../../gui/libqgis_gui.la
69
gridmakerplugin_la_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG_QGIS)
70
gridmakerplugin_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) $(GDAL_CFLAGS) $(GEOS_CFLAGS) -I../../core -I../../ui -I../../gui
71
gridmakerplugin_la_LDFLAGS = -avoid-version -module
74
## For standalone executable
77
gridmaker_SOURCES = main.cpp \
78
graticulecreator.cpp \
87
gridmaker_LDADD = $(QT_LDADD)
88
gridmaker_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG_QGIS)
89
gridmaker_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(PKGDATAPATH) $(DEBUG_QGIS) -I../../gui -I../../ui -I../../core
91
standalone_MOC = plugingui.moc.cpp
93
standalone_UI = ui_pluginguibase.h
95
CLEANFILES = $(BUILT_SOURCES)
98
## Anything that must go in the tarball gets added here
101
EXTRA_DIST = $(plugin_UIC) icon.xpm \