1# $Id$
2#
3# Makefile to build OGR GeoJSON driver
4#
5include ../../../GDALmake.opt
6
7ifeq ($(LIBJSONC_SETTING),internal)
8SUBDIRS-yes	:= libjson
9endif
10
11OBJ = \
12	ogrgeojsondriver.o \
13	ogrgeojsondatasource.o \
14	ogrgeojsonlayer.o \
15	ogrgeojsonwritelayer.o \
16	ogrgeojsonutils.o \
17	ogrgeojsonreader.o \
18	ogrgeojsonwriter.o \
19	ogresrijsondriver.o \
20	ogresrijsonreader.o \
21	ogrtopojsondriver.o \
22	ogrtopojsonreader.o \
23	ogrgeojsonseqdriver.o
24
25CPPFLAGS	:= $(JSON_INCLUDE) -I. -I.. -I../..  $(CPPFLAGS)
26
27default:        $(foreach d,$(SUBDIRS-yes),$(d)-target) $(O_OBJ:.o=.$(OBJ_EXT))
28
29clean: $(foreach d,$(SUBDIRS-yes),$(d)-clean)
30	rm -f *.o $(O_OBJ)
31	rm -f *~
32
33$(O_OBJ):       ogr_geojson.h ogrgeojsonreader.h
34