MODULE_big = pg_show_plans
OBJS = pg_show_plans.o

EXTENSION = pg_show_plans
DATA = pg_show_plans--1.0--1.1.sql \
       pg_show_plans--1.1--2.0.sql \
       pg_show_plans--2.0--2.1.sql \
       pg_show_plans--2.1.sql
REGRESS = pg_show_plans formats
DOCS = pg_show_plans.md

# Fix GCC compilation warning against 16:
# 	cc1: warning: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Wformat-security]
PG_CFLAGS = -Wformat

USE_PGXS = 1
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/pg_show_plans
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
