mirror of
https://github.com/postgres/postgres.git
synced 2026-03-02 13:24:01 -05:00
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>
26 lines
872 B
Makefile
26 lines
872 B
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# postgres.prog.mk--
|
|
# rules for building binaries. To use the rules, set the following
|
|
# variables:
|
|
# PROG - name of the program (eg. PROG=monitor for monitor)
|
|
# postgres.mk should be included before this file.
|
|
#
|
|
# Copyright (c) 1994-5, Regents of the University of California
|
|
#
|
|
#
|
|
# IDENTIFICATION
|
|
# $Header: /cvsroot/pgsql/src/mk/Attic/postgres.prog.mk,v 1.3 1996/08/14 04:54:45 scrappy Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
PROGOBJS:= $(SRCS:%.c=%.o)
|
|
|
|
$(PROG): $(addprefix $(objdir)/,$(PROGOBJS)) $(LIB_DEP)
|
|
$(CC) $(LDFLAGS) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(PROGOBJS)) $(LD_ADD)
|
|
|
|
CLEANFILES+= $(PROGOBJS) $(PROG)
|
|
|
|
install:: localobj $(PROG)
|
|
$(INSTALL) $(INSTL_EXE_OPTS) $(objdir)/$(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
|
|
|