2008-06-29 19:11:48 +00:00
|
|
|
# **********************************************************************
|
|
|
|
# * $Id: Makefile.in
|
|
|
|
# *
|
|
|
|
# * PostGIS - Spatial Types for PostgreSQL
|
|
|
|
# * http://postgis.refractions.net
|
|
|
|
# * Copyright 2008 Mark Cave-Ayland
|
|
|
|
# *
|
|
|
|
# * This is free software; you can redistribute and/or modify it under
|
|
|
|
# * the terms of the GNU General Public Licence. See the COPYING file.
|
|
|
|
# *
|
|
|
|
# **********************************************************************
|
|
|
|
|
|
|
|
CC=@CC@
|
2008-07-01 14:15:33 +00:00
|
|
|
CFLAGS=@CFLAGS@ @PICFLAGS@ @WARNFLAGS@
|
2008-06-29 19:11:48 +00:00
|
|
|
|
2008-07-03 09:28:38 +00:00
|
|
|
YACC=@YACC@
|
|
|
|
LEX=@LEX@
|
|
|
|
|
2008-06-29 19:11:48 +00:00
|
|
|
# Standalone LWGEOM objects
|
|
|
|
SA_OBJS=measures.o \
|
|
|
|
box2d.o \
|
|
|
|
ptarray.o \
|
|
|
|
lwgeom_api.o \
|
|
|
|
lwgeom.o \
|
|
|
|
lwpoint.o \
|
|
|
|
lwline.o \
|
|
|
|
lwpoly.o \
|
|
|
|
lwmpoint.o \
|
|
|
|
lwmline.o \
|
|
|
|
lwmpoly.o \
|
|
|
|
lwcollection.o \
|
|
|
|
lwcurve.o \
|
|
|
|
lwcompound.o \
|
|
|
|
lwcurvepoly.o \
|
|
|
|
lwmcurve.o \
|
|
|
|
lwmsurface.o \
|
|
|
|
lwutil.o \
|
|
|
|
lwgunparse.o \
|
|
|
|
lwgparse.o \
|
2008-09-16 18:44:49 +00:00
|
|
|
lwsegmentize.o \
|
2008-06-29 19:11:48 +00:00
|
|
|
wktparse.tab.o \
|
|
|
|
lex.yy.o \
|
|
|
|
vsprintf.o
|
|
|
|
|
2008-11-26 13:40:07 +00:00
|
|
|
all: liblwgeom.a
|
|
|
|
|
|
|
|
liblwgeom.a: $(SA_OBJS)
|
2008-06-29 19:11:48 +00:00
|
|
|
ar rs liblwgeom.a $(SA_OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(SA_OBJS)
|
|
|
|
rm -f liblwgeom.a
|
|
|
|
|
|
|
|
# Command to build each of the .o files
|
|
|
|
$(SA_OBJS): %.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
2008-07-03 09:28:38 +00:00
|
|
|
|
|
|
|
# Commands to generate the lexer and parser from input files
|
|
|
|
wktparse.tab.c: wktparse.y
|
|
|
|
$(YACC) -vd -p lwg_parse_yy wktparse.y
|
|
|
|
mv -f y.tab.c wktparse.tab.c
|
|
|
|
mv -f y.tab.h wktparse.tab.h
|
|
|
|
|
|
|
|
lex.yy.c: wktparse.lex wktparse.tab.c
|
2008-07-28 09:13:45 +00:00
|
|
|
$(LEX) -Plwg_parse_yy -i -f -o'lex.yy.c' wktparse.lex
|
2008-06-29 19:11:48 +00:00
|
|
|
|