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_gdal.o \
43	rt_band.o \
44	rt_raster.o \
45	rt_serialize.o \
46	rt_wkb.o \
47	rt_context.o
48
49RT_LIB = librtcore.a
50RT_HEADERS = \
51	rt_serialize.h \
52	librtcore.h \
53	librtcore_internal.h \
54	../raster_config.h
55
56all: $(RT_LIB)
57
58$(RT_OBJS): $(RT_HEADERS)
59
60clean:
61	rm -f $(RT_OBJS)
62	rm -f $(RT_LIB)
63
64distclean: clean
65	rm -f Makefile
66
67librtcore.a: $(RT_OBJS)
68	$(AR) $(RT_LIB) $(RT_OBJS)
69