Fix xslt_process() to ensure that it inserts a NULL terminator after the
[PostgreSQL.git] / contrib / seg / Makefile
blob83950a0ba61da3b09912a5747e392f66b6282fba
1 # $PostgreSQL$
3 MODULE_big = seg
4 OBJS = seg.o segparse.o
5 DATA_built = seg.sql
6 DATA = uninstall_seg.sql
7 REGRESS = seg
9 EXTRA_CLEAN = y.tab.c y.tab.h
11 ifdef USE_PGXS
12 PG_CONFIG = pg_config
13 PGXS := $(shell $(PG_CONFIG) --pgxs)
14 include $(PGXS)
15 else
16 subdir = contrib/seg
17 top_builddir = ../..
18 include $(top_builddir)/src/Makefile.global
19 include $(top_srcdir)/contrib/contrib-global.mk
20 endif
23 # segscan is compiled as part of segparse
24 segparse.o: $(srcdir)/segscan.c
26 $(srcdir)/segparse.c: segparse.y
27 ifdef BISON
28 $(BISON) $(BISONFLAGS) -o $@ $<
29 else
30 @$(missing) bison $< $@
31 endif
33 $(srcdir)/segscan.c: segscan.l
34 ifdef FLEX
35 $(FLEX) $(FLEXFLAGS) -o'$@' $<
36 else
37 @$(missing) flex $< $@
38 endif
40 distprep: $(srcdir)/segparse.c $(srcdir)/segscan.c
42 maintainer-clean:
43 rm -f $(srcdir)/segparse.c $(srcdir)/segscan.c