]> granicus.if.org Git - postgresql/blob - src/bin/pg_version/Makefile
Use new utils/version.c instead of backend/utils/init/magic.c.
[postgresql] / src / bin / pg_version / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile.inc--
4 #    Makefile for bin/pg_version
5 #
6 # Copyright (c) 1994, Regents of the University of California
7 #
8 #
9 # IDENTIFICATION
10 #    $Header: /cvsroot/pgsql/src/bin/pg_version/Attic/Makefile,v 1.2 1996/11/12 06:46:54 bryanh Exp $
11 #
12 #-------------------------------------------------------------------------
13
14 SRCDIR= ../..
15 include ../Makefile.global
16 include ../../Makefile.global
17
18 OBJS= pg_version.o ../../utils/version.o
19
20 all: pg_version
21
22 pg_version: submake $(OBJS)
23         $(CC) $(LDFLAGS) -o pg_version $(OBJS) $(LD_ADD)
24
25 .PHONY: submake
26 submake:
27         $(MAKE) -C ../../utils version.o
28
29 install: pg_version
30         $(INSTALL) $(INSTL_EXE_OPTS) pg_version $(DESTDIR)$(BINDIR)/pg_version
31
32 depend dep:
33         $(CC) -MM $(INCLUDE_OPT) *.c >depend
34
35 clean: 
36         rm -f pg_version pg_version.o
37
38 ifeq (depend,$(wildcard depend))
39 include depend
40 endif