From 5655eb321535c288325f6fff47b60f680d08ce21 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Tue, 21 Jul 2015 23:40:10 +0200 Subject: Add input reading capabilities to server --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e0783f4..b24c909 100644 --- a/Makefile +++ b/Makefile @@ -12,14 +12,14 @@ EXTRA_CFLAGS = GENERIC_LDFLAGS = EXTRA_LDFLAGS = -COMMON_HEADERS = linux-input-keycodes.h linux-input-enum.h shared.h +COMMON_HEADERS = linux-input-keycodes.h linux-input.h shared.h RCM_PACKAGES = libudev libsystemd RCM_CFLAGS = ${GENERIC_CFLAGS} ${EXTRA_CFLAGS} $(shell pkg-config --cflags ${RCM_PACKAGES}) RCM_LDFLAGS = ${GENERIC_LDFLAGS} ${EXTRA_LDFLAGS} $(shell pkg-config --libs ${RCM_PACKAGES}) RCM_COMPILE = $(CC) $(RCM_CFLAGS) RCM_LINK = $(CC) $(RCM_CFLAGS) $(RCM_LDFLAGS) -RCM_OBJECTS = rcm-server-main.o rcm-server-keymap.o +RCM_OBJECTS = rcm-server-main.o rcm-server-keymap.o linux-input-keycodes.o RCM_HEADERS = rcm-server-main.h rcm-server-keymap.h utils.h $(COMMON_HEADERS) RCC_PACKAGES = gtk+-3.0 @@ -27,7 +27,7 @@ RCC_CFLAGS = ${GENERIC_CFLAGS} ${EXTRA_CFLAGS} $(shell pkg-config --cflags ${RCC RCC_LDFLAGS = ${GENERIC_LDFLAGS} ${EXTRA_LDFLAGS} $(shell pkg-config --libs ${RCC_PACKAGES}) RCC_COMPILE = $(CC) $(RCC_CFLAGS) RCC_LINK = $(CC) $(RCC_CFLAGS) $(RCC_LDFLAGS) -RCC_OBJECTS = rcm-client-main.o rcm-client-hardware-list.o rcm-client-hardware-info.o rcm-client-receive.o rcm-client-transmit.o generated.o +RCC_OBJECTS = rcm-client-main.o rcm-client-hardware-list.o rcm-client-hardware-info.o rcm-client-receive.o rcm-client-transmit.o generated.o linux-input-keycodes.o RCC_HEADERS = rcm-client-main.h rcm-client-hardware-list.h rcm-client-hardware-info.h rcm-client-receive.h rcm-client-transmit.h generated.h $(COMMON_HEADERS) INSTALL = install -c @@ -48,6 +48,9 @@ mandir = ${prefix}/share/man all: rcm-server rcm-client .DEFAULT: all +linux-input-keycodes.o: linux-input-keycodes.c $(COMMON_HEADERS) + $(CC) $(GENERIC_CFLAGS) $(EXTRA_CFLAGS) -o $@ -c $< + rcm-client-%.o: rcm-client-%.c $(RCC_HEADERS) $(RCC_COMPILE) -o $@ -c $< -- cgit v1.2.3