aboutsummaryrefslogtreecommitdiff
path: root/contrib/tsearch2/wordparser/Makefile
blob: 5322f40696f3dd480487f88e8a10f207497aee27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
subdir = contrib/tsearch2/wordparser
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global


override CPPFLAGS := -I$(srcdir) -I$(srcdir)/.. $(CPPFLAGS)

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
# DO NOT DELETE