~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/bin/initdb/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/initdb
 
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/initdb/Makefile,v 1.48.4.1 2005-03-25 18:18:39 momjian Exp $
 
9
#
 
10
#-------------------------------------------------------------------------
 
11
 
 
12
PGFILEDESC = "initdb - initialize a new database cluster"
 
13
subdir = src/bin/initdb
 
14
top_builddir = ../../..
 
15
include $(top_builddir)/src/Makefile.global
 
16
 
 
17
override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
 
18
 
 
19
OBJS=   initdb.o $(WIN32RES)
 
20
 
 
21
all: submake-libpq submake-libpgport initdb
 
22
 
 
23
initdb: $(OBJS) $(libpq_builddir)/libpq.a
 
24
        $(CC) $(CFLAGS) $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LIBS) -o $@$(X)
 
25
 
 
26
install: all installdirs
 
27
        $(INSTALL_PROGRAM) initdb$(X) $(DESTDIR)$(bindir)/initdb$(X)
 
28
 
 
29
installdirs:
 
30
        $(mkinstalldirs) $(DESTDIR)$(bindir)
 
31
 
 
32
uninstall:
 
33
        rm -f $(DESTDIR)$(bindir)/initdb$(X)
 
34
 
 
35
clean distclean maintainer-clean:
 
36
        rm -f initdb$(X) $(OBJS)
 
37
 
 
38
 
 
39
# ensure that changes in datadir propagate into object file
 
40
initdb.o: initdb.c $(top_builddir)/src/Makefile.global