1 PKGDIR ?= ../.. 2 L4DIR ?= $(PKGDIR)/../../.. 3 4 TARGET = libnotifier.so libnotifier.a 5 PC_FILENAME = libnotifier 6 7 # Locations for interface input and generated output. 8 9 IDL_DIR = $(PKGDIR)/../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 = notification 19 20 SERVER_INTERFACES_CC = notifier 21 22 # Generated and plain source files. 23 24 CLIENT_INTERFACES_SRC_CC = $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC)) 25 26 SERVER_INTERFACES_SRC_CC = $(call interfaces_to_server_cc,$(SERVER_INTERFACES_CC)) 27 28 PLAIN_SRC_CC = notifier.cc 29 30 # Normal definitions. 31 32 SRC_CC = \ 33 $(CLIENT_INTERFACES_SRC_CC) \ 34 $(SERVER_INTERFACES_SRC_CC) \ 35 $(PLAIN_SRC_CC) 36 37 REQUIRES_LIBS = l4re_c-util libipc libstdc++ libsystypes libfsserver 38 39 PRIVATE_INCDIR = $(PKGDIR)/include/notifier $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR) 40 CONTRIB_INCDIR = libnotifier 41 42 include $(L4DIR)/mk/lib.mk 43 include $(IDL_MK_DIR)/interface_rules.mk 44 45 $(PLAIN_SRC_CC): $(CLIENT_INTERFACES_SRC_CC)