[LIBRARY::LIBSAMBA-UTIL]
PUBLIC_DEPENDENCIES = \
		LIBTALLOC LIBCRYPTO \
		SOCKET_WRAPPER LIBREPLACE_NETWORK \
		CHARSET EXECINFO UID_WRAPPER

LIBSAMBA-UTIL_VERSION = 0.0.1
LIBSAMBA-UTIL_SOVERSION = 0

LIBSAMBA-UTIL_OBJ_FILES = $(addprefix $(libutilsrcdir)/, \
		xfile.o \
		debug.o \
		fault.o \
		signal.o \
		system.o \
		time.o \
		genrand.o \
		dprintf.o \
		util_str.o \
		rfc1738.o \
		substitute.o \
		util_strlist.o \
		util_file.o \
		data_blob.o \
		util.o \
		blocking.o \
		util_net.o \
		fsusage.o \
		ms_fnmatch.o \
		mutex.o \
		idtree.o \
		become_daemon.o \
		rbtree.o \
		talloc_stack.o \
		smb_threads.o \
		params.o \
		parmlist.o \
		util_id.o)

PUBLIC_HEADERS += $(addprefix $(libutilsrcdir)/, util.h \
				 dlinklist.h \
				 attr.h \
				 byteorder.h \
				 data_blob.h \
				 debug.h \
				 memory.h \
				 mutex.h \
				 safe_string.h \
				 time.h \
				 util_ldb.h \
				 talloc_stack.h \
				 tevent_ntstatus.h \
				 tevent_unix.h	\
				 xfile.h)

[SUBSYSTEM::ASN1_UTIL]

ASN1_UTIL_OBJ_FILES = $(libutilsrcdir)/asn1.o

[SUBSYSTEM::UNIX_PRIVS]
PRIVATE_DEPENDENCIES = UID_WRAPPER

UNIX_PRIVS_OBJ_FILES = $(libutilsrcdir)/unix_privs.o

$(eval $(call proto_header_template,$(libutilsrcdir)/unix_privs.h,$(UNIX_PRIVS_OBJ_FILES:.o=.c)))

################################################
# Start SUBSYSTEM WRAP_XATTR
[SUBSYSTEM::WRAP_XATTR]
PUBLIC_DEPENDENCIES = XATTR
#
# End SUBSYSTEM WRAP_XATTR
################################################

WRAP_XATTR_OBJ_FILES = $(libutilsrcdir)/wrap_xattr.o

[SUBSYSTEM::UTIL_TDB]
PUBLIC_DEPENDENCIES = LIBTDB

UTIL_TDB_OBJ_FILES = $(libutilsrcdir)/util_tdb.o

[SUBSYSTEM::UTIL_TEVENT]
PUBLIC_DEPENDENCIES = LIBTEVENT

UTIL_TEVENT_OBJ_FILES = $(addprefix $(libutilsrcdir)/, \
			tevent_unix.o \
			tevent_ntstatus.o)

[SUBSYSTEM::UTIL_LDB]
PUBLIC_DEPENDENCIES = LIBLDB

UTIL_LDB_OBJ_FILES = $(libutilsrcdir)/util_ldb.o

[SUBSYSTEM::UTIL_RUNCMD]
PUBLIC_DEPENDENCIES = LIBTEVENT

UTIL_RUNCMD_OBJ_FILES = $(libutilsrcdir)/util_runcmd.o