summaryrefslogtreecommitdiff
path: root/contrib/pgbench/Makefile
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-12-04 01:32:19 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-12-04 01:32:19 +0000
commitd9466046c076b023b55d448d3cce6980dac24865 (patch)
tree1890e9b7be3fef3b37c501c326edc5f4ac4a76d9 /contrib/pgbench/Makefile
parent74b8fe1717d7eb6d627fd69fa73843000eb210df (diff)
downloadpostgresql-d9466046c076b023b55d448d3cce6980dac24865.tar.gz
Fix bogus makefiles ... these didn't build on platforms that are stickyREL7_1_BETA
about being given accurate references to referenced libraries ...
Diffstat (limited to 'contrib/pgbench/Makefile')
-rw-r--r--contrib/pgbench/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/contrib/pgbench/Makefile b/contrib/pgbench/Makefile
index bedb1d0de3..61f71e58f1 100644
--- a/contrib/pgbench/Makefile
+++ b/contrib/pgbench/Makefile
@@ -1,5 +1,5 @@
#
-# $Header: /cvsroot/pgsql/contrib/pgbench/Makefile,v 1.7 2000/10/20 21:03:26 petere Exp $
+# $Header: /cvsroot/pgsql/contrib/pgbench/Makefile,v 1.8 2000/12/04 01:32:19 tgl Exp $
#
subdir = contrib/pgbench
@@ -7,10 +7,14 @@ top_builddir = ../..
include $(top_builddir)/src/Makefile.global
override CPPFLAGS += -I$(libpq_srcdir)
-override LIBS += $(libpq)
+
+OBJS = pgbench.o
all: pgbench
+pgbench: $(OBJS) $(libpq_builddir)/libpq.a
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(libpq) $(LIBS) -o $@
+
install: all installdirs
$(INSTALL_PROGRAM) pgbench$(X) $(bindir)
$(INSTALL_DATA) README.pgbench $(docdir)/contrib
@@ -23,4 +27,11 @@ uninstall:
rm -f $(bindir)/pgbench$(X) $(docdir)/contrib/README.pgbench $(docdir)/contrib/README.pgbench_jis
clean distclean maintainer-clean:
- rm -f pgbench$(X)
+ rm -f pgbench$(X) $(OBJS)
+
+depend dep:
+ $(CC) -MM -MG $(CFLAGS) *.c > depend
+
+ifeq (depend,$(wildcard depend))
+include depend
+endif