mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
59 lines
1.3 KiB
Makefile
59 lines
1.3 KiB
Makefile
# -*-makefile-*-
|
|
# Makefile.in
|
|
# @configure_input@
|
|
|
|
repmgr_subdir = .
|
|
repmgr_top_builddir = .
|
|
|
|
MODULE_big = repmgr
|
|
|
|
EXTENSION = repmgr
|
|
|
|
DATA = repmgr--4.0.sql
|
|
|
|
# Hacky workaround to install the binaries
|
|
SCRIPTS_built = repmgr4 repmgrd4
|
|
|
|
|
|
# When in development add -Werror
|
|
PG_CPPFLAGS = -std=gnu89 -I$(libpq_srcdir) -Wall -Wmissing-prototypes -Wmissing-declarations $(EXTRA_CFLAGS)
|
|
SHLIB_LINK = $(libpq)
|
|
|
|
OBJS = \
|
|
repmgr.o
|
|
|
|
include Makefile.global
|
|
|
|
$(info Building against PostgreSQL $(MAJORVERSION))
|
|
|
|
REPMGR_CLIENT_OBJS = repmgr-client.o config.o
|
|
REPMGRD_OBJS = repmgrd.o
|
|
|
|
repmgr4: $(REPMGR_CLIENT_OBJS)
|
|
$(CC) $(CFLAGS) $(REPMGR_CLIENT_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
|
|
|
repmgrd4: $(REPMGRD_OBJS)
|
|
$(CC) $(CFLAGS) $(REPMGRD_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
|
|
|
|
|
# Ensure Makefiles are up-to-date (should we move this to Makefile.global?)
|
|
Makefile: Makefile.in config.status configure
|
|
./config.status $@
|
|
|
|
Makefile.global: Makefile.global.in config.status configure
|
|
./config.status $@
|
|
|
|
clean: additional-clean
|
|
|
|
maintainer-clean: additional-maintainer-clean
|
|
|
|
additional-clean:
|
|
rm -f repmgr-client.o
|
|
rm -f repmgrd.o
|
|
|
|
maintainer-additional-clean: clean
|
|
rm -f configure
|
|
rm -f config.status config.log
|
|
rm -f Makefile
|
|
@rm -rf autom4te.cache/
|