EXTENSION  = icu_ext
EXTVERSION = 1.8


PG_CONFIG = pg_config

DATA = $(wildcard sql/icu_*.sql)

MODULE_big = icu_ext
OBJS = icu_ext.o icu_break.o icu_num.o icu_spoof.o icu_transform.o \
	icu_search.o icu_normalize.o icu_date.o icu_timestamptz.o icu_interval.o
SHLIB_LINK = $(ICU_LIBS)
REGRESS   = tests-01 tests-datetime
EXTRA_CLEAN = expected/tests.out

all:


PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
override CFLAGS += -g  # added with PG16 built with meson. Not sure it should be kept.

dist:
	tar cjf $(EXTENSION)-$(EXTVERSION).tar.bz2 Makefile META.json icu_ext.control *.md *.c *.h sql/ expected/ META.json

.PHONY: dist