aboutsummaryrefslogtreecommitdiff
path: root/src/mk/postgres.prog.mk
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-07-09 06:22:35 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-07-09 06:22:35 +0000
commitd31084e9d1118b25fd16580d9d8c2924b5740dff (patch)
tree3179e66307d54df9c7b966543550e601eb55e668 /src/mk/postgres.prog.mk
downloadpostgresql-PG95-1_01.tar.gz
postgresql-PG95-1_01.zip
Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01
Diffstat (limited to 'src/mk/postgres.prog.mk')
-rw-r--r--src/mk/postgres.prog.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mk/postgres.prog.mk b/src/mk/postgres.prog.mk
new file mode 100644
index 00000000000..b45f4783c3e
--- /dev/null
+++ b/src/mk/postgres.prog.mk
@@ -0,0 +1,26 @@
+#-------------------------------------------------------------------------
+#
+# 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.1.1.1 1996/07/09 06:22:19 scrappy Exp $
+#
+#-------------------------------------------------------------------------
+
+PROGOBJS:= $(SRCS:%.c=%.o)
+
+$(PROG): $(addprefix $(objdir)/,$(PROGOBJS))
+ $(CC) $(CDEBUG) -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(PROGOBJS)) $(LD_ADD)
+
+CLEANFILES+= $(PROGOBJS) $(PROG)
+
+install:: localobj $(PROG)
+ $(INSTALL) $(INSTL_EXE_OPTS) $(objdir)/$(PROG) $(DESTDIR)$(BINDIR)/$(PROG)
+