Commit 6b9ecd83 authored by Marc G. Fournier's avatar Marc G. Fournier

Here's a small makefile patch that corrects the following bug: The makefiles

don't indicate that the libpq.a library is a dependency of all the /bin
programs.  So if the library changes, the /bin programs don't get remade.

Submitted by: Bryan Henderson <bryanh@giraffe.netgate.net>
parent 80d0c4ff
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/Attic/Makefile.global,v 1.6 1996/07/25 01:11:15 scrappy Exp $ # $Header: /cvsroot/pgsql/src/bin/Attic/Makefile.global,v 1.7 1996/08/14 04:54:24 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -20,7 +20,8 @@ LIBPQ:= -L$(srcdir)/libpq/$(objdir) -lpq ...@@ -20,7 +20,8 @@ LIBPQ:= -L$(srcdir)/libpq/$(objdir) -lpq
LD_ADD+= $(LIBPQ) LD_ADD+= $(LIBPQ)
DPADD+= $(LIBPQ) DPADD+= $(LIBPQ)
# LIB_DEP is the list of dependencies on libraries for the link.
LIB_DEP+= $(srcdir)/libpq/$(objdir)/libpq.a
# #
# And where libpq goes, so goes the authentication stuff... # And where libpq goes, so goes the authentication stuff...
...@@ -29,3 +30,4 @@ ifdef KRBVERS ...@@ -29,3 +30,4 @@ ifdef KRBVERS
LD_ADD+= $(KRBLIBS) LD_ADD+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS) CFLAGS+= $(KRBFLAGS)
endif endif
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.prog.mk,v 1.2 1996/08/13 07:48:33 scrappy Exp $ # $Header: /cvsroot/pgsql/src/mk/Attic/postgres.prog.mk,v 1.3 1996/08/14 04:54:45 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
PROGOBJS:= $(SRCS:%.c=%.o) PROGOBJS:= $(SRCS:%.c=%.o)
$(PROG): $(addprefix $(objdir)/,$(PROGOBJS)) $(PROG): $(addprefix $(objdir)/,$(PROGOBJS)) $(LIB_DEP)
$(CC) $(LDFLAGS) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(PROGOBJS)) $(LD_ADD) $(CC) $(LDFLAGS) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(PROGOBJS)) $(LD_ADD)
CLEANFILES+= $(PROGOBJS) $(PROG) CLEANFILES+= $(PROGOBJS) $(PROG)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment