]> granicus.if.org Git - postgresql/blob - contrib/pg_xlogdump/Makefile
Update copyright for 2014
[postgresql] / contrib / pg_xlogdump / Makefile
1 # contrib/pg_xlogdump/Makefile
2
3 PGFILEDESC = "pg_xlogdump"
4 PGAPPICON=win32
5
6 PROGRAM = pg_xlogdump
7 OBJS = pg_xlogdump.o compat.o xlogreader.o rmgrdesc.o \
8         $(RMGRDESCOBJS) $(WIN32RES)
9
10 RMGRDESCSOURCES = $(notdir $(wildcard $(top_srcdir)/src/backend/access/rmgrdesc/*desc.c))
11 RMGRDESCOBJS = $(patsubst %.c,%.o,$(RMGRDESCSOURCES))
12
13 EXTRA_CLEAN = $(RMGRDESCSOURCES) xlogreader.c
14
15 ifdef USE_PGXS
16 $(error "pg_xlogdump cannot be built with PGXS")
17 endif
18
19 subdir = contrib/pg_xlogdump
20 top_builddir = ../..
21 include $(top_builddir)/src/Makefile.global
22 include $(top_srcdir)/contrib/contrib-global.mk
23
24
25 override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
26
27 xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/%
28         rm -f $@ && $(LN_S) $< .
29
30 $(RMGRDESCSOURCES): % : $(top_srcdir)/src/backend/access/rmgrdesc/%
31         rm -f $@ && $(LN_S) $< .