diff --git a/contrib/findoidjoins/Makefile b/contrib/findoidjoins/Makefile index 16bbc3e5272e2d63e0b57ed8290853fc1be03a38..ab1750e71bfae4c7774946df5f573f9b1716c847 100644 --- a/contrib/findoidjoins/Makefile +++ b/contrib/findoidjoins/Makefile @@ -1,5 +1,5 @@ # -# $Header: /cvsroot/pgsql/contrib/findoidjoins/Attic/Makefile,v 1.10 2000/10/20 21:03:06 petere Exp $ +# $Header: /cvsroot/pgsql/contrib/findoidjoins/Attic/Makefile,v 1.11 2000/12/04 01:32:18 tgl Exp $ # subdir = contrib/findoidjoins @@ -7,10 +7,14 @@ top_builddir = ../.. include $(top_builddir)/src/Makefile.global override CPPFLAGS += -I$(libpgeasy_srcdir) -I$(libpq_srcdir) -override LIBS += $(libpgeasy) + +OBJS = findoidjoins.o all: findoidjoins +findoidjoins: $(OBJS) $(libpgeasy_builddir)/libpgeasy.a $(libpq_builddir)/libpq.a + $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(libpgeasy) $(libpq) $(LIBS) -o $@ + install: all installdirs $(INSTALL_PROGRAM) findoidjoins$(X) $(bindir) $(INSTALL_SCRIPT) make_oidjoins_check $(bindir) @@ -23,4 +27,11 @@ uninstall: rm -f $(bindir)/findoidjoins$(X) $(bindir)/make_oidjoins_check $(docdir)/contrib/README.findoidjoins clean distclean maintainer-clean: - rm -f findoidjoins$(X) + rm -f findoidjoins$(X) $(OBJS) + +depend dep: + $(CC) -MM -MG $(CFLAGS) *.c > depend + +ifeq (depend,$(wildcard depend)) +include depend +endif diff --git a/contrib/pg_dumplo/Makefile b/contrib/pg_dumplo/Makefile index 2342ea20be5e099abe9f078570e6f090e87770eb..a3156945c3b308cd5a7ca692f183a2a0c0f7b4d7 100644 --- a/contrib/pg_dumplo/Makefile +++ b/contrib/pg_dumplo/Makefile @@ -1,14 +1,15 @@ # -# $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/Makefile,v 1.8 2000/11/30 20:36:09 petere Exp $ +# $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/Makefile,v 1.9 2000/12/04 01:32:18 tgl Exp $ # subdir = contrib/pg_dumplo top_builddir = ../.. include $(top_builddir)/src/Makefile.global -OBJS = main.o lo_export.o lo_import.o utils.o override CPPFLAGS += -I$(libpq_srcdir) +OBJS = main.o lo_export.o lo_import.o utils.o + all: pg_dumplo pg_dumplo: $(OBJS) $(libpq_builddir)/libpq.a @@ -25,7 +26,7 @@ uninstall: rm -f $(bindir)/pg_dumplo$(X) $(docdir)/contrib/README.pg_dumplo clean distclean maintainer-clean: - rm -f pg_dumplo $(OBJS) + rm -f pg_dumplo$(X) $(OBJS) depend dep: $(CC) -MM -MG $(CFLAGS) *.c > depend diff --git a/contrib/pgbench/Makefile b/contrib/pgbench/Makefile index bedb1d0de356ed009fca9c31dcc11ac259559686..61f71e58f179364b4ca5109e7668ebca119df29f 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 diff --git a/contrib/vacuumlo/Makefile b/contrib/vacuumlo/Makefile index b06568c0a1ddc29247398e6ebe5f9ff8220f999a..a61733ee586d07ec8ccb9128e2a78255d9865808 100644 --- a/contrib/vacuumlo/Makefile +++ b/contrib/vacuumlo/Makefile @@ -1,5 +1,5 @@ # -# $Header: /cvsroot/pgsql/contrib/vacuumlo/Makefile,v 1.8 2000/10/20 21:03:36 petere Exp $ +# $Header: /cvsroot/pgsql/contrib/vacuumlo/Makefile,v 1.9 2000/12/04 01:32:19 tgl Exp $ # subdir = contrib/vacuumlo @@ -7,10 +7,14 @@ top_builddir = ../.. include $(top_builddir)/src/Makefile.global override CPPFLAGS += -I$(libpq_srcdir) -override LIBS += $(libpq) + +OBJS = vacuumlo.o all: vacuumlo +vacuumlo: $(OBJS) $(libpq_builddir)/libpq.a + $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(libpq) $(LIBS) -o $@ + install: all installdirs $(INSTALL_PROGRAM) vacuumlo$(X) $(bindir) $(INSTALL_DATA) README.vacuumlo $(docdir)/contrib @@ -22,7 +26,7 @@ uninstall: rm -f $(bindir)/vacuumlo$(X) $(docdir)/contrib/README.vacuumlo clean distclean maintainer-clean: - rm -f vacuumlo$(X) + rm -f vacuumlo$(X) $(OBJS) depend dep: $(CC) -MM -MG $(CFLAGS) *.c > depend