

include ../../../GDALmake.opt

CORE_OBJ =	ogr2kmlgeometry.o

OGR_OBJ =	ogrkmldriver.o ogrkmldatasource.o ogrkmllayer.o

OBJ =	$(CORE_OBJ) $(OGR_OBJ)

ifeq ($(HAVE_EXPAT),yes)
OGR_OBJ  +=   kml.o kmlnode.o kmlvector.o
CPPFLAGS +=   -DHAVE_EXPAT
endif

CPPFLAGS := -I. -I.. -I../.. -I$(GDAL_ROOT)/port -I$(GDAL_ROOT)/gcore -I$(GDAL_ROOT)/alg \
	-I$(GDAL_ROOT)/ogr -I$(GDAL_ROOT)/ogrsf_frmts $(EXPAT_INCLUDE) $(CPPFLAGS)

#CFLAGS	:=	$(filter-out -Wall,$(CFLAGS))

default:	$(O_OBJ:.o=.$(OBJ_EXT))

clean:
	rm -f *.o kmlview $(O_OBJ)



