1 PKGDIR ?= . 2 L4DIR ?= $(PKGDIR)/../.. 3 4 TARGET = dstest_client dstest_server 5 MODE = shared 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 = . 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 mapped_file 20 21 opener_context_object_NAME = OpenerContextObject 22 opener_context_object_INTERFACES = dataspace opener_context 23 24 COMP_INTERFACES_CC = mapped_file_object opener_context_object 25 26 # Individual interfaces. 27 28 CLIENT_INTERFACES_CC = dataspace mapped_file opener opener_context 29 30 SERVER_INTERFACES_CC = opener $(call common_interfaces,$(COMP_INTERFACES_CC)) 31 32 # Generated and plain source files. 33 34 CLIENT_INTERFACES_SRC_CC = $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC)) 35 36 SERVER_INTERFACES_SRC_CC = $(call interfaces_to_server_cc,$(SERVER_INTERFACES_CC) $(COMP_INTERFACES_CC)) 37 38 COMMON_SRC_CC = memory_utils.cc 39 40 PLAIN_SRC_CC_dstest_client = dstest_client.cc 41 42 PLAIN_SRC_CC_dstest_server = \ 43 access_map.cc accessing.cc accessor.cc \ 44 dstest_server.cc flexpage.cc file_pager.cc \ 45 ipc.cc memory.cc \ 46 opener_resource.cc opener_context_resource.cc \ 47 page_mapper.cc page_queue.cc pager.cc pages.cc paging.cc \ 48 region.cc resource_server.cc simple_pager.cc \ 49 host_file_accessor.cc host_file_opener.cc \ 50 test_file_accessor.cc test_file_opener.cc \ 51 52 # Normal definitions. 53 54 SRC_CC_dstest_client = \ 55 $(CLIENT_INTERFACES_SRC_CC) \ 56 $(PLAIN_SRC_CC_dstest_client) \ 57 $(COMMON_SRC_CC) 58 59 SRC_CC_dstest_server = \ 60 $(SERVER_INTERFACES_SRC_CC) \ 61 $(PLAIN_SRC_CC_dstest_server) \ 62 $(COMMON_SRC_CC) 63 64 REQUIRES_LIBS = l4re_c-util libipc libstdc++ 65 66 PRIVATE_INCDIR = $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR) 67 68 include $(L4DIR)/mk/prog.mk 69 include $(IDL_MK_DIR)/interface_rules.mk 70 71 $(PLAIN_SRC_CC_dstest_client): $(CLIENT_INTERFACES_SRC_CC) 72 73 $(PLAIN_SRC_CC_dstest_server): $(SERVER_INTERFACES_SRC_CC)