1 PKGDIR ?= .. 2 L4DIR ?= $(PKGDIR)/../../.. 3 4 TARGET = libfsserver.so libfsserver.a 5 PC_FILENAME = libfsserver 6 7 # Locations for interface input and generated output. 8 9 IDL_DIR = $(L4DIR)/pkg/libsystypes/idl 10 IDL_MK_DIR = $(L4DIR)/idl4re/mk 11 IDL_BUILD_DIR = . 12 IDL_EXPORT_DIR = $(OBJ_BASE)/include/contrib/$(CONTRIB_INCDIR)/fsserver 13 14 include $(IDL_MK_DIR)/idl.mk 15 16 # Compound interfaces. 17 18 mapped_file_object_NAME = MappedFileObject 19 mapped_file_object_INTERFACES = dataspace file flush mapped_file notification 20 21 opener_context_object_NAME = OpenerContextObject 22 opener_context_object_INTERFACES = dataspace opener_context 23 24 pipe_object_NAME = PipeObject 25 pipe_object_INTERFACES = dataspace flush notification pipe 26 27 COMP_INTERFACES_CC = mapped_file_object opener_context_object pipe_object 28 29 # Individual interfaces. 30 31 CLIENT_INTERFACES_CC = notifier 32 33 SERVER_INTERFACES_CC = filesystem opener pipe_opener $(call common_interfaces,$(COMP_INTERFACES_CC)) 34 35 # Generated and plain source files. 36 37 CLIENT_INTERFACES_SRC_CC = $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC)) 38 39 SERVER_INTERFACES_SRC_CC = $(call interfaces_to_server_cc,$(SERVER_INTERFACES_CC) $(COMP_INTERFACES_CC)) 40 41 PLAIN_SRC_CC = \ 42 files/block_file_accessor.cc \ 43 files/block_file_opener.cc \ 44 files/ext2_file_accessor.cc \ 45 files/ext2_file_opener.cc \ 46 files/ext2_filesystem.cc \ 47 files/file_pager.cc \ 48 files/file_paging.cc \ 49 files/filesystem_resource.cc \ 50 files/host_file_accessor.cc \ 51 files/host_file_opener.cc \ 52 files/opener_context_resource.cc \ 53 files/opener_resource.cc \ 54 files/test_file_accessor.cc \ 55 files/test_file_opener.cc \ 56 generic/accessor.cc \ 57 generic/notification.cc \ 58 generic/pager.cc \ 59 generic/resource_server.cc \ 60 generic/simple_pager.cc \ 61 mapping/access_map.cc \ 62 mapping/ipc.cc \ 63 mapping/page_mapper.cc \ 64 pages/page_queue.cc \ 65 pages/page_queue_partitioned.cc \ 66 pages/page_queue_shared.cc \ 67 pages/pages.cc \ 68 pipes/pipe_accessor.cc \ 69 pipes/pipe_opener_resource.cc \ 70 pipes/pipe_pager.cc \ 71 pipes/pipe_paging.cc 72 73 # Normal definitions. 74 75 SRC_CC = \ 76 $(CLIENT_INTERFACES_SRC_CC) \ 77 $(SERVER_INTERFACES_SRC_CC) \ 78 $(PLAIN_SRC_CC) 79 80 REQUIRES_LIBS = \ 81 l4re_c-util libmem libipc libstdc++ libsystypes libfsclient \ 82 libext2fs libext2fs_blockserver libe2access libe2access_blockserver 83 84 PRIVATE_INCDIR = $(PKGDIR)/include $(PKGDIR)/include/fsserver \ 85 $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR) 86 87 CONTRIB_INCDIR = libfsserver 88 89 include $(L4DIR)/mk/lib.mk 90 include $(IDL_MK_DIR)/interface_rules.mk 91 92 $(PLAIN_SRC_CC): $(CLIENT_INTERFACES_SRC_CC) 93 94 $(PLAIN_SRC_CC): $(SERVER_INTERFACES_SRC_CC)