2003-11-30 03:52:15 +08:00
|
|
|
# $PostgreSQL: pgsql/contrib/cube/Makefile,v 1.11 2003/11/29 19:51:21 pgsql 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
|
2003-09-14 09:52:25 +08:00
|
|
|
OBJS= cube.o cubeparse.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 $<
|
2003-05-14 11:27:22 +08:00
|
|
|
mv -f y.tab.c cubeparse.c
|
2000-12-12 04:39:15 +08:00
|
|
|
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
|
2003-09-14 09:52:25 +08:00
|
|
|
$(FLEX) $(FLEXFLAGS) -o'$@' $<
|
2000-12-12 04:39:15 +08:00
|
|
|
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
|