~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to src/bin/pg_basebackup/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#-------------------------------------------------------------------------
 
2
#
 
3
# Makefile for src/bin/pg_basebackup
 
4
#
 
5
# Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
 
6
# Portions Copyright (c) 1994, Regents of the University of California
 
7
#
 
8
# src/bin/pg_basebackup/Makefile
 
9
#
 
10
#-------------------------------------------------------------------------
 
11
 
 
12
PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL instance"
 
13
PGAPPICON=win32
 
14
 
 
15
subdir = src/bin/pg_basebackup
 
16
top_builddir = ../../..
 
17
include $(top_builddir)/src/Makefile.global
 
18
 
 
19
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
 
20
 
 
21
OBJS=   pg_basebackup.o $(WIN32RES)
 
22
 
 
23
all: pg_basebackup
 
24
 
 
25
pg_basebackup: $(OBJS) | submake-libpq submake-libpgport
 
26
        $(CC) $(CFLAGS) $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
 
27
 
 
28
install: all installdirs
 
29
        $(INSTALL_PROGRAM) pg_basebackup$(X) '$(DESTDIR)$(bindir)/pg_basebackup$(X)'
 
30
 
 
31
installdirs:
 
32
        $(MKDIR_P) '$(DESTDIR)$(bindir)'
 
33
 
 
34
uninstall:
 
35
        rm -f '$(DESTDIR)$(bindir)/pg_basebackup$(X)'
 
36
 
 
37
clean distclean maintainer-clean:
 
38
        rm -f pg_basebackup$(X) $(OBJS)