aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_version/Makefile.in
blob: 38d67a5e1c50cdccae87ed581ed05a7c23a4c49c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#-------------------------------------------------------------------------
#
# 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: /cvsroot/pgsql/src/bin/pg_version/Attic/Makefile.in,v 1.9 2000/05/29 05:45:46 tgl Exp $
#
#-------------------------------------------------------------------------

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

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