L4Re/departure

Makefile

9:ebe5228f5056
2021-01-24 Paul Boddie Introduced usage of an opener to obtain a file pager.
     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 COMP_INTERFACES_CC		= mapped_file_object    22     23 # Individual interfaces.    24     25 CLIENT_INTERFACES_CC		= mapped_file    26     27 SERVER_INTERFACES_CC		= $(call common_interfaces,$(COMP_INTERFACES_CC))    28     29 # Generated and plain source files.    30     31 CLIENT_INTERFACES_SRC_CC	= $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC))    32     33 SERVER_INTERFACES_SRC_CC	= $(call interfaces_to_server_cc,$(SERVER_INTERFACES_CC) $(COMP_INTERFACES_CC))    34     35 PLAIN_SRC_CC_dstest_client	= \    36 				dstest_client.cc memory_utils.cc    37     38 PLAIN_SRC_CC_dstest_server	= \    39 				access_map.cc accessing.cc accessor.cc \    40 				dstest_server.cc flexpage.cc file_pager.cc \    41 				ipc.cc memory.cc memory_map.cc memory_utils.cc \    42 				opener.cc opener_context.cc \    43 				page_mapper.cc page_queue.cc pager.cc pages.cc paging.cc \    44 				region.cc resource.cc simple_pager.cc \    45 				test_file_accessor.cc test_file_opener.cc    46     47 # Normal definitions.    48     49 SRC_CC_dstest_client		= \    50 				$(CLIENT_INTERFACES_SRC_CC) \    51 				$(PLAIN_SRC_CC_dstest_client)    52     53 SRC_CC_dstest_server		= \    54 				$(SERVER_INTERFACES_SRC_CC) \    55 				$(PLAIN_SRC_CC_dstest_server)    56     57 REQUIRES_LIBS			= l4re_c-util libipc libstdc++    58     59 PRIVATE_INCDIR			= $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR)    60     61 include $(L4DIR)/mk/prog.mk    62 include $(IDL_MK_DIR)/interface_rules.mk    63     64 $(PLAIN_SRC_CC_dstest_client): $(CLIENT_INTERFACES_SRC_CC)    65     66 $(PLAIN_SRC_CC_dstest_server): $(SERVER_INTERFACES_SRC_CC)