mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 00:01:17 +02:00
41 lines
901 B
Makefile
41 lines
901 B
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile.inc--
|
|
# Makefile for bin/pg_version
|
|
#
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
#
|
|
# IDENTIFICATION
|
|
# $Header: /cvsroot/pgsql/src/bin/pg_version/Attic/Makefile,v 1.3 1997/02/06 02:31:52 momjian Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
SRCDIR= ../..
|
|
include ../../Makefile.global
|
|
include ../Makefile.global
|
|
|
|
OBJS= pg_version.o ../../utils/version.o
|
|
|
|
all: pg_version
|
|
|
|
pg_version: submake $(OBJS)
|
|
$(CC) $(LDFLAGS) -o pg_version $(OBJS) $(LD_ADD)
|
|
|
|
.PHONY: submake
|
|
submake:
|
|
$(MAKE) -C ../../utils version.o
|
|
|
|
install: pg_version
|
|
$(INSTALL) $(INSTL_EXE_OPTS) pg_version $(DESTDIR)$(BINDIR)/pg_version
|
|
|
|
depend dep:
|
|
$(CC) -MM $(INCLUDE_OPT) *.c >depend
|
|
|
|
clean:
|
|
rm -f pg_version pg_version.o
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
include depend
|
|
endif
|