2010-09-21 00:08:53 +04:00
|
|
|
# contrib/pgbench/Makefile
|
2010-05-12 15:33:10 +04:00
|
|
|
|
|
|
|
PGFILEDESC = "pgbench - a simple program for running benchmark tests"
|
2011-01-25 04:46:30 +03:00
|
|
|
PGAPPICON = win32
|
2000-01-15 15:38:09 +03:00
|
|
|
|
2001-09-06 14:49:30 +04:00
|
|
|
PROGRAM = pgbench
|
2000-12-04 04:32:19 +03:00
|
|
|
OBJS = pgbench.o
|
2000-01-15 15:38:09 +03:00
|
|
|
|
2001-09-06 14:49:30 +04:00
|
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
2009-08-03 22:30:55 +04:00
|
|
|
PG_LIBS = $(libpq_pgport) $(PTHREAD_LIBS)
|
2000-12-04 04:32:19 +03:00
|
|
|
|
2004-08-21 00:13:10 +04:00
|
|
|
ifdef USE_PGXS
|
2007-06-27 02:05:04 +04:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
2004-08-21 00:13:10 +04:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/pgbench
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
2001-09-06 14:49:30 +04:00
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
2004-08-21 00:13:10 +04:00
|
|
|
endif
|
2009-08-03 22:30:55 +04:00
|
|
|
|
|
|
|
ifneq ($(PORTNAME), win32)
|
|
|
|
override CFLAGS += $(PTHREAD_CFLAGS)
|
|
|
|
endif
|