2002-11-02 06:52:34 +08:00
|
|
|
# $Header: /cvsroot/pgsql/contrib/cube/Makefile,v 1.7 2002/11/01 22:52:33 tgl 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
|
2002-11-02 06:52:34 +08:00
|
|
|
OBJS= cube.o cubeparse.o buffer.o
|
2000-12-12 04:39:15 +08:00
|
|
|
|
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
|
|
|
|
|
|
|
|
2002-11-02 06:52:34 +08:00
|
|
|
# cubescan is compiled as part of cubeparse
|
|
|
|
cubeparse.o: cubescan.c
|
|
|
|
|
2001-11-17 00:32:33 +08:00
|
|
|
cubeparse.c: cubeparse.h ;
|
|
|
|
|
|
|
|
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
|