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
|
|
|
#
|
2014-01-07 22:05:30 +01:00
|
|
|
# Portions Copyright (c) 1996-2014, 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
|
|
|
|
2011-06-27 14:40:55 +02:00
|
|
|
override CPPFLAGS := -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
|
|
|
|
2010-11-12 21:15:16 +01:00
|
|
|
all: pg_ctl
|
2004-05-27 05:37:55 +02:00
|
|
|
|
2010-11-12 21:15:16 +01:00
|
|
|
pg_ctl: $(OBJS) | submake-libpq submake-libpgport
|
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)
|