uinput-mapper/Makefile

17 lines
375 B
Makefile
Raw Normal View History

2012-12-04 14:13:43 -05:00
.PHONY: default clean
CFLAGS+=-ansi -pedantic -Wall -Wextra -Werror -Wno-unused-result
CFLAGS+=-pipe -O2
CFLAGS+=-D_BSD_SOURCE
default: map
2012-12-05 04:30:44 -05:00
def_keys.h:
2012-12-04 14:34:38 -05:00
echo '#include <linux/input.h>' | gcc -E -dM - | grep '#define KEY_' | cut -f2 -d" " | sed 's/KEY_.*/DEF_KEY(&)/' > def_keys.h
2012-12-04 14:13:43 -05:00
map: map.c def_keys.h config.h
2012-12-04 14:13:43 -05:00
$(CC) map.c $(CFLAGS) -o map
clean:
rm -f map def_keys.h