2005-09-28 01:13:14 +08:00
|
|
|
# $PostgreSQL: pgsql/contrib/tsearch2/snowball/Makefile,v 1.7 2005/09/27 17:13:12 tgl Exp $
|
2003-08-23 12:25:29 +08:00
|
|
|
|
2005-09-15 19:14:18 +08:00
|
|
|
|
|
|
|
PG_CPPFLAGS = -I$(srcdir)/..
|
|
|
|
SUBOBJS = english_stem.o api.o russian_stem.o utilities.o
|
|
|
|
EXTRA_CLEAN = SUBSYS.o $(SUBOBJS)
|
|
|
|
|
|
|
|
ifdef USE_PGXS
|
2005-09-28 01:13:14 +08:00
|
|
|
PGXS := $(shell pg_config --pgxs)
|
2005-09-15 19:14:18 +08:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/tsearch2
|
2003-08-04 22:54:47 +08:00
|
|
|
top_builddir = ../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
2005-09-15 19:14:18 +08:00
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
endif
|
2003-08-04 22:54:47 +08:00
|
|
|
|
2003-08-05 04:34:26 +08:00
|
|
|
override CFLAGS += $(CFLAGS_SL)
|
2003-08-04 22:54:47 +08:00
|
|
|
|
|
|
|
all: SUBSYS.o
|
|
|
|
|
|
|
|
SUBSYS.o: $(SUBOBJS)
|
|
|
|
$(LD) $(LDREL) $(LDOUT) $@ $^
|
|
|
|
|
|
|
|
|