paul@1 | 1 | PKGDIR ?= .. |
paul@0 | 2 | L4DIR ?= $(PKGDIR)/../.. |
paul@0 | 3 | |
paul@0 | 4 | TARGET = ex_qi_lb60_backlight |
paul@104 | 5 | |
paul@104 | 6 | # Locations for interface input and generated output. |
paul@104 | 7 | |
paul@104 | 8 | IDL_DIR = $(L4DIR)/pkg/devices/idl |
paul@104 | 9 | IDL_MK_DIR = $(L4DIR)/idl4re/mk |
paul@104 | 10 | IDL_BUILD_DIR = . |
paul@104 | 11 | IDL_EXPORT_DIR = . |
paul@104 | 12 | |
paul@104 | 13 | include $(IDL_MK_DIR)/idl.mk |
paul@104 | 14 | |
paul@104 | 15 | # Individual interfaces. |
paul@104 | 16 | |
paul@104 | 17 | CLIENT_INTERFACES_CC = activation backlight |
paul@104 | 18 | |
paul@104 | 19 | # Generated and plain source files. |
paul@104 | 20 | |
paul@104 | 21 | CLIENT_INTERFACES_SRC_CC = $(call interfaces_to_client_cc,$(CLIENT_INTERFACES_CC)) |
paul@104 | 22 | |
paul@104 | 23 | PLAIN_SRC_CC = qi_lb60_backlight.cc |
paul@104 | 24 | |
paul@104 | 25 | # Normal definitions. |
paul@104 | 26 | |
paul@104 | 27 | SRC_CC = $(CLIENT_INTERFACES_SRC_CC) $(PLAIN_SRC_CC) |
paul@104 | 28 | |
paul@104 | 29 | REQUIRES_LIBS = l4re_c-util libdevice-input-keypad libdrivers-keypad-loader libdevice-util libipc |
paul@104 | 30 | |
paul@104 | 31 | PRIVATE_INCDIR = $(IDL_BUILD_DIR) $(IDL_EXPORT_DIR) |
paul@0 | 32 | |
paul@0 | 33 | include $(L4DIR)/mk/prog.mk |
paul@104 | 34 | include $(IDL_MK_DIR)/interface_rules.mk |
paul@104 | 35 | |
paul@104 | 36 | $(PLAIN_SRC_CC): $(CLIENT_INTERFACES_SRC_CC) |