1 |
kmr |
1 |
ifdef INTERBASE_COORDS |
2 |
|
|
BIOSEG := bioseg0 |
3 |
|
|
PG_CPPFLAGS = -I. -DINTERBASE_COORDS |
4 |
|
|
else |
5 |
|
|
BIOSEG := bioseg |
6 |
|
|
PG_CPPFLAGS = -I. |
7 |
|
|
endif |
8 |
|
|
|
9 |
|
|
MODULE_big = $(BIOSEG) |
10 |
|
|
OBJS = bioseg.o |
11 |
|
|
DATA_built = $(BIOSEG).sql |
12 |
|
|
DATA = uninstall_$(BIOSEG).sql |
13 |
|
|
REGRESS = $(BIOSEG) |
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
ifdef USE_PGXS |
18 |
|
|
PGXS := $(shell pg_config --pgxs) |
19 |
|
|
include $(PGXS) |
20 |
|
|
else |
21 |
|
|
subdir = contrib/bioseg |
22 |
|
|
top_builddir = ../.. |
23 |
|
|
include $(top_builddir)/src/Makefile.global |
24 |
|
|
include $(top_srcdir)/contrib/contrib-global.mk |
25 |
|
|
endif |
26 |
|
|
|
27 |
|
|
$(BIOSEG).sql: bioseg.sql.in |
28 |
|
|
sed 's,MODULE_PATHNAME,$$libdir/$*,g' $< | sed 's,$$BIOSEG_TYPE,$(BIOSEG),g' >$@ |