2007-06-27 06:05:04 +08:00
|
|
|
# $PostgreSQL: pgsql/contrib/tsearch2/ispell/Makefile,v 1.10 2007/06/26 22:05:03 tgl Exp $
|
2003-08-23 12:25:29 +08:00
|
|
|
|
2005-09-15 19:14:18 +08:00
|
|
|
SUBOBJS = spell.o regis.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/ispell
|
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) $@ $^
|
|
|
|
|
|
|
|
|