head	1.8;
access;
symbols
	REL2_0B:1.2.0.2
	REL2_0:1.2
	Release_2_0_0:1.1.1.1
	Release_1_0_3:1.1.1.1.0.2
	Release_2_0:1.1.1.1
	Release_1_0_2:1.1.1.1
	PG95-1_01:1.1.1.1
	PG95_DIST:1.1.1;
locks; strict;
comment	@# @;


1.8
date	2000.07.02.15.21.11;	author petere;	state dead;
branches;
next	1.7;

1.7
date	2000.06.27.00.31.29;	author petere;	state Exp;
branches;
next	1.6;

1.6
date	97.09.12.23.24.25;	author momjian;	state dead;
branches;
next	1.5;

1.5
date	97.04.26.05.05.43;	author scrappy;	state Exp;
branches;
next	1.4;

1.4
date	97.04.04.10.41.37;	author scrappy;	state Exp;
branches;
next	1.3;

1.3
date	97.02.06.02.31.52;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	96.11.12.06.46.54;	author bryanh;	state Exp;
branches;
next	1.1;

1.1
date	96.07.09.06.22.14;	author scrappy;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.07.09.06.22.14;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Version number now set in configure, available through Makefile.global
and config.h. Adjusted all referring code.

Scrapped pg_version and changed initdb accordingly. Integrated
src/utils/version.c into src/backend/utils/init/miscinit.c. Changed all
callers.

Set version number to `7.1devel'. (Non-numeric version suffixes now allowed.)
@
text
@#-------------------------------------------------------------------------
#
# Makefile for src/bin/pg_version
#
# Portions Copyright (c) 1996-2000, PostgreSQL, Inc
# Portions Copyright (c) 1994, Regents of the University of California
#
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_version/Makefile,v 1.7 2000/06/27 00:31:29 petere Exp $
#
#-------------------------------------------------------------------------

subdir = src/bin/pg_version
top_builddir = ../../..
include ../../Makefile.global

OBJS= pg_version.o $(top_builddir)/src/utils/version.o $(STRERROR2)

all: pg_version$(X)

pg_version$(X): $(OBJS)
	$(CC) $(CFLAGS) -o $@@ $^ $(LDFLAGS)

$(top_builddir)/src/utils/version.o: $(top_srcdir)/src/utils/version.c $(top_builddir)/src/include/version.h
	$(MAKE) -C $(top_builddir)/src/utils version.o

install: all installdirs
	$(INSTALL_PROGRAM) pg_version$(X) $(bindir)/pg_version$(X)

installdirs:
	$(mkinstalldirs) $(bindir)

uninstall:
	rm -f $(bindir)/pg_version$(X)

depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend

clean distclean maintainer-clean:
	rm -f pg_version$(X) pg_version.o

ifeq (depend,$(wildcard depend))
include depend
endif
@


1.7
log
@Makefile cleanup for bin and pl subtrees. They should now support
all the standard semantics. Also get rid of Makefile.in's on the
way and instead declare all variables in Makefile.global.
@
text
@d8 1
a8 1
# $Header$
@


1.6
log
@pg_version Makefile was not being processed.
@
text
@d3 1
a3 2
# Makefile.inc--
#    Makefile for bin/pg_version
d5 2
a6 1
# Copyright (c) 1994, Regents of the University of California
d8 1
a8 3
#
# IDENTIFICATION
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_version/Makefile,v 1.5 1997/04/26 05:05:43 scrappy Exp momjian $
d12 2
a13 1
SRCDIR= ../..
d16 3
a18 1
OBJS= pg_version.o ../../utils/version.o
d20 2
a21 1
CFLAGS+= -I$(SRCDIR)/include
d23 2
a24 1
all: pg_version
d26 2
a27 2
pg_version: submake $(OBJS)
	$(CC) -o pg_version $(OBJS) $(LDFLAGS)
d29 2
a30 3
.PHONY: submake
submake:
	$(MAKE) -C ../../utils version.o
d32 2
a33 2
install: pg_version
	$(INSTALL) $(INSTL_EXE_OPTS) pg_version $(DESTDIR)$(BINDIR)/pg_version
d36 1
a36 1
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
d38 2
a39 2
clean: 
	rm -f pg_version pg_version.o
@


1.5
log
@clean up the bin/*/Makefiles...up version.h to v6.1 instead of v6.0

Remove bin/Makefile.global since it wasn't actually *doing* anything
that Makefile.global hadn't already done
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/pg_version/Makefile,v 1.4 1997/04/04 10:41:37 scrappy Exp $
@


1.4
log
@This commit represents a clean compile with the new templates under
FreeBSD

The Makefile(s) have all been cleaned up such that there is a single
LDFLAGS vs LD_ADD or LDADD or LDFLAGS or LDFLAGS_BE.  The Makefile(s)
should be alot more straightforward then they were before...and
consistent
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/pg_version/Makefile,v 1.3 1997/02/06 02:31:52 momjian Exp $
a15 1
include ../Makefile.global
d18 2
@


1.3
log
@Include main Makefile.global first so variables are not over-written.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/pg_version/Makefile,v 1.2 1996/11/12 06:46:54 bryanh Exp $
d23 1
a23 1
	$(CC) $(LDFLAGS) -o pg_version $(OBJS) $(LD_ADD)
@


1.2
log
@Use new utils/version.c instead of backend/utils/init/magic.c.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/pg_dump/Makefile,v 1.6 1996/10/31 05:56:01 momjian Exp $
d15 1
a16 1
include ../../Makefile.global
@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/postgres95/src/bin/pg_version/Makefile,v 1.1.1.1 1996/07/09 05:32:36 scrappy Exp $
d14 7
a20 1
PROG=	pg_version
d22 6
a27 3
MKDIR=	../../mk
include $(MKDIR)/postgres.mk
include ../Makefile.global
d29 2
a30 2
VPATH:=$(VPATH):$(srcdir)/backend/utils/init
SRCS=	pg_version.c magic.c
d32 2
a33 1
CFLAGS+= -I$(srcdir)/backend/port/$(PORTNAME)
d35 2
a36 1
include $(MKDIR)/postgres.prog.mk
d38 3
@


1.1.1.1
log
@Postgres95 1.01 Distribution - Virgin Sources
@
text
@@
