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