2003-11-30 03:52:15 +08:00
|
|
|
# $PostgreSQL: pgsql/contrib/tsearch2/wordparser/Makefile,v 1.5 2003/11/29 19:51:36 pgsql Exp $
|
2003-08-23 12:25:29 +08:00
|
|
|
|
2003-08-04 22:54:47 +08:00
|
|
|
subdir = contrib/tsearch2/wordparser
|
|
|
|
top_builddir = ../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
|
|
|
|
2003-08-23 12:25:29 +08:00
|
|
|
PG_CPPFLAGS = -I$(srcdir)/..
|
2003-08-05 04:34:26 +08:00
|
|
|
override CFLAGS += $(CFLAGS_SL)
|
2003-08-04 22:54:47 +08:00
|
|
|
|
|
|
|
SUBOBJS = parser.o deflex.o
|
|
|
|
|
|
|
|
all: SUBSYS.o
|
|
|
|
|
|
|
|
parser.c: parser.l
|
|
|
|
ifdef FLEX
|
|
|
|
$(FLEX) $(FLEXFLAGS) -8 -Ptsearch2_yy -o'$@' $<
|
|
|
|
else
|
|
|
|
@$(missing) flex $< $@
|
|
|
|
endif
|
|
|
|
|
|
|
|
SUBSYS.o: $(SUBOBJS)
|
|
|
|
$(LD) $(LDREL) $(LDOUT) $@ $^
|
|
|
|
|
|
|
|
EXTRA_CLEAN = SUBSYS.o $(SUBOBJS) parser.c
|
|
|
|
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|