2004-03-22 23:38:26 +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$
|
|
|
|
|
2004-06-08 13:28:35 +00:00
|
|
|
PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\"
|
|
|
|
|
2004-03-22 23:38:26 +00:00
|
|
|
plugindir = ${pkglibdir}
|
|
|
|
|
|
|
|
#for plugin so
|
2004-06-04 10:23:47 +00:00
|
|
|
plugin_LTLIBRARIES = gpsimporterplugin.la
|
2004-03-22 23:38:26 +00:00
|
|
|
|
|
|
|
#for standalon executable
|
2004-06-14 22:37:38 +00:00
|
|
|
#bin_PROGRAMS = gpsimporter
|
2004-03-22 23:38:26 +00:00
|
|
|
|
|
|
|
%.moc.cpp: %.h
|
|
|
|
$(MOC) -o $@ $<
|
|
|
|
|
|
|
|
%.h: %.ui
|
|
|
|
$(UIC) -o $@ $<
|
|
|
|
|
|
|
|
%.cpp: %.ui
|
|
|
|
$(UIC) -o $@ -impl $*.h $<
|
|
|
|
|
|
|
|
##
|
|
|
|
## For plugin lib
|
|
|
|
##
|
|
|
|
|
2004-06-04 10:23:47 +00:00
|
|
|
gpsimporterplugin_la_SOURCES = plugin.cpp \
|
2004-03-30 22:23:08 +00:00
|
|
|
waypointtoshape.cpp \
|
|
|
|
waypointtoshape.h \
|
|
|
|
utils.c \
|
|
|
|
shpopen.c \
|
|
|
|
dbfopen.c \
|
|
|
|
shapefile.h \
|
|
|
|
plugingui.cpp \
|
|
|
|
$(plugin_UI)\
|
|
|
|
$(plugin_MOC)
|
2004-03-22 23:38:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
plugin_MOC = plugin.moc.cpp \
|
2004-03-30 22:23:08 +00:00
|
|
|
plugingui.moc.cpp \
|
2004-04-13 20:30:31 +00:00
|
|
|
pluginguibase.moc.cpp
|
2004-03-22 23:38:26 +00:00
|
|
|
|
|
|
|
plugin_UI = pluginguibase.h \
|
|
|
|
pluginguibase.cpp
|
|
|
|
|
|
|
|
plugin_UIC = pluginguibase.ui
|
|
|
|
|
|
|
|
# UI dependencies
|
|
|
|
pluginguibase.cpp: pluginguibase.h pluginguibase.ui
|
|
|
|
|
|
|
|
BUILT_SOURCES = $(plugin_MOC) $(plugin_UI)
|
|
|
|
|
2004-06-04 10:23:47 +00:00
|
|
|
gpsimporterplugin_la_LIBADD = $(QT_LDADD) $(GDAL_LDADD) ../../src/libqgis.la
|
|
|
|
gpsimporterplugin_la_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG_QGIS)
|
|
|
|
gpsimporterplugin_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) -I../../src
|
2004-06-14 22:37:38 +00:00
|
|
|
gpsimporterplugin_la_LDFLAGS = -avoid-version -module
|
2004-03-22 23:38:26 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
## For standalone executable
|
|
|
|
##
|
|
|
|
|
2004-06-14 22:37:38 +00:00
|
|
|
#gpsimporter_SOURCES = main.cpp \
|
|
|
|
# waypointtoshape.cpp \
|
|
|
|
# waypointtoshape.h \
|
|
|
|
# utils.c \
|
|
|
|
# shpopen.c \
|
|
|
|
# dbfopen.c \
|
|
|
|
# shapefile.h \
|
|
|
|
# plugingui.cpp \
|
|
|
|
# pluginguibase.cpp \
|
|
|
|
# $(standalone_MOC)
|
|
|
|
|
|
|
|
#gpsimporter_LDADD = $(QT_LDADD) $(GDAL_LDADD)
|
|
|
|
#gpsimporter_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG_QGIS)
|
|
|
|
#gpsimporter_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(PKGDATAPATH) $(DEBUG_QGIS) -I../../src
|
2004-03-22 23:38:26 +00:00
|
|
|
|
|
|
|
standalone_MOC = plugingui.moc.cpp \
|
|
|
|
pluginguibase.moc.cpp
|
|
|
|
|
|
|
|
standalone_UI = pluginguibase.h \
|
|
|
|
pluginguibase.cpp
|
|
|
|
|
|
|
|
##
|
|
|
|
## Anything that must go in the tarball gets added here
|
|
|
|
##
|
|
|
|
|
|
|
|
EXTRA_DIST = $(plugin_UIC) icon.xpm \
|
2004-04-10 15:55:18 +00:00
|
|
|
pluginguibase.h \
|
|
|
|
pluginguibase.ui.h \
|
|
|
|
plugingui.h \
|
|
|
|
plugin.h \
|
|
|
|
utils.h
|