L4Re/departure

Annotated libfsclient/lib/src/Makefile

202:85396ddb3260
2021-09-20 Paul Boddie Introduced directory resource, provider and accessor objects. The opendir operation has been moved from the opener to the directory resource, and the opener resource and file paging coordinator now support the creation of directory-related objects.
paul@94 1
PKGDIR		?= ../..
paul@94 2
L4DIR		?= $(PKGDIR)/../../..
paul@94 3
paul@94 4
TARGET		= libfsclient.so libfsclient.a
paul@94 5
PC_FILENAME	= libfsclient
paul@94 6
paul@94 7
# Locations for interface input and generated output.
paul@94 8
paul@181 9
IDL_DIR		= $(PKGDIR)/../libsystypes/idl
paul@94 10
IDL_MK_DIR	= $(L4DIR)/idl4re/mk
paul@94 11
IDL_BUILD_DIR	= .
paul@94 12
IDL_EXPORT_DIR	= .
paul@94 13
paul@94 14
include $(IDL_MK_DIR)/idl.mk
paul@94 15
paul@94 16
# Individual interfaces.
paul@94 17
paul@202 18
CLIENT_INTERFACES_CC		= dataspace directory file filesystem flush \
paul@202 19
				  mapped_file notification opener \
paul@202 20
				  opener_context pipe pipe_opener
paul@94 21
paul@94 22
# Generated and plain source files.
paul@94 23
paul@94 24
CLIENT_INTERFACES_SRC_CC	= $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC))
paul@94 25
paul@124 26
PLAIN_SRC_CC			= client.cc file.cc notifier.cc
paul@94 27
paul@94 28
# Normal definitions.
paul@94 29
paul@94 30
SRC_CC				= \
paul@94 31
				$(CLIENT_INTERFACES_SRC_CC) \
paul@94 32
				$(PLAIN_SRC_CC)
paul@94 33
paul@94 34
REQUIRES_LIBS	= l4re_c-util libipc libstdc++ libsystypes
paul@94 35
paul@94 36
PRIVATE_INCDIR	= $(PKGDIR)/include/fsclient $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR)
paul@94 37
CONTRIB_INCDIR	= libfsclient
paul@94 38
paul@94 39
include $(L4DIR)/mk/lib.mk
paul@94 40
include $(IDL_MK_DIR)/interface_rules.mk
paul@94 41
paul@94 42
$(PLAIN_SRC_CC): $(CLIENT_INTERFACES_SRC_CC)