2001-11-17 00:32:33 +08:00
|
|
|
# $Header: /cvsroot/pgsql/contrib/seg/Makefile,v 1.6 2001/11/16 16:32:33 petere Exp $
|
2000-12-12 04:40:33 +08:00
|
|
|
|
|
|
|
subdir = contrib/seg
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
MODULE_big = seg
|
|
|
|
OBJS = seg.o segparse.o segscan.o buffer.o
|
|
|
|
DATA_built = seg.sql
|
|
|
|
DOCS = README.seg
|
|
|
|
REGRESS = seg
|
2000-12-12 04:40:33 +08:00
|
|
|
|
|
|
|
|
2001-11-17 00:32:33 +08:00
|
|
|
segparse.c: segparse.h ;
|
|
|
|
|
|
|
|
segparse.h: segparse.y
|
2001-02-11 06:31:42 +08:00
|
|
|
ifdef YACC
|
2000-12-12 04:40:33 +08:00
|
|
|
$(YACC) -d $(YFLAGS) -p seg_yy $<
|
|
|
|
mv -f y.tab.c segparse.c
|
|
|
|
mv -f y.tab.h segparse.h
|
2001-02-11 06:31:42 +08:00
|
|
|
else
|
|
|
|
@$(missing) bison $< $@
|
|
|
|
endif
|
2000-12-12 04:40:33 +08:00
|
|
|
|
|
|
|
segscan.c: segscan.l
|
|
|
|
ifdef FLEX
|
|
|
|
$(FLEX) $(FLEXFLAGS) -Pseg_yy -o'$@' $<
|
|
|
|
else
|
|
|
|
@$(missing) flex $< $@
|
|
|
|
endif
|
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
EXTRA_CLEAN = segparse.c segparse.h segscan.c y.tab.c y.tab.h
|
2000-12-12 04:40:33 +08:00
|
|
|
|
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|