~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/plugins/grid_maker/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
2
 
#  
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.
6
 
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.
10
 
#
11
 
# $Id: Makefile.am 6350 2006-12-30 02:15:25Z gsherman $
12
 
 
13
 
if !HAVE_QTMAC
14
 
PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\"
15
 
endif
16
 
 
17
 
plugindir = ${pkglibdir}
18
 
 
19
 
#for plugin so
20
 
plugin_LTLIBRARIES = gridmakerplugin.la
21
 
 
22
 
# For standalone executable
23
 
# don't build on mingw since we haven't figured out the makefile issues
24
 
if MINGW_FALSE
25
 
bin_PROGRAMS = gridmaker 
26
 
endif
27
 
 
28
 
%.moc.cpp: %.h
29
 
        $(MOC) -o $@ $<
30
 
 
31
 
ui_%.h: %.ui 
32
 
        $(UIC) -o $@ $<
33
 
 
34
 
%.qrc.cpp: %.qrc
35
 
        $(RCC) -o $@ $<
36
 
 
37
 
##
38
 
##  For plugin lib
39
 
##
40
 
 
41
 
gridmakerplugin_la_SOURCES = plugin.cpp \
42
 
        graticulecreator.cpp \
43
 
        graticulecreator.h \
44
 
        utils.c \
45
 
        shpopen.c \
46
 
        dbfopen.c \
47
 
        shapefile.h \
48
 
        plugingui.cpp \
49
 
        $(plugin_UI)\
50
 
        $(plugin_MOC)\
51
 
        $(plugin_QRC) \
52
 
        $(plugin_RES)
53
 
 
54
 
             
55
 
plugin_MOC = plugin.moc.cpp \
56
 
    plugingui.moc.cpp 
57
 
 
58
 
plugin_UI = ui_pluginguibase.h 
59
 
 
60
 
plugin_UIC = pluginguibase.ui
61
 
 
62
 
plugin_RES = gridmaker_plugin.qrc.cpp
63
 
 
64
 
#plugin_QRC = gridmaker_plugin.qrc
65
 
 
66
 
BUILT_SOURCES = $(plugin_MOC) $(plugin_UI) $(plugin_RES)
67
 
 
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
72
 
 
73
 
##
74
 
##  For standalone executable
75
 
##
76
 
 
77
 
gridmaker_SOURCES = main.cpp \
78
 
        graticulecreator.cpp \
79
 
        graticulecreator.h \
80
 
        utils.c \
81
 
        shpopen.c \
82
 
        dbfopen.c \
83
 
        shapefile.h \
84
 
        plugingui.cpp \
85
 
        $(standalone_MOC) 
86
 
 
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
90
 
 
91
 
standalone_MOC = plugingui.moc.cpp 
92
 
 
93
 
standalone_UI = ui_pluginguibase.h 
94
 
 
95
 
CLEANFILES = $(BUILT_SOURCES)
96
 
 
97
 
## 
98
 
## Anything that must go in the tarball gets added here
99
 
##
100
 
 
101
 
EXTRA_DIST = $(plugin_UIC) icon.xpm \
102
 
ui_pluginguibase.h \
103
 
plugingui.h \
104
 
plugin.h \
105
 
utils.h