2000-06-15 22:55:34 +04:00
|
|
|
#
|
2001-02-20 22:20:30 +03:00
|
|
|
# $Header: /cvsroot/pgsql/contrib/pgbench/Makefile,v 1.9 2001/02/20 19:20:27 petere Exp $
|
2000-06-15 22:55:34 +04:00
|
|
|
#
|
2000-01-15 15:38:09 +03:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
subdir = contrib/pgbench
|
|
|
|
top_builddir = ../..
|
2000-10-21 01:04:27 +04:00
|
|
|
include $(top_builddir)/src/Makefile.global
|
2000-01-15 15:38:09 +03:00
|
|
|
|
2001-02-20 22:20:30 +03:00
|
|
|
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
|
2000-12-04 04:32:19 +03:00
|
|
|
|
|
|
|
OBJS = pgbench.o
|
2000-01-15 15:38:09 +03:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
all: pgbench
|
2000-01-15 15:38:09 +03:00
|
|
|
|
2000-12-04 04:32:19 +03:00
|
|
|
pgbench: $(OBJS) $(libpq_builddir)/libpq.a
|
2001-02-20 22:20:30 +03:00
|
|
|
$(CC) $(CFLAGS) $(OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@
|
2000-12-04 04:32:19 +03:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
install: all installdirs
|
|
|
|
$(INSTALL_PROGRAM) pgbench$(X) $(bindir)
|
|
|
|
$(INSTALL_DATA) README.pgbench $(docdir)/contrib
|
|
|
|
$(INSTALL_DATA) README.pgbench_jis $(docdir)/contrib
|
2000-01-15 15:38:09 +03:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
installdirs:
|
|
|
|
$(mkinstalldirs) $(bindir) $(docdir)/contrib
|
2000-01-15 15:38:09 +03:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
uninstall:
|
|
|
|
rm -f $(bindir)/pgbench$(X) $(docdir)/contrib/README.pgbench $(docdir)/contrib/README.pgbench_jis
|
2000-01-15 15:38:09 +03:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
clean distclean maintainer-clean:
|
2000-12-04 04:32:19 +03:00
|
|
|
rm -f pgbench$(X) $(OBJS)
|
|
|
|
|
|
|
|
depend dep:
|
|
|
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|