@@ -16,6 +16,8 @@ OBJS = backup.o \
16
16
datapagemap.o\
17
17
parsexlog.o\
18
18
xlogreader.o\
19
+ streamutil.o\
20
+ receivelog.o\
19
21
pgut/pgut.o\
20
22
pgut/pgut-port.o
21
23
@@ -25,17 +27,7 @@ EXTRA_CLEAN = datapagemap.c datapagemap.h xlogreader.c
25
27
26
28
REGRESS = init option show delete backup restore
27
29
28
- # asciidoc and xmlto are present, so install the html documentation and man
29
- # pages as well. html is part of the vanilla documentation. Man pages need a
30
- # special handling at installation.
31
- ifneq ($(ASCIIDOC ) ,)
32
- ifneq ($(XMLTO ) ,)
33
- man_DOCS = doc/pg_arman.1
34
- DOCS += doc/pg_arman.html doc/README.html
35
- endif # XMLTO
36
- endif # ASCIIDOC
37
-
38
- all : docs datapagemap.h pg_arman
30
+ all : datapagemap.h receivelog.h streamutil.h pg_arman
39
31
ifdef $(USE_PGXS)
40
32
PG_CONFIG = pg_config
41
33
PGXS :=$(shell $(PG_CONFIG ) --pgxs)
@@ -55,11 +47,9 @@ top_builddir=../..
55
47
include $(top_builddir ) /src/Makefile.global
56
48
include $(top_srcdir ) /contrib/contrib-global.mk
57
49
endif
58
- PG_CPPFLAGS = -I$(libpq_srcdir )
50
+ PG_CPPFLAGS = -I$(libpq_srcdir ) ${PTHREAD_CFLAGS}
59
51
override CPPFLAGS := -DFRONTEND$(CPPFLAGS ) $(PG_CPPFLAGS )
60
- PG_LIBS =$(libpq_pgport )
61
-
62
-
52
+ PG_LIBS =$(libpq_pgport ) ${PTHREAD_CFLAGS}
63
53
64
54
envtest :
65
55
: top_srcdir=$(top_srcdir )
@@ -74,33 +64,14 @@ datapagemap.c: % : $(top_srcdir)/src/bin/pg_rewind/%
74
64
rm -f$@ && $(LN_S ) $< .
75
65
datapagemap.h :% :$(top_srcdir ) /src/bin/pg_rewind/%
76
66
rm -f&& $(LN_S ) $< .
77
-
78
- # Part related to documentation
79
- # Compile documentation as well is ASCIIDOC and XMLTO are defined
80
- ifneq ($(ASCIIDOC ) ,)
81
- ifneq ($(XMLTO ) ,)
82
- docs :
83
- $(MAKE ) -C doc/
84
-
85
- # Special handling for man pages, they need to be in a dedicated folder
86
- install : install-man
87
-
88
- install-man :
89
- $(MKDIR_P ) ' $(DESTDIR)$(mandir)/man1/'
90
- $(INSTALL_DATA ) $(man_DOCS ) ' $(DESTDIR)$(mandir)/man1/'
91
- else
92
- docs :
93
- @echo" No docs to build"
94
- endif # XMLTO
95
- else
96
- docs :
97
- @echo" No docs to build"
98
- endif # ASCIIDOC
99
-
100
- # Clean up documentation as well
101
- clean : clean-docs
102
- clean-docs :
103
- $(MAKE ) -C doc/ clean
67
+ receivelog.c :% :$(top_srcdir ) /src/bin/pg_basebackup/%
68
+ rm -f&& $(LN_S ) $< .
69
+ receivelog.h :% :$(top_srcdir ) /src/bin/pg_basebackup/%
70
+ rm -f&& $(LN_S ) $< .
71
+ streamutil.c :% :$(top_srcdir ) /src/bin/pg_basebackup/%
72
+ rm -f&& $(LN_S ) $< .
73
+ streamutil.h :% :$(top_srcdir ) /src/bin/pg_basebackup/%
74
+ rm -f&& $(LN_S ) $< .
104
75
105
76
# Disable make check
106
77
check :