1 PKGDIR ?= .. 2 L4DIR ?= $(PKGDIR)/../../.. 3 4 TARGET = dstest_exec_payload dstest_region_mapper 5 6 MODE = static 7 8 # Locations for interface input and generated output. 9 10 IDL_DIR = $(PKGDIR)/../libsystypes/idl 11 IDL_MK_DIR = $(L4DIR)/idl4re/mk 12 IDL_BUILD_DIR = . 13 IDL_EXPORT_DIR = . 14 15 include $(IDL_MK_DIR)/idl.mk 16 17 # Compound interfaces. 18 19 pager_object_NAME = PagerObject 20 pager_object_INTERFACES = region_mapper system_pager 21 22 COMP_INTERFACES_CC = pager_object 23 24 # Individual interfaces. 25 26 SERVER_INTERFACES_CC = $(call common_interfaces,$(COMP_INTERFACES_CC)) 27 28 # Generated and plain source files. 29 30 SERVER_INTERFACES_SRC_CC = $(call interfaces_to_server_cc,$(SERVER_INTERFACES_CC) $(COMP_INTERFACES_CC)) 31 32 # Normal source files. 33 34 SRC_C_dstest_exec_payload = exec_payload.c 35 36 PLAIN_SRC_CC_dstest_region_mapper = region_mapper.cc 37 SRC_CC_dstest_region_mapper = \ 38 $(PLAIN_SRC_CC_dstest_region_mapper) \ 39 $(SERVER_INTERFACES_SRC_CC) 40 41 REQUIRES_LIBS = libc libstdc++ libexec libipc 42 PRIVATE_INCDIR = $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR) 43 44 include $(L4DIR)/mk/prog.mk 45 include $(IDL_MK_DIR)/interface_rules.mk 46 47 $(PLAIN_SRC_CC_dstest_region_mapper): $(SERVER_INTERFACES_SRC_CC)