1 PKGDIR ?= ../.. 2 L4DIR ?= $(PKGDIR)/../../.. 3 4 TARGET = libfsclient.so libfsclient.a 5 PC_FILENAME = libfsclient 6 7 # Locations for interface input and generated output. 8 9 IDL_DIR = $(L4DIR)/pkg/libsystypes/idl 10 IDL_MK_DIR = $(L4DIR)/idl4re/mk 11 IDL_BUILD_DIR = . 12 IDL_EXPORT_DIR = . 13 14 include $(IDL_MK_DIR)/idl.mk 15 16 # Individual interfaces. 17 18 CLIENT_INTERFACES_CC = dataspace file flush mapped_file notification opener opener_context pipe pipe_opener 19 20 # Generated and plain source files. 21 22 CLIENT_INTERFACES_SRC_CC = $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC)) 23 24 PLAIN_SRC_CC = client.cc file.cc notifier.cc 25 26 # Normal definitions. 27 28 SRC_CC = \ 29 $(CLIENT_INTERFACES_SRC_CC) \ 30 $(PLAIN_SRC_CC) 31 32 REQUIRES_LIBS = l4re_c-util libipc libstdc++ libsystypes 33 34 PRIVATE_INCDIR = $(PKGDIR)/include/fsclient $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR) 35 CONTRIB_INCDIR = libfsclient 36 37 include $(L4DIR)/mk/lib.mk 38 include $(IDL_MK_DIR)/interface_rules.mk 39 40 $(PLAIN_SRC_CC): $(CLIENT_INTERFACES_SRC_CC)