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