#-------------------------------------------------------------------------
#
# Makefile.in--
#    Makefile for bin/pg_version
#
# Portions Copyright (c) 1996-2000, PostgreSQL, Inc
# Portions Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_version/Makefile.in,v 1.8 2000/05/11 17:46:35 momjian Exp $
#
#-------------------------------------------------------------------------

SRCDIR= ../..
include $(SRCDIR)/Makefile.global

CFLAGS+= -I$(SRCDIR)/include

OBJS= pg_version.o $(SRCDIR)/utils/version.o @STRERROR2@

all: pg_version

pg_version: $(OBJS)
	$(CC) $(CFLAGS) -o pg_version $(OBJS) $(LDFLAGS)

$(SRCDIR)/utils/version.o: $(SRCDIR)/utils/version.c $(SRCDIR)/include/version.h
	$(MAKE) -C $(SRCDIR)/utils version.o

install: pg_version
	$(INSTALL) $(INSTL_EXE_OPTS) pg_version$(X) $(BINDIR)/pg_version$(X)

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

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

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