1#/**********************************************************************
2# *
3# * PostGIS - Spatial Types for PostgreSQL
4# * http://postgis.net
5# *
6# * PostGIS is free software: you can redistribute it and/or modify
7# * it under the terms of the GNU General Public License as published by
8# * the Free Software Foundation, either version 2 of the License, or
9# * (at your option) any later version.
10# *
11# * PostGIS is distributed in the hope that it will be useful,
12# * but WITHOUT ANY WARRANTY; without even the implied warranty of
13# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# * GNU General Public License for more details.
15# *
16# * You should have received a copy of the GNU General Public License
17# * along with PostGIS.  If not, see <http://www.gnu.org/licenses/>.
18# *
19# **********************************************************************
20# *
21# * Copyright 2019 Raúl Marín
22# *
23# **********************************************************************/
24
25CXX = @WAGYU_CXX@
26CXXFLAGS =-I../../liblwgeom -Iinclude @CPPFLAGS@ @CXXFLAGS@ @PICFLAGS@
27LDFLAGS = @LDFLAGS@
28top_builddir = @top_builddir@
29libdir = @libdir@
30LIBTOOL = @LIBTOOL@
31
32WAGYU_OBJS = \
33	lwgeom_wagyu.o
34
35WAGYU_HEADERS = \
36	lwgeom_wagyu.h \
37	include/mapbox/geometry/polygon.hpp \
38	include/mapbox/geometry/point_arithmetic.hpp \
39	include/mapbox/geometry/multi_polygon.hpp \
40	include/mapbox/geometry/box.hpp \
41	include/mapbox/geometry/for_each_point.hpp \
42	include/mapbox/geometry/line_string.hpp \
43	include/mapbox/geometry/wagyu/process_horizontal.hpp \
44	include/mapbox/geometry/wagyu/wagyu.hpp \
45	include/mapbox/geometry/wagyu/ring_util.hpp \
46	include/mapbox/geometry/wagyu/bubble_sort.hpp \
47	include/mapbox/geometry/wagyu/snap_rounding.hpp \
48	include/mapbox/geometry/wagyu/bound.hpp \
49	include/mapbox/geometry/wagyu/edge.hpp \
50	include/mapbox/geometry/wagyu/build_result.hpp \
51	include/mapbox/geometry/wagyu/scanbeam.hpp \
52	include/mapbox/geometry/wagyu/ring.hpp \
53	include/mapbox/geometry/wagyu/config.hpp \
54	include/mapbox/geometry/wagyu/quick_clip.hpp \
55	include/mapbox/geometry/wagyu/local_minimum_util.hpp \
56	include/mapbox/geometry/wagyu/process_maxima.hpp \
57	include/mapbox/geometry/wagyu/intersect.hpp \
58	include/mapbox/geometry/wagyu/point.hpp \
59	include/mapbox/geometry/wagyu/util.hpp \
60	include/mapbox/geometry/wagyu/intersect_util.hpp \
61	include/mapbox/geometry/wagyu/vatti.hpp \
62	include/mapbox/geometry/wagyu/active_bound_list.hpp \
63	include/mapbox/geometry/wagyu/build_local_minima_list.hpp \
64	include/mapbox/geometry/wagyu/build_edges.hpp \
65	include/mapbox/geometry/wagyu/local_minimum.hpp \
66	include/mapbox/geometry/wagyu/topology_correction.hpp \
67	include/mapbox/geometry/wagyu/interrupt.hpp \
68	include/mapbox/geometry/geometry.hpp \
69	include/mapbox/geometry/point.hpp \
70	include/mapbox/geometry/empty.hpp \
71	include/mapbox/geometry/multi_line_string.hpp \
72	include/mapbox/geometry/envelope.hpp \
73	include/mapbox/geometry/multi_point.hpp \
74	include/mapbox/feature.hpp \
75	include/mapbox/geometry_io.hpp \
76	include/mapbox/geometry.hpp
77
78all: @WAGYU_LIB@
79
80@WAGYU_LIB@: $(WAGYU_OBJS)
81	ar rs @WAGYU_LIB@ $(WAGYU_OBJS)
82
83$(WAGYU_OBJS): %.o: %.cpp ../../liblwgeom/liblwgeom.h $(WAGYU_HEADERS)
84	$(CXX) $(CXXFLAGS) -c -o $@ $<
85
86../../liblwgeom/liblwgeom.h:
87	$(MAKE) -C ../../liblwgeom liblwgeom.h
88
89clean:
90	rm -f @WAGYU_LIB@ $(WAGYU_OBJS)
91
92distclean: clean
93	rm -f Makefile
94
95
96install:
97
98uninstall:
99
100check:
101
102.PHONY: clean distclean install uninstall check
103