2007-06-27 06:05:04 +08:00
|
|
|
# $PostgreSQL: pgsql/contrib/tsearch2/snowball/Makefile,v 1.10 2007/06/26 22:05:03 tgl Exp $
|
2003-08-23 12:25:29 +08:00
|
|
|
|
2006-01-28 00:32:31 +08:00
|
|
|
SUBOBJS = english_stem.o api.o russian_stem.o russian_stem_UTF8.o utilities.o
|
2005-10-18 09:30:49 +08:00
|
|
|
|
2005-09-15 19:14:18 +08:00
|
|
|
EXTRA_CLEAN = SUBSYS.o $(SUBOBJS)
|
|
|
|
|
2005-10-18 09:30:49 +08:00
|
|
|
PG_CPPFLAGS = -I$(srcdir)/..
|
|
|
|
|
2005-09-15 19:14:18 +08:00
|
|
|
ifdef USE_PGXS
|
2007-06-27 06:05:04 +08:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
2005-09-15 19:14:18 +08:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
2005-10-18 09:30:49 +08:00
|
|
|
subdir = contrib/tsearch2/snowball
|
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) $@ $^
|
|
|
|
|
|
|
|
|