mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2024-12-23 04:08:48 -05:00
4a3011f08d
- config.h Makefile dependency - Remove case statement - Add extra argument that defines the in_type - Updated configs.
17 lines
375 B
Makefile
17 lines
375 B
Makefile
.PHONY: default clean
|
|
|
|
CFLAGS+=-ansi -pedantic -Wall -Wextra -Werror -Wno-unused-result
|
|
CFLAGS+=-pipe -O2
|
|
CFLAGS+=-D_BSD_SOURCE
|
|
|
|
default: map
|
|
|
|
def_keys.h:
|
|
echo '#include <linux/input.h>' | gcc -E -dM - | grep '#define KEY_' | cut -f2 -d" " | sed 's/KEY_.*/DEF_KEY(&)/' > def_keys.h
|
|
|
|
map: map.c def_keys.h config.h
|
|
$(CC) map.c $(CFLAGS) -o map
|
|
|
|
clean:
|
|
rm -f map def_keys.h
|