Landfall

Annotated pkg/landfall-examples/qi_lb60_keypad_physical/Makefile

254:a437381bd5f4
9 months ago Paul Boddie Employed get_channel to eliminate redundant code. cpm-library-improvements
paul@1 1
PKGDIR		?= ..
paul@0 2
L4DIR		?= $(PKGDIR)/../..
paul@0 3
paul@0 4
TARGET		= ex_qi_lb60_keypad_physical
paul@157 5
paul@157 6
# Locations for interface input and generated output.
paul@157 7
paul@157 8
IDL_DIR		= $(L4DIR)/pkg/devices/idl
paul@157 9
IDL_MK_DIR	= $(L4DIR)/idl4re/mk
paul@157 10
IDL_BUILD_DIR	= .
paul@157 11
IDL_EXPORT_DIR	= .
paul@157 12
paul@157 13
include $(IDL_MK_DIR)/idl.mk
paul@157 14
paul@157 15
# Individual interfaces.
paul@157 16
paul@157 17
CLIENT_INTERFACES_C		= keypad
paul@157 18
paul@157 19
# Generated and plain source files.
paul@157 20
paul@157 21
CLIENT_INTERFACES_SRC_C		= $(call interfaces_to_client_c,$(CLIENT_INTERFACES_C))
paul@157 22
paul@157 23
PLAIN_SRC_C			= qi_lb60_keypad_physical.c
paul@157 24
paul@157 25
# Normal definitions.
paul@157 26
paul@157 27
SRC_C				= $(CLIENT_INTERFACES_SRC_C) $(PLAIN_SRC_C)
paul@157 28
paul@157 29
REQUIRES_LIBS	= l4re_c l4re_c-util libipc
paul@157 30
paul@157 31
PRIVATE_INCDIR	= $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR)
paul@0 32
paul@0 33
include $(L4DIR)/mk/prog.mk
paul@157 34
include $(IDL_MK_DIR)/interface_rules.mk
paul@157 35
paul@157 36
$(PLAIN_SRC_C): $(CLIENT_INTERFACES_SRC_C)