1 # $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.8 2003/01/31 20:58:00 tgl Exp $
5 include $(top_builddir)/src/Makefile.global
8 OBJS= cube.o cubeparse.o buffer.o
15 # cubescan is compiled as part of cubeparse
16 cubeparse.o: cubescan.c
18 cubeparse.c: cubeparse.h ;
20 # The sed hack is so that we can get the same error messages with
21 # bison 1.875 and later as we did with earlier bisons. Eventually,
22 # I suppose, we should re-standardize on "syntax error" --- in which
23 # case flip the sed translation, but don't remove it.
25 cubeparse.h: cubeparse.y
27 $(YACC) -d $(YFLAGS) -p cube_yy $<
28 sed -e 's/"syntax error/"parse error/' < y.tab.c > cubeparse.c
29 mv -f y.tab.h cubeparse.h
32 @$(missing) bison $< $@
35 cubescan.c: cubescan.l
37 $(FLEX) $(FLEXFLAGS) -Pcube_yy -o'$@' $<
39 @$(missing) flex $< $@
42 EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
45 include $(top_srcdir)/contrib/contrib-global.mk