mirror of
https://github.com/postgres/postgres.git
synced 2026-02-25 19:02:00 -05:00
Some of the non-MSVC Windows buildfarm members seem to need this to avoid getting "undefined symbol" errors on libpgfeutils' references to libpq. I could understand that if libpq were a static library, but surely it is not? Oh well, at least the extra reference is no more harmful than it is for libpgcommon or libpgport.
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
# src/bin/pgbench/Makefile
|
|
|
|
PGFILEDESC = "pgbench - a simple program for running benchmark tests"
|
|
PGAPPICON = win32
|
|
|
|
subdir = src/bin/pgbench
|
|
top_builddir = ../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
OBJS = pgbench.o exprparse.o $(WIN32RES)
|
|
|
|
override CPPFLAGS := -I. -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS)
|
|
LDFLAGS += -L$(top_builddir)/src/fe_utils -lpgfeutils -lpq
|
|
|
|
ifneq ($(PORTNAME), win32)
|
|
override CFLAGS += $(PTHREAD_CFLAGS)
|
|
endif
|
|
|
|
|
|
all: pgbench
|
|
|
|
pgbench: $(OBJS) | submake-libpq submake-libpgport submake-libpgfeutils
|
|
$(CC) $(CFLAGS) $^ $(libpq_pgport) $(PTHREAD_LIBS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
|
|
|
# exprscan is compiled as part of exprparse
|
|
exprparse.o: exprscan.c
|
|
|
|
distprep: exprparse.c exprscan.c
|
|
|
|
install: all installdirs
|
|
$(INSTALL_PROGRAM) pgbench$(X) '$(DESTDIR)$(bindir)/pgbench$(X)'
|
|
|
|
installdirs:
|
|
$(MKDIR_P) '$(DESTDIR)$(bindir)'
|
|
|
|
uninstall:
|
|
rm -f '$(DESTDIR)$(bindir)/pgbench$(X)'
|
|
|
|
clean distclean:
|
|
rm -f pgbench$(X) $(OBJS)
|
|
rm -rf tmp_check
|
|
|
|
maintainer-clean: distclean
|
|
rm -f exprparse.c exprscan.c
|
|
|
|
check:
|
|
$(prove_check)
|
|
|
|
installcheck:
|
|
$(prove_installcheck)
|