2010-09-21 04:08:53 +08:00
|
|
|
# contrib/earthdistance/Makefile
|
1998-06-16 11:55:15 +08:00
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
MODULES = earthdistance
|
2011-02-14 09:06:41 +08:00
|
|
|
|
|
|
|
EXTENSION = earthdistance
|
|
|
|
DATA = earthdistance--1.0.sql earthdistance--unpackaged--1.0.sql
|
|
|
|
|
2002-09-20 11:47:22 +08:00
|
|
|
REGRESS = earthdistance
|
2011-04-26 03:21:37 +08:00
|
|
|
REGRESS_OPTS = --extra-install=contrib/cube
|
1998-06-16 11:55:15 +08:00
|
|
|
|
2010-07-06 07:15:56 +08:00
|
|
|
LDFLAGS_SL += $(filter -lm, $(LIBS))
|
2005-07-25 07:30:10 +08:00
|
|
|
|
2004-08-21 04:13:10 +08:00
|
|
|
ifdef USE_PGXS
|
2007-06-27 06:05:04 +08:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
2004-08-21 04:13:10 +08:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/earthdistance
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
2001-09-06 18:49:30 +08:00
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
2004-08-21 04:13:10 +08:00
|
|
|
endif
|