L4Re/departure

Annotated libfsclient/lib/src/Makefile

531:79bb98c3403b
19 months ago Paul Boddie Moved notifier support into its own library.
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@531 19
				  mapped_file opener opener_context \
paul@531 20
				  pipe pipe_opener process_creator_context
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@531 26
PLAIN_SRC_CC			= client.cc file.cc process.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@531 34
REQUIRES_LIBS	= l4re_c-util libipc libstdc++ libsystypes libmem libnotifier
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)