1 #-------------------------------------------------------------------------
3 # Makefile for src/bin/pg_controldata
5 # Copyright (c) 1998-2008, PostgreSQL Global Development Group
9 #-------------------------------------------------------------------------
11 PGFILEDESC
= "pg_controldata - reads the data from pg_control"
12 subdir
= src
/bin
/pg_controldata
13 top_builddir
= ..
/..
/..
14 include $(top_builddir
)/src
/Makefile.global
16 OBJS
= pg_controldata.o pg_crc.o
$(WIN32RES
)
18 all: submake-libpgport pg_controldata
20 pg_controldata
: $(OBJS
)
21 $(CC
) $(CFLAGS
) $^
$(LDFLAGS
) $(LIBS
) -o
$@
$(X
)
23 pg_crc.c
: $(top_srcdir
)/src
/backend
/utils
/hash
/pg_crc.c
24 rm -f
$@
&& $(LN_S
) $< .
26 install: all installdirs
27 $(INSTALL_PROGRAM
) pg_controldata
$(X
) '$(DESTDIR)$(bindir)/pg_controldata$(X)'
30 $(mkinstalldirs
) '$(DESTDIR)$(bindir)'
33 rm -f
'$(DESTDIR)$(bindir)/pg_controldata$(X)'
35 clean distclean maintainer-clean
:
36 rm -f pg_controldata
$(X
) $(OBJS
) pg_crc.c