TARGET  = usb_hid
LIBS    = base jitterentropy virt_lx_emul

REL_PRG_DIR = $(PRG_DIR)/../..
INC_DIR = $(REL_PRG_DIR) $(REP_DIR)/src/lib/usb_client

SRC_C += dummies.c \
         lx_emul.c \
         lx_user.c

SRC_C += $(notdir $(wildcard $(PRG_DIR)/generated_dummies.c))

SRC_C += lx_emul/shadow/drivers/input/evdev.c
SRC_C += lx_emul/shadow/drivers/input/input-leds.c
SRC_C += lx_emul/virt/shadow/drivers/usb/core/buffer.c
SRC_C += lx_emul/virt/shadow/drivers/usb/core/hcd.c
SRC_C += lx_emul/virt/usb_client.c

SRC_CC = main.cc

SRC_CC += lx_emul/event.cc \
          lx_emul/random.cc

SRC_CC += genode_c_api/event.cc \
          genode_c_api/usb_client.cc

vpath %.c  $(PRG_DIR)
vpath %.c  $(PRG_DIR)/../..
vpath %.cc $(PRG_DIR)/../..
vpath %.c  $(REP_DIR)/src/lib
vpath %.cc $(REP_DIR)/src/lib

C_API = $(dir $(call select_from_repositories,src/lib/genode_c_api))

vpath genode_c_api/event.cc      $(C_API)
vpath genode_c_api/usb_client.cc $(C_API)

# vim: set ft=make :
