2010-09-21 00:08:53 +04:00
|
|
|
# contrib/seg/Makefile
|
2000-12-11 23:40:33 +03:00
|
|
|
|
2001-09-06 14:49:30 +04:00
|
|
|
MODULE_big = seg
|
2003-09-14 06:18:49 +04:00
|
|
|
OBJS = seg.o segparse.o
|
2001-09-06 14:49:30 +04:00
|
|
|
DATA_built = seg.sql
|
2006-02-27 15:54:39 +03:00
|
|
|
DATA = uninstall_seg.sql
|
2001-09-06 14:49:30 +04:00
|
|
|
REGRESS = seg
|
2000-12-11 23:40:33 +03:00
|
|
|
|
2006-04-03 22:47:41 +04:00
|
|
|
EXTRA_CLEAN = y.tab.c y.tab.h
|
2004-08-21 00:13:10 +04:00
|
|
|
|
|
|
|
ifdef USE_PGXS
|
2007-06-27 02:05:04 +04:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
2004-08-21 00:13:10 +04:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/seg
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
endif
|
2000-12-11 23:40:33 +03:00
|
|
|
|
2006-03-07 04:03:12 +03:00
|
|
|
|
2002-11-02 01:52:34 +03:00
|
|
|
# segscan is compiled as part of segparse
|
2009-08-29 00:26:19 +04:00
|
|
|
segparse.o: segscan.c
|
2002-11-02 01:52:34 +03:00
|
|
|
|
2009-08-29 00:26:19 +04:00
|
|
|
segparse.c: segparse.y
|
2008-08-29 17:02:33 +04:00
|
|
|
ifdef BISON
|
|
|
|
$(BISON) $(BISONFLAGS) -o $@ $<
|
2001-02-11 01:31:42 +03:00
|
|
|
else
|
|
|
|
@$(missing) bison $< $@
|
|
|
|
endif
|
2000-12-11 23:40:33 +03:00
|
|
|
|
2009-08-29 00:26:19 +04:00
|
|
|
segscan.c: segscan.l
|
2000-12-11 23:40:33 +03:00
|
|
|
ifdef FLEX
|
2003-09-14 06:18:49 +04:00
|
|
|
$(FLEX) $(FLEXFLAGS) -o'$@' $<
|
2000-12-11 23:40:33 +03:00
|
|
|
else
|
|
|
|
@$(missing) flex $< $@
|
|
|
|
endif
|
2006-04-03 22:47:41 +04:00
|
|
|
|
2009-08-29 00:26:19 +04:00
|
|
|
distprep: segparse.c segscan.c
|
2006-04-03 22:47:41 +04:00
|
|
|
|
|
|
|
maintainer-clean:
|
2009-08-29 00:26:19 +04:00
|
|
|
rm -f segparse.c segscan.c
|