1999-12-06 08:23:41 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
2000-06-27 02:32:06 +02:00
|
|
|
# Makefile for src/bin/pg_ctl
|
1999-12-06 08:23:41 +01:00
|
|
|
#
|
2010-01-02 17:58:17 +01:00
|
|
|
# Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
2004-05-27 05:37:55 +02:00
|
|
|
# Portions Copyright (c) 1994, Regents of the University of California
|
1999-12-06 08:23:41 +01:00
|
|
|
#
|
2010-09-20 22:08:53 +02:00
|
|
|
# src/bin/pg_ctl/Makefile
|
1999-12-06 08:23:41 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2004-10-05 21:30:25 +02:00
|
|
|
PGFILEDESC = "pg_ctl - starts/stops/restarts the PostgreSQL server"
|
2010-05-12 13:33:10 +02:00
|
|
|
PGAPPICON=win32
|
|
|
|
|
2000-06-27 02:32:06 +02:00
|
|
|
subdir = src/bin/pg_ctl
|
|
|
|
top_builddir = ../../..
|
2000-08-31 18:12:35 +02:00
|
|
|
include $(top_builddir)/src/Makefile.global
|
1999-12-06 08:23:41 +01:00
|
|
|
|
2007-09-27 21:53:44 +02:00
|
|
|
override CPPFLAGS := -DDEF_PGPORT=$(DEF_PGPORT) -I$(libpq_srcdir) $(CPPFLAGS)
|
1999-12-06 08:23:41 +01:00
|
|
|
|
2004-10-05 21:30:25 +02:00
|
|
|
OBJS= pg_ctl.o $(WIN32RES)
|
2004-05-27 05:37:55 +02:00
|
|
|
|
|
|
|
all: submake-libpq submake-libpgport pg_ctl
|
|
|
|
|
|
|
|
pg_ctl: $(OBJS) $(libpq_builddir)/libpq.a
|
2010-07-05 20:54:38 +02:00
|
|
|
$(CC) $(CFLAGS) $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
2004-05-27 05:37:55 +02:00
|
|
|
|
2000-06-27 02:32:06 +02:00
|
|
|
install: all installdirs
|
2005-12-09 22:19:36 +01:00
|
|
|
$(INSTALL_PROGRAM) pg_ctl$(X) '$(DESTDIR)$(bindir)/pg_ctl$(X)'
|
1999-12-06 08:23:41 +01:00
|
|
|
|
2000-06-27 02:32:06 +02:00
|
|
|
installdirs:
|
2009-08-27 00:24:44 +02:00
|
|
|
$(MKDIR_P) '$(DESTDIR)$(bindir)'
|
1999-12-06 08:23:41 +01:00
|
|
|
|
2000-06-27 02:32:06 +02:00
|
|
|
uninstall:
|
2005-12-09 22:19:36 +01:00
|
|
|
rm -f '$(DESTDIR)$(bindir)/pg_ctl$(X)'
|
2000-06-27 02:32:06 +02:00
|
|
|
|
|
|
|
clean distclean maintainer-clean:
|
2004-10-04 15:43:59 +02:00
|
|
|
rm -f pg_ctl$(X) $(OBJS)
|
2004-05-27 05:37:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
# ensure that changes in DEF_PGPORT propagate into object file
|
|
|
|
pg_ctl.o: pg_ctl.c $(top_builddir)/src/Makefile.global
|