# 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. SUBDIRS = svg images themes PREFIX=-DPREFIX=\"$(prefix)\" PLUGINPATH=-DPLUGINPATH=\"$(pkglibdir)\" PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\" %.moc.cpp: %.h $(MOC) -o $@ $< %.moc.uic.cpp: %.uic.h $(MOC) -o $@ $< %.uic.h: %.ui $(UIC) -o $@ $< %.uic.cpp: %.ui $(UIC) -o $@ -impl $*.uic.h $< ## main app bin_PROGRAMS = qgis ## ancillary library for plug-ins lib_LTLIBRARIES = libqgis.la headers = \ qgisapp.h \ qgis.h \ qgisiface.h \ qgisinterface.h \ qgsacetatelines.h \ qgsacetateobject.h \ qgsacetaterectangle.h \ qgsattributeaction.h \ qgsattributeactiondialog.h \ qgsattributedialog.h \ qgsattributetabledisplay.h \ qgsattributetable.h \ qgscolortable.h \ qgscontcoldialog.h \ qgscontinuouscolrenderer.h \ qgscoordinatetransform.h \ qgscustomsymbol.h \ qgsdataprovider.h \ qgsdatasource.h \ qgsdatasourceuri.h \ qgsdlgvectorlayerproperties.h \ qgsexception.h \ qgsfeatureattribute.h \ qgsfeature.h \ qgsfield.h \ qgsgeomtypedialog.h \ qgsgraduatedmarenderer.h \ qgsgraduatedsymrenderer.h \ qgsgramadialog.h \ qgsgramaextensionwidget.h \ qgsgrasydialog.h \ qgshelpviewer.h \ qgsidentifyresults.h \ qgslabelattributes.h \ qgslabeldialog.h \ qgslabel.h \ qgslegend.h \ qgslegenditem.h \ qgsline.h \ qgslinestyledialog.h \ qgslinesymbol.h \ qgsludialog.h \ qgsmapcanvas.h \ qgsmaplayer.h \ qgsmaplayerinterface.h \ qgsmaplayerregistry.h \ qgsmapserverexport.h \ qgsmarkerdialog.h \ qgsmarkersymbol.h \ qgsoptions.h \ qgspatterndialog.h \ qgspluginitem.h \ qgspluginmanager.h \ qgspluginmetadata.h \ qgspluginregistry.h \ qgspoint.h \ qgspolygonsymbol.h \ qgsproject.h \ qgsprojectproperties.h \ qgsprovidermetadata.h \ qgsproviderregistry.h \ qgsrangerenderitem.h \ qgsrasterlayer.h \ qgsrasterlayerproperties.h \ qgsrect.h \ qgsrenderer.h \ qgsrenderitem.h \ qgsscalecalculator.h \ qgssimadialog.h \ qgssimarenderer.h \ qgssinglesymrenderer.h \ qgssisydialog.h \ qgssvgcache.h \ qgssymbol.h \ qgssymbologyutils.h \ qgsuniquevalrenderer.h \ qgsuvaldialog.h \ qgsuvalmadialog.h \ qgsuvalmarenderer.h \ qgsvectordataprovider.h \ qgsvectorfilewriter.h \ qgsvectorlayer.h \ splashscreen.h ## qt designer files for all the GUI stuff qgis_UIC = \ qgisappbase.ui \ qgsabout.ui \ qgsattributedialogbase.ui \ qgsattributeactiondialogbase.ui \ qgsattributetablebase.ui \ qgscontcoldialogbase.ui \ qgsdlgvectorlayerpropertiesbase.ui \ qgsgeomtypedialogbase.ui \ qgsgramadialogbase.ui \ qgsgrasydialogbase.ui \ qgshelpviewerbase.ui \ qgsidentifyresultsbase.ui \ qgslabeldialogbase.ui \ qgslegenditembase.ui \ qgslinestyledialogbase.ui \ qgsludialogbase.ui \ qgsmapserverexportbase.ui \ qgsmarkerdialogbase.ui \ qgsmessageviewer.ui \ qgsoptionsbase.ui \ qgspatterndialogbase.ui \ qgspluginmanagerbase.ui \ qgsprojectpropertiesbase.ui \ qgsrasterlayerpropertiesbase.ui \ qgssimadialogbase.ui \ qgssisydialogbase.ui \ qgsuvaldialogbase.ui \ qgsuvalmadialogbase.ui ## all the ui files generate a corresponding header file qgis_UIHEADERS = $(qgis_UIC:.ui=.uic.h) ## similarly all the ui files generate a corresponding implementation file qgis_UISOURCES = $(qgis_UIC:.ui=.uic.cpp) ## these are optional ancillary user-defined qtdesigner-based headers qgis_UIH = \ qgisappbase.ui.h \ qgsabout.ui.h \ qgsattributetablebase.ui.h \ qgshelpviewerbase.ui.h \ qgsmapserverexportbase.ui.h \ qgsmessageviewer.ui.h \ qgsoptionsbase.ui.h \ qgsrasterlayerpropertiesbase.ui.h \ qgslabeldialogbase.ui.h \ qgsprojectpropertiesbase.ui.h ## these generated files need MOC files, too qgis_UIMOC = $(qgis_UIC:.ui=.moc.uic.cpp) ## non-uic files generated from MOC qgis_MOC = \ qgisapp.moc.cpp \ qgisinterface.moc.cpp \ qgsattributeaction.moc.cpp \ qgsattributeactiondialog.moc.cpp \ qgsattributedialog.moc.cpp \ qgsattributetable.moc.cpp \ qgscontcoldialog.moc.cpp \ qgsdlgvectorlayerproperties.moc.cpp \ qgsgeomtypedialog.moc.cpp \ qgsgramadialog.moc.cpp \ qgsgramaextensionwidget.moc.cpp \ qgsgrasydialog.moc.cpp \ qgshelpviewer.moc.cpp \ qgsidentifyresults.moc.cpp \ qgslabeldialog.moc.cpp \ qgslegenditem.moc.cpp \ qgslegend.moc.cpp \ qgslinestyledialog.moc.cpp \ qgsludialog.moc.cpp \ qgsmapcanvas.moc.cpp \ qgsmaplayerinterface.moc.cpp \ qgsmaplayer.moc.cpp \ qgsmaplayerregistry.moc.cpp \ qgsmapserverexport.moc.cpp \ qgsmarkerdialog.moc.cpp \ qgsoptions.moc.cpp \ qgspatterndialog.moc.cpp \ qgspluginmanager.moc.cpp \ qgsprojectproperties.moc.cpp \ qgsrasterlayer.moc.cpp \ qgsrasterlayerproperties.moc.cpp \ qgssimadialog.moc.cpp \ qgssisydialog.moc.cpp \ qgsuvaldialog.moc.cpp \ qgsuvalmadialog.moc.cpp \ qgsvectorlayer.moc.cpp \ splashscreen.moc.cpp qgis_SOURCES = \ main.cpp \ qgisapp.cpp \ qgisiface.cpp \ qgisinterface.cpp \ qgsacetatelines.cpp \ qgsacetateobject.cpp \ qgsacetaterectangle.cpp \ qgsattributeaction.cpp \ qgsattributeactiondialog.cpp \ qgsattributedialog.cpp \ qgsattributetable.cpp \ qgsattributetabledisplay.cpp \ qgscolortable.cpp \ qgscontcoldialog.cpp \ qgscontinuouscolrenderer.cpp \ qgscoordinatetransform.cpp \ qgscustomsymbol.cpp \ qgsdatasource.cpp \ qgsdlgvectorlayerproperties.cpp \ qgsfeatureattribute.cpp \ qgsfeature.cpp \ qgsfield.cpp \ qgsgeomtypedialog.cpp \ qgsgraduatedmarenderer.cpp \ qgsgraduatedsymrenderer.cpp \ qgsgramadialog.cpp \ qgsgramaextensionwidget.cpp \ qgsgrasydialog.cpp \ qgshelpviewer.cpp \ qgsidentifyresults.cpp \ qgslabelattributes.cpp \ qgslabel.cpp \ qgslabeldialog.cpp \ qgslegend.cpp \ qgslegenditem.cpp \ qgsline.cpp \ qgslinestyledialog.cpp \ qgslinesymbol.cpp \ qgsludialog.cpp \ qgsmapcanvas.cpp \ qgsmaplayer.cpp \ qgsmaplayerregistry.cpp \ qgsmapserverexport.cpp \ qgsmarkerdialog.cpp \ qgsmarkersymbol.cpp \ qgsoptions.cpp \ qgspatterndialog.cpp \ qgspluginitem.cpp \ qgspluginmanager.cpp \ qgspluginmetadata.cpp \ qgspluginregistry.cpp \ qgspoint.cpp \ qgspolygonsymbol.cpp \ qgsproject.cpp \ qgsprojectproperties.cpp \ qgsprovidermetadata.cpp \ qgsproviderregistry.cpp \ qgsrangerenderitem.cpp \ qgsrasterlayer.cpp \ qgsrasterlayerproperties.cpp \ qgsrect.cpp \ qgsrenderitem.cpp \ qgsscalecalculator.cpp \ qgssimadialog.cpp \ qgssimarenderer.cpp \ qgssinglesymrenderer.cpp \ qgssisydialog.cpp \ qgssvgcache.cpp \ qgssymbol.cpp \ qgssymbologyutils.cpp \ qgsuniquevalrenderer.cpp \ qgsuvaldialog.cpp \ qgsuvalmadialog.cpp \ qgsuvalmarenderer.cpp \ qgsvectordataprovider.cpp \ qgsvectorfilewriter.cpp \ qgsvectorlayer.cpp \ splashscreen.cpp postgresHEADERS = qgsdbsourceselect.h \ qgsnewconnection.h \ qgspgquerybuilder.h \ qgspgutil.h postgresSOURCES = qgsdbsourceselect.cpp \ qgsnewconnection.cpp \ qgspgquerybuilder.cpp \ qgspgutil.h postgresUIC = qgsdbsourceselectbase.ui \ qgsnewconnectionbase.ui \ qgspgquerybuilderbase.ui postgresUIH = postgresLIBSOURCES = qgspgutil.cpp if HAVE_POSTGRESQL postgresUIHEADERS = $(postgresUIC:.ui=.uic.h) postgresUISOURCES = $(postgresUIC:.ui=.uic.cpp) postgresUIMOC = $(postgresUIC:.ui=.moc.uic.cpp) postgresMOC = $(postgresHEADERS:.h=.moc.cpp) qgis_SOURCES += $(postgresSOURCES) endif nodist_qgis_SOURCES = $(qgis_MOC) $(qgis_UISOURCES) $(qgis_UIMOC) \ $(postgresMOC) $(postgresUISOURCES) $(postgresUIMOC) BUILT_SOURCES = $(qgis_MOC) $(qgis_UIMOC) $(qgis_UIHEADERS) $(qgis_UISOURCES) \ $(postgresMOC) $(postgresUIMOC) $(postgresUIHEADERS) $(postgresUISOURCES) qgis_LDADD = $(LDADD) $(QT_LDADD) $(GDAL_LDADD) $(PG_LIB) $(GEOS_LDADD) qgis_LDFLAGS = -rdynamic qgis_CXXFLAGS = $(PREFIX) $(PLUGINPATH) $(PKGDATAPATH) $(GDAL_CFLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) -I$(PG_INC) $(DEBUG_QGIS) $(GEOS_CFLAGS) libqgis_la_SOURCES = \ qgisapp.cpp \ qgisapp.moc.cpp \ qgisappbase.uic.cpp \ qgisappbase.moc.uic.cpp \ qgsacetateobject.cpp \ qgsacetaterectangle.cpp \ qgscolortable.cpp \ qgscontinuouscolrenderer.cpp \ qgscoordinatetransform.cpp \ qgsfeatureattribute.cpp \ qgsfeature.cpp \ qgsfield.cpp \ qgsgraduatedmarenderer.cpp \ qgsgraduatedsymrenderer.cpp \ qgsmapcanvas.cpp \ qgsmapcanvas.moc.cpp \ qgsmaplayer.cpp \ qgsmaplayer.moc.cpp \ qgsmaplayerregistry.cpp \ qgsmaplayerregistry.moc.cpp \ qgspoint.cpp \ qgspoint.moc.cpp \ qgsproviderregistry.cpp \ qgsrasterlayer.cpp \ qgsrasterlayer.moc.cpp \ qgsrect.cpp \ qgsscalecalculator.cpp \ qgssimarenderer.cpp \ qgssinglesymrenderer.cpp \ qgssymbol.cpp \ qgsuniquevalrenderer.cpp \ qgsuvalmarenderer.cpp \ qgsvectorfilewriter.cpp \ qgsvectordataprovider.cpp \ qgsvectorlayer.cpp \ qgsvectorlayer.moc.cpp if HAVE_POSTGRESQL libqgis_la_SOURCES += $(postgresLIBSOURCES) endif libqgis_la_LIBFLAGS = $(QT_LDADD) $(GEOS_LDADD) libqgis_la_LDFLAGS = -version-info $(INTERFACE_VERSION) libqgis_la_CXXFLAGS = $(PREFIX) $(PLUGINPATH) $(PKGDATAPATH) $(GDAL_CFLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) -I$(PG_INC) $(DEBUG_QGIS) $(GEOS_CFLAGS) ## for installing headers in $(includedir)/qgis pkginclude_HEADERS = $(headers) $(qgis_UIHEADERS) $(qgis_UIH) $(postgresHEADERS) $(postgresUIH) pkginclude_dir = $(includedir)/qgis CLEANFILES = $(BUILT_SOURCES) EXTRA_DIST = $(postgresHEADERS) $(postgresSOURCES) $(postgresUIC) $(qgis_UIC) $(qgis_UIH) $(postgresUIH) xpm/*.png xpm/*.xpm xpm/16x16/mapserver.xpm xpm/16x16/camera.png noinst_HEADERS = qgsdatasourceuri.h