topbuilddir=. PROGRAM=ftsbench stopfilter WITH_PGSQL=yes WITH_MYSQL=yes SUBDIRS= LIBRARY=ftsbench.a LIBOBJ=rand.o finnegan.o utils.o ifeq ($(WITH_PGSQL), yes) LIBOBJ+=pgdriver.o PGSQLCFG=/usr/local/pgsql/bin/pg_config EXTRALIB+=-L`$(PGSQLCFG) --libdir` -lpq -L/usr/lib -lcrypt EXTRAINCLUDE+=-I`$(PGSQLCFG) --includedir` EXTRAFLAGS+=-DWITH_PGSQL endif ifeq ($(WITH_MYSQL), yes) LIBOBJ+=mysqldriver.o MYSQLCFG=/usr/local/mysql/bin/mysql_config EXTRALIB+=`$(MYSQLCFG) --libs_r` EXTRAINCLUDE+=`$(MYSQLCFG) --cflags` EXTRAFLAGS+=-DWITH_MYSQL endif include $(topbuilddir)/Makefile.global all: gendata/query-lex gendata/query-lex: gendata/lex gendata/english.stop stopfilter ./stopfilter gendata/english.stop < gendata/lex > gendata/query-lex clean: clean-query-lex clean-query-lex: rm -rf gendata/query-lex