| 1 |
# contrib/seg/Makefile |
| 2 |
|
| 3 |
MODULE_big = seg |
| 4 |
OBJS = \ |
| 5 |
$(WIN32RES) \ |
| 6 |
seg.o \ |
| 7 |
segparse.o \ |
| 8 |
segscan.o |
| 9 |
|
| 10 |
EXTENSION = seg |
| 11 |
DATA = seg--1.1.sql seg--1.1--1.2.sql seg--1.2--1.3.sql seg--1.3--1.4.sql \ |
| 12 |
seg--1.0--1.1.sql |
| 13 |
PGFILEDESC = "seg - line segment data type" |
| 14 |
|
| 15 |
HEADERS = segdata.h |
| 16 |
|
| 17 |
REGRESS = security seg partition |
| 18 |
|
| 19 |
EXTRA_CLEAN = segparse.h segparse.c segscan.c |
| 20 |
|
| 21 |
ifdef USE_PGXS |
| 22 |
PG_CONFIG = pg_config |
| 23 |
PGXS := $(shell $(PG_CONFIG) --pgxs) |
| 24 |
include $(PGXS) |
| 25 |
else |
| 26 |
subdir = contrib/seg |
| 27 |
top_builddir = ../.. |
| 28 |
include $(top_builddir)/src/Makefile.global |
| 29 |
include $(top_srcdir)/contrib/contrib-global.mk |
| 30 |
endif |
| 31 |
|
| 32 |
|
| 33 |
# See notes in src/backend/parser/Makefile about the following two rules |
| 34 |
segparse.h: segparse.c |
| 35 |
touch $@ |
| 36 |
|
| 37 |
segparse.c: BISONFLAGS += -d |
| 38 |
|
| 39 |
# Force these dependencies to be known even without dependency info built: |
| 40 |
segparse.o segscan.o: segparse.h |