]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/input/lib/src/Makefile
update
[l4.git] / l4 / pkg / input / lib / src / Makefile
1 PKGDIR ?= ../..
2 L4DIR  ?= $(PKGDIR)/../..
3
4 TARGET = libinput.a
5 SRC_S  = jiffie_hack.S
6 SRC_C = emul_time.c emul_irq.c emul_wait.c emul_res.c \
7         l4evdev.c init.c l4drv.c l4drv_reg.c l4bus.c
8 REQUIRES_LIBS = libio libirq l4util libc
9
10 PRIVATE_INCDIR = $(PKGDIR)/lib/include
11
12 DEFINES  = -D__KERNEL__ -DL4INPUT
13 # for pthread locks in semaphore.h
14 DEFINES += -D_XOPEN_SOURCE=500
15 WARNINGS = -Wall -Wstrict-prototypes $(call checkcc,-Wno-pointer-sign)
16
17 # gather Linux sources
18 VPATH += $(PKGDIR)/lib/contrib
19
20 SRCALL = input/input.c input/keyboard/atkbd.c input/mouse/psmouse-base.c \
21          input/mouse/logips2pp.c input/mouse/synaptics.c input/mouse/alps.c \
22          input/serio/serio.c input/serio/libps2.c
23
24 SRC_C_x86-l4f   += $(SRCALL) input/serio/i8042.c input/misc/pcspkr.c ux.c
25 SRC_C_amd64-l4f += $(SRCALL) input/serio/i8042.c input/misc/pcspkr.c
26 SRC_C_arm-l4f   += $(SRCALL) input/serio/ambakmi.c
27 SRC_C_ppc32-l4f += $(SRCALL)
28 SRC_C_sparc-l4f += $(SRCALL)
29
30 include $(L4DIR)/mk/lib.mk