~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-security

« back to all changes in this revision

Viewing changes to src/bin/pg_ctl/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#-------------------------------------------------------------------------
 
2
#
 
3
# Makefile for src/bin/pg_ctl
 
4
#
 
5
# Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
 
6
# Portions Copyright (c) 1994, Regents of the University of California
 
7
#
 
8
# $PostgreSQL$
 
9
#
 
10
#-------------------------------------------------------------------------
 
11
 
 
12
PGFILEDESC = "pg_ctl - starts/stops/restarts the PostgreSQL server"
 
13
subdir = src/bin/pg_ctl
 
14
top_builddir = ../../..
 
15
include $(top_builddir)/src/Makefile.global
 
16
 
 
17
override CPPFLAGS := -DDEF_PGPORT=$(DEF_PGPORT) -I$(libpq_srcdir) $(CPPFLAGS)
 
18
 
 
19
OBJS=   pg_ctl.o $(WIN32RES)
 
20
 
 
21
all: submake-libpq submake-libpgport pg_ctl
 
22
 
 
23
pg_ctl: $(OBJS) $(libpq_builddir)/libpq.a
 
24
        $(CC) $(CFLAGS) $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LIBS) -o $@$(X)
 
25
 
 
26
install: all installdirs
 
27
        $(INSTALL_PROGRAM) pg_ctl$(X) '$(DESTDIR)$(bindir)/pg_ctl$(X)'
 
28
 
 
29
installdirs:
 
30
        $(mkinstalldirs) '$(DESTDIR)$(bindir)'
 
31
 
 
32
uninstall:
 
33
        rm -f '$(DESTDIR)$(bindir)/pg_ctl$(X)'
 
34
 
 
35
clean distclean maintainer-clean:
 
36
        rm -f pg_ctl$(X) $(OBJS)
 
37
 
 
38
 
 
39
# ensure that changes in DEF_PGPORT propagate into object file
 
40
pg_ctl.o: pg_ctl.c $(top_builddir)/src/Makefile.global