1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/libfsserver/lib/Makefile Thu Apr 15 23:15:17 2021 +0200
1.3 @@ -0,0 +1,80 @@
1.4 +PKGDIR ?= ..
1.5 +L4DIR ?= $(PKGDIR)/../../..
1.6 +
1.7 +TARGET = libfsserver.so libfsserver.a
1.8 +PC_FILENAME = libfsserver
1.9 +
1.10 +# Locations for interface input and generated output.
1.11 +
1.12 +IDL_DIR = $(L4DIR)/pkg/libsystypes/idl
1.13 +IDL_MK_DIR = $(L4DIR)/idl4re/mk
1.14 +IDL_BUILD_DIR = .
1.15 +IDL_EXPORT_DIR = $(OBJ_BASE)/include/contrib/$(CONTRIB_INCDIR)/fsserver
1.16 +
1.17 +include $(IDL_MK_DIR)/idl.mk
1.18 +
1.19 +# Compound interfaces.
1.20 +
1.21 +mapped_file_object_NAME = MappedFileObject
1.22 +mapped_file_object_INTERFACES = dataspace file mapped_file
1.23 +
1.24 +opener_context_object_NAME = OpenerContextObject
1.25 +opener_context_object_INTERFACES = dataspace opener_context
1.26 +
1.27 +pipe_object_NAME = PipeObject
1.28 +pipe_object_INTERFACES = dataspace pipe
1.29 +
1.30 +COMP_INTERFACES_CC = mapped_file_object opener_context_object pipe_object
1.31 +
1.32 +# Individual interfaces.
1.33 +
1.34 +SERVER_INTERFACES_CC = opener pipe_opener $(call common_interfaces,$(COMP_INTERFACES_CC))
1.35 +
1.36 +# Generated and plain source files.
1.37 +
1.38 +SERVER_INTERFACES_SRC_CC = $(call interfaces_to_server_cc,$(SERVER_INTERFACES_CC) $(COMP_INTERFACES_CC))
1.39 +
1.40 +PLAIN_SRC_CC = \
1.41 + files/block_file_accessor.cc \
1.42 + files/block_file_opener.cc \
1.43 + files/file_pager.cc \
1.44 + files/file_paging.cc \
1.45 + files/host_file_accessor.cc \
1.46 + files/host_file_opener.cc \
1.47 + files/opener_context_resource.cc \
1.48 + files/opener_resource.cc \
1.49 + files/test_file_accessor.cc \
1.50 + files/test_file_opener.cc \
1.51 + generic/accessor.cc \
1.52 + generic/pager.cc \
1.53 + generic/resource_server.cc \
1.54 + generic/simple_pager.cc \
1.55 + mapping/access_map.cc \
1.56 + mapping/ipc.cc \
1.57 + mapping/page_mapper.cc \
1.58 + pages/page_queue.cc \
1.59 + pages/page_queue_partitioned.cc \
1.60 + pages/page_queue_shared.cc \
1.61 + pages/pages.cc \
1.62 + pipes/pipe_accessor.cc \
1.63 + pipes/pipe_opener_resource.cc \
1.64 + pipes/pipe_pager.cc \
1.65 + pipes/pipe_paging.cc
1.66 +
1.67 +# Normal definitions.
1.68 +
1.69 +SRC_CC = \
1.70 + $(SERVER_INTERFACES_SRC_CC) \
1.71 + $(PLAIN_SRC_CC)
1.72 +
1.73 +REQUIRES_LIBS = l4re_c-util libmem libipc libstdc++ libsystypes
1.74 +
1.75 +PRIVATE_INCDIR = $(PKGDIR)/include $(PKGDIR)/include/fsserver \
1.76 + $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR)
1.77 +
1.78 +CONTRIB_INCDIR = libfsserver
1.79 +
1.80 +include $(L4DIR)/mk/lib.mk
1.81 +include $(IDL_MK_DIR)/interface_rules.mk
1.82 +
1.83 +$(PLAIN_SRC_CC): $(SERVER_INTERFACES_SRC_CC)