mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
![]()
9 years ago
|
# src/bin/pg_waldump/Makefile
|
||
![]()
13 years ago
|
|
||
![]()
9 years ago
|
PGFILEDESC = "pg_waldump - decode and display WAL"
|
||
![]()
13 years ago
|
PGAPPICON=win32
|
||
|
|
||
![]()
9 years ago
|
subdir = src/bin/pg_waldump
|
||
![]()
11 years ago
|
top_builddir = ../../..
|
||
|
include $(top_builddir)/src/Makefile.global
|
||
|
|
||
![]()
9 years ago
|
OBJS = pg_waldump.o compat.o xlogreader.o rmgrdesc.o \
|
||
![]()
13 years ago
|
$(RMGRDESCOBJS) $(WIN32RES)
|
||
|
|
||
![]()
11 years ago
|
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
|
||
|
|
||
![]()
10 years ago
|
RMGRDESCSOURCES = $(sort $(notdir $(wildcard $(top_srcdir)/src/backend/access/rmgrdesc/*desc.c)))
|
||
![]()
13 years ago
|
RMGRDESCOBJS = $(patsubst %.c,%.o,$(RMGRDESCSOURCES))
|
||
|
|
||
![]()
12 years ago
|
|
||
![]()
9 years ago
|
all: pg_waldump
|
||
![]()
13 years ago
|
|
||
![]()
9 years ago
|
pg_waldump: $(OBJS) | submake-libpgport
|
||
![]()
11 years ago
|
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
||
![]()
13 years ago
|
|
||
![]()
13 years ago
|
xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/%
|
||
![]()
13 years ago
|
rm -f $@ && $(LN_S) $< .
|
||
|
|
||
|
$(RMGRDESCSOURCES): % : $(top_srcdir)/src/backend/access/rmgrdesc/%
|
||
|
rm -f $@ && $(LN_S) $< .
|
||
![]()
11 years ago
|
|
||
|
install: all installdirs
|
||
![]()
9 years ago
|
$(INSTALL_PROGRAM) pg_waldump$(X) '$(DESTDIR)$(bindir)/pg_waldump$(X)'
|
||
![]()
11 years ago
|
|
||
|
installdirs:
|
||
|
$(MKDIR_P) '$(DESTDIR)$(bindir)'
|
||
|
|
||
|
uninstall:
|
||
![]()
9 years ago
|
rm -f '$(DESTDIR)$(bindir)/pg_waldump$(X)'
|
||
![]()
11 years ago
|
|
||
|
clean distclean maintainer-clean:
|
||
![]()
9 years ago
|
rm -f pg_waldump$(X) $(OBJS) $(RMGRDESCSOURCES) xlogreader.c
|