mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
3b29525a79
object files do not get built with -fpic.
29 lines
523 B
Makefile
29 lines
523 B
Makefile
subdir = contrib/tsearch2/wordparser
|
|
top_builddir = ../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
|
override CPPFLAGS := -I$(srcdir) -I$(srcdir)/.. $(CPPFLAGS)
|
|
override CFLAGS += $(CFLAGS_SL)
|
|
|
|
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
|
|
|
|
|