L4Re/departure

Annotated libfsclient/lib/src/Makefile

181:49d8e9637cdb
2021-08-25 Paul Boddie Introduced various external packages into this distribution. Some small changes were made to Control files upon discovering build issues, and libext2fs/lib/Makefile was adjusted to enforce build ordering.
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@144 18
CLIENT_INTERFACES_CC		= dataspace file filesystem flush mapped_file notification opener opener_context pipe pipe_opener
paul@94 19
paul@94 20
# Generated and plain source files.
paul@94 21
paul@94 22
CLIENT_INTERFACES_SRC_CC	= $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC))
paul@94 23
paul@124 24
PLAIN_SRC_CC			= client.cc file.cc notifier.cc
paul@94 25
paul@94 26
# Normal definitions.
paul@94 27
paul@94 28
SRC_CC				= \
paul@94 29
				$(CLIENT_INTERFACES_SRC_CC) \
paul@94 30
				$(PLAIN_SRC_CC)
paul@94 31
paul@94 32
REQUIRES_LIBS	= l4re_c-util libipc libstdc++ libsystypes
paul@94 33
paul@94 34
PRIVATE_INCDIR	= $(PKGDIR)/include/fsclient $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR)
paul@94 35
CONTRIB_INCDIR	= libfsclient
paul@94 36
paul@94 37
include $(L4DIR)/mk/lib.mk
paul@94 38
include $(IDL_MK_DIR)/interface_rules.mk
paul@94 39
paul@94 40
$(PLAIN_SRC_CC): $(CLIENT_INTERFACES_SRC_CC)