# Oracle Linux DTrace.
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.

BUILDLIBS += libport
LIBS += libport

libport_TARGET = libport
libport_DIR := $(current-dir)
libport_SOURCES = gmatch.c linux_version_code.c strlcat.c strlcpy.c p_online.c time.c daemonize.c systemd_notify.c
ifndef HAVE_CLOSE_RANGE
libport_SOURCES += close_range.c
endif
ifndef HAVE_GETTID
libport_SOURCES += gettid.c
endif
libport_LIBSOURCES := libport
libport_CPPFLAGS := -Ilibdtrace
