1############################################################################# 2# 3# Copyright (c) 2009 Sandro Santilli <strk@kbt.io> 4# 5# This program is free software; you can redistribute it and/or 6# modify it under the terms of the GNU General Public License 7# as published by the Free Software Foundation; either version 2 8# of the License, or (at your option) any later version. 9# 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU General Public License for more details. 14# 15# You should have received a copy of the GNU General Public License 16# along with this program; if not, write to the Free Software Foundation, 17# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18# 19############################################################################# 20 21AR = ar rs 22 23CC = @CC@ 24LIBLWGEOM_LDFLAGS = ../../liblwgeom/.libs/liblwgeom.a 25LIBLWGEOM_CFLAGS = -I../../liblwgeom 26LIBGDAL_CFLAGS = @LIBGDAL_CFLAGS@ 27LIBGDAL_LDFLAGS = @LIBGDAL_LDFLAGS@ 28GEOS_LDFLAGS = @GEOS_LDFLAGS@ 29PROJ_LDFLAGS = @PROJ_LDFLAGS@ 30LDFLAGS = $(LIBLWGEOM_LDFLAGS) $(LIBGDAL_LDFLAGS) $(PROJ_LDFLAGS) $(GEOS_LDFLAGS) 31CFLAGS = $(LIBLWGEOM_CFLAGS) @CPPFLAGS@ @CFLAGS@ @PICFLAGS@ $(LIBGDAL_CFLAGS) @PROJ_CPPFLAGS@ @GEOS_CPPFLAGS@ 32 33# Standalone RTCORE objects 34RT_OBJS = \ 35 rt_util.o \ 36 rt_spatial_relationship.o \ 37 rt_mapalgebra.o \ 38 rt_geometry.o \ 39 rt_statistics.o \ 40 rt_pixel.o \ 41 rt_warp.o \ 42 rt_band.o \ 43 rt_raster.o \ 44 rt_serialize.o \ 45 rt_wkb.o \ 46 rt_context.o 47 48RT_LIB = librtcore.a 49RT_HEADERS = \ 50 rt_serialize.h \ 51 librtcore.h \ 52 librtcore_internal.h \ 53 ../raster_config.h 54 55all: $(RT_LIB) 56 57$(RT_OBJS): $(RT_HEADERS) 58 59clean: 60 rm -f $(RT_OBJS) 61 rm -f $(RT_LIB) 62 63distclean: clean 64 rm -f Makefile 65 66librtcore.a: $(RT_OBJS) 67 $(AR) $(RT_LIB) $(RT_OBJS) 68