postgis/liblwgeom/Makefile.in

67 lines
1.4 KiB
Makefile
Raw Normal View History

# **********************************************************************
# * $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@
CFLAGS=@CFLAGS@ @PICFLAGS@ @WARNFLAGS@
YACC=@YACC@
LEX=@LEX@
# 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 \
lwsegmentize.o \
wktparse.tab.o \
lex.yy.o \
vsprintf.o
all: liblwgeom.a
liblwgeom.a: $(SA_OBJS)
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 $@ $<
# 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
$(LEX) -Plwg_parse_yy -i -f -o'lex.yy.c' wktparse.lex