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