1 PKGDIR ?= . 2 L4DIR ?= $(PKGDIR)/../../.. 3 4 TARGET = \ 5 dstest_block_client dstest_block_client_simple \ 6 dstest_ext2fs_client \ 7 dstest_file_access \ 8 dstest_file_client \ 9 dstest_file_monitor \ 10 dstest_file_readdir \ 11 dstest_file_readdir_concurrent \ 12 dstest_file_remove \ 13 dstest_file_rename \ 14 dstest_host_client \ 15 dstest_pipe_client \ 16 dstest_test_client \ 17 dstest_map_test \ 18 dstest_exec \ 19 dstest_file_mapping 20 21 MODE = static 22 23 # Locations for interface input and generated output. 24 25 IDL_DIR = $(PKGDIR)/../libsystypes/idl 26 IDL_MK_DIR = $(L4DIR)/idl4re/mk 27 IDL_BUILD_DIR = . 28 IDL_EXPORT_DIR = . 29 30 include $(IDL_MK_DIR)/idl.mk 31 32 # Compound interfaces. 33 34 pager_object_NAME = PagerObject 35 pager_object_INTERFACES = region_mapper system_pager 36 37 COMP_INTERFACES_CC = pager_object 38 39 # Individual interfaces. 40 41 CLIENT_INTERFACES_CC = dataspace 42 43 SERVER_INTERFACES_CC = $(call common_interfaces,$(COMP_INTERFACES_CC)) 44 45 # Generated and plain source files. 46 47 CLIENT_INTERFACES_SRC_CC = $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC)) 48 49 SERVER_INTERFACES_SRC_CC = $(call interfaces_to_server_cc,$(SERVER_INTERFACES_CC) $(COMP_INTERFACES_CC)) 50 51 # Normal source files. 52 53 SRC_CC_dstest_block_client = dstest_block_client.cc 54 55 SRC_CC_dstest_block_client_simple = dstest_block_client_simple.cc 56 57 SRC_CC_dstest_ext2fs_client = dstest_ext2fs_client.cc 58 59 SRC_CC_dstest_file_access = dstest_file_access.cc 60 61 SRC_CC_dstest_file_client = dstest_file_client.cc 62 63 SRC_CC_dstest_file_monitor = dstest_file_monitor.cc 64 65 SRC_CC_dstest_file_readdir = dstest_file_readdir.cc 66 67 SRC_CC_dstest_file_readdir_concurrent = dstest_file_readdir_concurrent.cc 68 69 SRC_CC_dstest_file_remove = dstest_file_remove.cc 70 71 SRC_CC_dstest_file_rename = dstest_file_rename.cc 72 73 SRC_CC_dstest_host_client = dstest_host_client.cc 74 75 SRC_CC_dstest_pipe_client = dstest_pipe_client.cc 76 77 SRC_CC_dstest_test_client = dstest_test_client.cc 78 79 PLAIN_SRC_CC_dstest_exec = dstest_exec.cc 80 SRC_CC_dstest_exec = $(PLAIN_SRC_CC_dstest_exec) $(SERVER_INTERFACES_SRC_CC) 81 82 PLAIN_SRC_CC_dstest_file_mapping = dstest_file_mapping.cc 83 SRC_CC_dstest_file_mapping = $(PLAIN_SRC_CC_dstest_file_mapping) $(CLIENT_INTERFACES_SRC_CC) 84 85 REQUIRES_LIBS = l4re_c-util libexec libfsclient libmem libipc libstdc++ libsystypes libe2access_blockserver 86 PRIVATE_INCDIR = $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR) 87 88 include $(L4DIR)/mk/prog.mk 89 include $(IDL_MK_DIR)/interface_rules.mk 90 91 $(PLAIN_SRC_CC_dstest_exec): $(SERVER_INTERFACES_SRC_CC) 92 93 $(PLAIN_SRC_CC_dstest_file_mapping): $(CLIENT_INTERFACES_SRC_CC)