2001-09-06 18:49:30 +08:00
|
|
|
# $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.5 2001/09/06 10:49:29 petere Exp $
|
2000-12-12 04:39:15 +08:00
|
|
|
|
|
|
|
subdir = contrib/cube
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
MODULE_big = cube
|
2000-12-12 04:39:15 +08:00
|
|
|
OBJS= cube.o cubeparse.o cubescan.o buffer.o
|
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
DATA_built = cube.sql
|
|
|
|
DOCS = README.cube
|
|
|
|
REGRESS = cube
|
2000-12-12 04:39:15 +08:00
|
|
|
|
|
|
|
|
|
|
|
cubeparse.c cubeparse.h: cubeparse.y
|
2001-02-11 06:31:42 +08:00
|
|
|
ifdef YACC
|
2000-12-12 04:39:15 +08:00
|
|
|
$(YACC) -d $(YFLAGS) -p cube_yy $<
|
|
|
|
mv -f y.tab.c cubeparse.c
|
|
|
|
mv -f y.tab.h cubeparse.h
|
2001-02-11 06:31:42 +08:00
|
|
|
else
|
|
|
|
@$(missing) bison $< $@
|
|
|
|
endif
|
2000-12-12 04:39:15 +08:00
|
|
|
|
|
|
|
cubescan.c: cubescan.l
|
|
|
|
ifdef FLEX
|
|
|
|
$(FLEX) $(FLEXFLAGS) -Pcube_yy -o'$@' $<
|
|
|
|
else
|
|
|
|
@$(missing) flex $< $@
|
|
|
|
endif
|
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
EXTRA_CLEAN = cubeparse.c cubeparse.h cubescan.c y.tab.c y.tab.h
|
2000-12-12 04:39:15 +08:00
|
|
|
|
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|