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