diff options
| author | Bryan Henderson <bryanh@giraffe.netgate.net> | 1996-11-11 13:41:36 +0000 |
|---|---|---|
| committer | Bryan Henderson <bryanh@giraffe.netgate.net> | 1996-11-11 13:41:36 +0000 |
| commit | 6f708e42d1f80d4905ee75358dbd47cd9753251f (patch) | |
| tree | 5697f79f9918d2cf32286dcfbb3701b46ad60eaa /src/bin/pg_dump/Makefile | |
| parent | a7511908e17788a81f15312263c82c39d08796ce (diff) | |
| download | postgresql-6f708e42d1f80d4905ee75358dbd47cd9753251f.tar.gz | |
Makefile simplification: the "bin" chapter
Diffstat (limited to 'src/bin/pg_dump/Makefile')
| -rw-r--r-- | src/bin/pg_dump/Makefile | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/src/bin/pg_dump/Makefile b/src/bin/pg_dump/Makefile index b4847d4274..723920997a 100644 --- a/src/bin/pg_dump/Makefile +++ b/src/bin/pg_dump/Makefile @@ -7,19 +7,34 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.6 1996/10/31 05:56:01 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.7 1996/11/11 13:40:46 bryanh Exp $ # #------------------------------------------------------------------------- -PROG= pg_dump - -MKDIR= ../../mk -include $(MKDIR)/postgres.mk +SRCDIR= ../.. include ../Makefile.global +include ../../Makefile.global + +OBJS= pg_dump.o common.o + +all: submake pg_dump + +pg_dump: $(OBJS) $(LIBPQDIR)/libpq.a + $(CC) $(LDFLAGS) -o pg_dump -L$(LIBPQDIR) $(OBJS) -lpq $(LD_ADD) + +.PHONY: submake +submake: + $(MAKE) -C $(LIBPQDIR) libpq.a -CFLAGS+= -I../../backend/port/$(PORTNAME) +install: + $(INSTALL) $(INSTL_EXE_OPTS) pg_dump $(DESTDIR)$(BINDIR)/pg_dump -SRCS= pg_dump.c common.c +depend dep: + $(CC) -MM $(INCLUDE_OPT) *.c >depend -include $(MKDIR)/postgres.prog.mk +clean: + rm -f pg_dump $(OBJS) +ifeq (depend,$(wildcard depend)) +include depend +endif |
