~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/bin/pg_ctl/Makefile

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

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-2005, PostgreSQL Global Development Group
 
6
# Portions Copyright (c) 1994, Regents of the University of California
 
7
#
 
8
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.19.4.1 2005-03-25 18:18:40 momjian Exp $
 
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 := -DFRONTEND -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