L4Re/departure

Annotated libnotifier/lib/src/Makefile

571:c0c39aa8fb46
13 months ago Paul Boddie Ensure interface headers are exported.
paul@531 1
PKGDIR		?= ../..
paul@531 2
L4DIR		?= $(PKGDIR)/../../..
paul@531 3
paul@531 4
TARGET		= libnotifier.so libnotifier.a
paul@531 5
PC_FILENAME	= libnotifier
paul@531 6
paul@531 7
# Locations for interface input and generated output.
paul@531 8
paul@531 9
IDL_DIR		= $(PKGDIR)/../libsystypes/idl
paul@531 10
IDL_MK_DIR	= $(L4DIR)/idl4re/mk
paul@531 11
IDL_BUILD_DIR	= .
paul@571 12
IDL_EXPORT_DIR	= $(OBJ_BASE)/include/contrib/$(CONTRIB_INCDIR)/notifier
paul@531 13
paul@531 14
include $(IDL_MK_DIR)/idl.mk
paul@531 15
paul@531 16
# Individual interfaces.
paul@531 17
paul@534 18
CLIENT_INTERFACES_CC		= notification
paul@534 19
paul@534 20
SERVER_INTERFACES_CC		= notifier
paul@531 21
paul@531 22
# Generated and plain source files.
paul@531 23
paul@531 24
CLIENT_INTERFACES_SRC_CC	= $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC))
paul@531 25
paul@534 26
SERVER_INTERFACES_SRC_CC	= $(call interfaces_to_server_cc,$(SERVER_INTERFACES_CC))
paul@534 27
paul@531 28
PLAIN_SRC_CC			= notifier.cc
paul@531 29
paul@531 30
# Normal definitions.
paul@531 31
paul@531 32
SRC_CC				= \
paul@531 33
				$(CLIENT_INTERFACES_SRC_CC) \
paul@534 34
				$(SERVER_INTERFACES_SRC_CC) \
paul@531 35
				$(PLAIN_SRC_CC)
paul@531 36
paul@535 37
REQUIRES_LIBS	= l4re_c-util libipc libstdc++ libsystypes libresource
paul@531 38
paul@531 39
PRIVATE_INCDIR	= $(PKGDIR)/include/notifier $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR)
paul@531 40
CONTRIB_INCDIR	= libnotifier
paul@531 41
paul@531 42
include $(L4DIR)/mk/lib.mk
paul@531 43
include $(IDL_MK_DIR)/interface_rules.mk
paul@531 44
paul@535 45
$(PLAIN_SRC_CC): $(CLIENT_INTERFACES_SRC_CC) $(SERVER_INTERFACES_SRC_CC)