<commit_before>#-------------------------------------------------------------------------
#
# Makefile for src/backend/gppc library
#
#
#-------------------------------------------------------------------------

# GPPC is ready to build against installed backend, so that we can try it
# against different backend releases without switching source tree.
# This means GPPC should build and work with older releases without
# source modified and we need to keep it identical between different
# backend release branches.
# We achieve to build with another backend release by PGXS. Everything
# GPPC needs (i.e. headers and makefiles) are installed along with pg_config.


subdir = src/backend/gppc
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

# Mac OS needs dynamic_lookup for undefined symbols when using -dynamiclib
ifeq ($(PORTNAME), darwin)
  override LINK.shared += -undefined dynamic_lookup
endif

# shared library parameters
NAME = gppc
SO_MAJOR_VERSION = 1
SO_MINOR_VERSION = 2

override CPPFLAGS := -I$(includedir_server) -I$(includedir_internal) $(CPPFLAGS)
OBJS = gppc.o

all: all-lib
include $(top_srcdir)/src/Makefile.shlib 	# Shared library stuff

override pkglibdir := $(libdir)

install: install-lib

installcheck: install
	$(MAKE) -C test $@

uninstall: uninstall-lib

clean distclean: clean-lib
	rm -f $(OBJS)
 
maintainer-clean: distclean<commit_msg>Fix gppc shared library build issue on OSX<commit_after>#-------------------------------------------------------------------------
#
# Makefile for src/backend/gppc library
#
#
#-------------------------------------------------------------------------

# GPPC is ready to build against installed backend, so that we can try it
# against different backend releases without switching source tree.
# This means GPPC should build and work with older releases without
# source modified and we need to keep it identical between different
# backend release branches.
# We achieve to build with another backend release by PGXS. Everything
# GPPC needs (i.e. headers and makefiles) are installed along with pg_config.


subdir = src/backend/gppc
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

# Mac OS needs dynamic_lookup for undefined symbols when using -dynamiclib
ifeq ($(PORTNAME), darwin)
  override SHLIB_LINK += -undefined dynamic_lookup
endif

# shared library parameters
NAME = gppc
SO_MAJOR_VERSION = 1
SO_MINOR_VERSION = 2

override CPPFLAGS := -I$(includedir_server) -I$(includedir_internal) $(CPPFLAGS)
OBJS = gppc.o

all: all-lib
include $(top_srcdir)/src/Makefile.shlib 	# Shared library stuff

install: install-lib

installcheck: install
	$(MAKE) -C test $@

uninstall: uninstall-lib

clean distclean: clean-lib
	rm -f $(OBJS)
 
maintainer-clean: distclean
{'fraction_non_alphanumeric': 0.1814908174288801, 'fraction_numerical': 0.0014404033129276198, 'mean_word_length': 2.7744565217391304, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5974860', 'n_tokens_mistral': 774, 'n_tokens_neox': 755, 'n_words': 283}