mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
81 lines
2.0 KiB
Makefile
81 lines
2.0 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 = repmgr repmgrd
|
|
|
|
|
|
# When in development add -Werror
|
|
PG_CPPFLAGS = -std=gnu89 -I$(libpq_srcdir) -Wall -Wmissing-prototypes -Wmissing-declarations $(EXTRA_CFLAGS)
|
|
SHLIB_LINK = $(libpq)
|
|
|
|
HEADERS = $(wildcard *.h)
|
|
|
|
OBJS = \
|
|
repmgr.o
|
|
|
|
include Makefile.global
|
|
|
|
$(info Building against PostgreSQL $(MAJORVERSION))
|
|
|
|
REPMGR_CLIENT_OBJS = repmgr-client.o \
|
|
repmgr-action-primary.o repmgr-action-standby.o repmgr-action-bdr.o repmgr-action-cluster.o repmgr-action-node.o \
|
|
configfile.o log.o strutil.o dbutils.o dirutil.o compat.o controldata.o
|
|
REPMGRD_OBJS = repmgrd.o repmgrd-physical.o repmgrd-bdr.o configfile.o log.o dbutils.o strutil.o
|
|
|
|
$(REPMGR_CLIENT_OBJS): repmgr-client.h
|
|
|
|
repmgr: $(REPMGR_CLIENT_OBJS)
|
|
$(CC) $(CFLAGS) $(REPMGR_CLIENT_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
|
|
|
repmgrd: $(REPMGRD_OBJS)
|
|
$(CC) $(CFLAGS) $(REPMGRD_OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
|
|
|
$(REPMGR_CLIENT_OBJS): $(HEADERS)
|
|
$(REPMGRD_OBJS): $(HEADERS)
|
|
|
|
# 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 repmgr-action-primary.o
|
|
rm -f repmgr-action-standby.o
|
|
rm -f repmgr-action-bdr.o
|
|
rm -f repmgr-action-node.o
|
|
rm -f repmgr-action-cluster.o
|
|
rm -f repmgrd.o
|
|
rm -f repmgrd-physical.o
|
|
rm -f repmgrd-bdr.o
|
|
rm -f compat.o
|
|
rm -f configfile.o
|
|
rm -f controldata.o
|
|
rm -f dbutils.o
|
|
rm -f dirutil.o
|
|
rm -f log.o
|
|
rm -f strutil.o
|
|
|
|
maintainer-additional-clean: clean
|
|
rm -f configure
|
|
rm -f config.status config.log
|
|
rm -f Makefile
|
|
@rm -rf autom4te.cache/
|