4 OBJS
= seg.o segparse.o
6 DATA
= uninstall_seg.sql
9 EXTRA_CLEAN
= y.tab.c y.tab.h
13 PGXS
:= $(shell $(PG_CONFIG
) --pgxs
)
18 include $(top_builddir
)/src
/Makefile.global
19 include $(top_srcdir
)/contrib
/contrib-global.mk
23 # segscan is compiled as part of segparse
24 segparse.o
: $(srcdir)/segscan.c
26 $(srcdir)/segparse.c
: segparse.y
28 $(BISON
) $(BISONFLAGS
) -o
$@
$<
30 @
$(missing
) bison
$< $@
33 $(srcdir)/segscan.c
: segscan.l
35 $(FLEX
) $(FLEXFLAGS
) -o
'$@' $<
37 @
$(missing
) flex
$< $@
40 distprep
: $(srcdir)/segparse.c
$(srcdir)/segscan.c
43 rm -f
$(srcdir)/segparse.c
$(srcdir)/segscan.c