mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix bogus makefiles ... these didn't build on platforms that are sticky
about being given accurate references to referenced libraries ...
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user