L4Re/departure

Annotated libfsclient/lib/src/Makefile

94:b6dab1e89e3c
2021-04-15 Paul Boddie Reorganised into a collection of packages for each area of functionality.
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@94 9
IDL_DIR		= $(L4DIR)/pkg/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@94 18
CLIENT_INTERFACES_CC		= dataspace file mapped_file 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@94 24
PLAIN_SRC_CC			= client.cc file.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)