mirror of
https://github.com/moparisthebest/uinput-mapper
synced 2024-11-22 00:12:14 -05:00
``make all'' to make all configurations.
This commit is contained in:
parent
16a3e67d3b
commit
9cf9200829
17
Makefile
17
Makefile
@ -9,8 +9,21 @@ default: map
|
|||||||
def_keys.h:
|
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
|
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 config_functions.h
|
def_buttons.h:
|
||||||
|
echo '#include <linux/input.h>' | gcc -E -dM - | grep '#define BTN_' | cut -f2 -d" " | sed 's/BTN_.*/DEF_BTN(&)/' > def_buttons.h
|
||||||
|
|
||||||
|
map: map.c def_keys.h def_buttons.h config.h config_functions.h
|
||||||
$(CC) map.c $(CFLAGS) -o map
|
$(CC) map.c $(CFLAGS) -o map
|
||||||
|
|
||||||
|
all: map
|
||||||
|
mv config.h config.bak
|
||||||
|
for file in confs/*.h; \
|
||||||
|
do \
|
||||||
|
echo $$file; \
|
||||||
|
cp $$file config.h; \
|
||||||
|
$(CC) map.c $(CFLAGS) -o map$$(echo $$file | sed 's/confs\//_/;s/\.h//' ); \
|
||||||
|
done
|
||||||
|
mv config.bak config.h
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f map def_keys.h
|
rm -f map def_keys.h map_*
|
||||||
|
Loading…
Reference in New Issue
Block a user