1.1 --- a/Makefile Tue Apr 13 00:03:18 2021 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,175 +0,0 @@
1.4 -PKGDIR ?= .
1.5 -L4DIR ?= $(PKGDIR)/../..
1.6 -
1.7 -TARGET = \
1.8 - dstest_block_client dstest_block_client_simple \
1.9 - dstest_host_client \
1.10 - dstest_pipe_client \
1.11 - dstest_test_client \
1.12 - dstest_block_server \
1.13 - dstest_host_server \
1.14 - dstest_pipe_server \
1.15 - dstest_test_server
1.16 -
1.17 -MODE = static
1.18 -
1.19 -# Locations for interface input and generated output.
1.20 -
1.21 -IDL_DIR = $(L4DIR)/pkg/libsystypes/idl
1.22 -IDL_MK_DIR = $(L4DIR)/idl4re/mk
1.23 -IDL_BUILD_DIR = .
1.24 -IDL_EXPORT_DIR = .
1.25 -
1.26 -include $(IDL_MK_DIR)/idl.mk
1.27 -
1.28 -# Compound interfaces.
1.29 -
1.30 -mapped_file_object_NAME = MappedFileObject
1.31 -mapped_file_object_INTERFACES = dataspace file mapped_file
1.32 -
1.33 -opener_context_object_NAME = OpenerContextObject
1.34 -opener_context_object_INTERFACES = dataspace opener_context
1.35 -
1.36 -pipe_object_NAME = PipeObject
1.37 -pipe_object_INTERFACES = dataspace pipe
1.38 -
1.39 -COMP_INTERFACES_CC = mapped_file_object opener_context_object pipe_object
1.40 -
1.41 -# Individual interfaces.
1.42 -
1.43 -CLIENT_INTERFACES_CC = dataspace file mapped_file opener opener_context pipe pipe_opener
1.44 -
1.45 -SERVER_INTERFACES_CC = opener pipe_opener $(call common_interfaces,$(COMP_INTERFACES_CC))
1.46 -
1.47 -# Generated and plain source files.
1.48 -
1.49 -CLIENT_INTERFACES_SRC_CC = $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC))
1.50 -
1.51 -SERVER_INTERFACES_SRC_CC = $(call interfaces_to_server_cc,$(SERVER_INTERFACES_CC) $(COMP_INTERFACES_CC))
1.52 -
1.53 -COMMON_SRC_CC = memory/memory_utils.cc
1.54 -
1.55 -PLAIN_SRC_CC_dstest_block_client = tests/dstest_block_client.cc client/file.cc
1.56 -
1.57 -PLAIN_SRC_CC_dstest_block_client_simple = tests/dstest_block_client_simple.cc client/client.cc client/file.cc
1.58 -
1.59 -PLAIN_SRC_CC_dstest_host_client = tests/dstest_host_client.cc client/file.cc
1.60 -
1.61 -PLAIN_SRC_CC_dstest_pipe_client = tests/dstest_pipe_client.cc client/file.cc
1.62 -
1.63 -PLAIN_SRC_CC_dstest_test_client = tests/dstest_test_client.cc client/file.cc
1.64 -
1.65 -PLAIN_SRC_CC_common_server = \
1.66 - generic/accessor.cc generic/pager.cc \
1.67 - generic/resource_server.cc \
1.68 - mapping/access_map.cc mapping/flexpage.cc mapping/ipc.cc \
1.69 - memory/memory_incremental.cc mapping/page_mapper.cc \
1.70 - memory/memory_preallocated.cc memory/region.cc \
1.71 - pages/page_queue.cc pages/page_queue_partitioned.cc \
1.72 - pages/page_queue_shared.cc pages/pages.cc
1.73 -
1.74 -PLAIN_SRC_CC_common_file_server = \
1.75 - files/file_pager.cc files/file_paging.cc \
1.76 - files/opener_resource.cc files/opener_context_resource.cc \
1.77 - generic/simple_pager.cc
1.78 -
1.79 -PLAIN_SRC_CC_dstest_block_server = \
1.80 - $(PLAIN_SRC_CC_common_server) \
1.81 - $(PLAIN_SRC_CC_common_file_server) \
1.82 - files/block_file_accessor.cc files/block_file_opener.cc \
1.83 - files/host_file_accessor.cc files/host_file_opener.cc \
1.84 - servers/block_file_server.cc
1.85 -
1.86 -PLAIN_SRC_CC_dstest_host_server = \
1.87 - $(PLAIN_SRC_CC_common_server) \
1.88 - $(PLAIN_SRC_CC_common_file_server) \
1.89 - files/host_file_accessor.cc files/host_file_opener.cc \
1.90 - servers/host_file_server.cc
1.91 -
1.92 -PLAIN_SRC_CC_dstest_pipe_server = \
1.93 - $(PLAIN_SRC_CC_common_server) \
1.94 - pipes/pipe_opener_resource.cc pipes/pipe_pager.cc \
1.95 - pipes/pipe_accessor.cc pipes/pipe_paging.cc \
1.96 - servers/pipe_server.cc
1.97 -
1.98 -PLAIN_SRC_CC_dstest_test_server = \
1.99 - $(PLAIN_SRC_CC_common_server) \
1.100 - $(PLAIN_SRC_CC_common_file_server) \
1.101 - files/test_file_accessor.cc files/test_file_opener.cc \
1.102 - servers/test_file_server.cc
1.103 -
1.104 -# Normal definitions.
1.105 -
1.106 -SRC_CC_dstest_block_client = \
1.107 - $(CLIENT_INTERFACES_SRC_CC) \
1.108 - $(PLAIN_SRC_CC_dstest_block_client) \
1.109 - $(COMMON_SRC_CC)
1.110 -
1.111 -SRC_CC_dstest_block_client_simple = \
1.112 - $(CLIENT_INTERFACES_SRC_CC) \
1.113 - $(PLAIN_SRC_CC_dstest_block_client_simple) \
1.114 - $(COMMON_SRC_CC)
1.115 -
1.116 -SRC_CC_dstest_host_client = \
1.117 - $(CLIENT_INTERFACES_SRC_CC) \
1.118 - $(PLAIN_SRC_CC_dstest_host_client) \
1.119 - $(COMMON_SRC_CC)
1.120 -
1.121 -SRC_CC_dstest_pipe_client = \
1.122 - $(CLIENT_INTERFACES_SRC_CC) \
1.123 - $(PLAIN_SRC_CC_dstest_pipe_client) \
1.124 - $(COMMON_SRC_CC)
1.125 -
1.126 -SRC_CC_dstest_test_client = \
1.127 - $(CLIENT_INTERFACES_SRC_CC) \
1.128 - $(PLAIN_SRC_CC_dstest_test_client) \
1.129 - $(COMMON_SRC_CC)
1.130 -
1.131 -SRC_CC_dstest_block_server = \
1.132 - $(SERVER_INTERFACES_SRC_CC) \
1.133 - $(PLAIN_SRC_CC_dstest_block_server) \
1.134 - $(COMMON_SRC_CC)
1.135 -
1.136 -SRC_CC_dstest_host_server = \
1.137 - $(SERVER_INTERFACES_SRC_CC) \
1.138 - $(PLAIN_SRC_CC_dstest_host_server) \
1.139 - $(COMMON_SRC_CC)
1.140 -
1.141 -SRC_CC_dstest_pipe_server = \
1.142 - $(SERVER_INTERFACES_SRC_CC) \
1.143 - $(PLAIN_SRC_CC_dstest_pipe_server) \
1.144 - $(COMMON_SRC_CC)
1.145 -
1.146 -SRC_CC_dstest_test_server = \
1.147 - $(SERVER_INTERFACES_SRC_CC) \
1.148 - $(PLAIN_SRC_CC_dstest_test_server) \
1.149 - $(COMMON_SRC_CC)
1.150 -
1.151 -REQUIRES_LIBS = l4re_c-util libipc libstdc++ libsystypes
1.152 -
1.153 -PRIVATE_INCDIR = $(PKGDIR) $(PKGDIR)/client \
1.154 - $(PKGDIR)/files $(PKGDIR)/generic \
1.155 - $(PKGDIR)/mapping $(PKGDIR)/memory \
1.156 - $(PKGDIR)/pages $(PKGDIR)/pipes \
1.157 - $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR)
1.158 -
1.159 -include $(L4DIR)/mk/prog.mk
1.160 -include $(IDL_MK_DIR)/interface_rules.mk
1.161 -
1.162 -$(PLAIN_SRC_CC_dstest_block_client): $(CLIENT_INTERFACES_SRC_CC)
1.163 -
1.164 -$(PLAIN_SRC_CC_dstest_block_client_simple): $(CLIENT_INTERFACES_SRC_CC)
1.165 -
1.166 -$(PLAIN_SRC_CC_dstest_host_client): $(CLIENT_INTERFACES_SRC_CC)
1.167 -
1.168 -$(PLAIN_SRC_CC_dstest_pipe_client): $(CLIENT_INTERFACES_SRC_CC)
1.169 -
1.170 -$(PLAIN_SRC_CC_dstest_test_client): $(CLIENT_INTERFACES_SRC_CC)
1.171 -
1.172 -$(PLAIN_SRC_CC_dstest_block_server): $(SERVER_INTERFACES_SRC_CC)
1.173 -
1.174 -$(PLAIN_SRC_CC_dstest_host_server): $(SERVER_INTERFACES_SRC_CC)
1.175 -
1.176 -$(PLAIN_SRC_CC_dstest_pipe_server): $(SERVER_INTERFACES_SRC_CC)
1.177 -
1.178 -$(PLAIN_SRC_CC_dstest_test_server): $(SERVER_INTERFACES_SRC_CC)