Move to c++, handle multiple mapped keys

This commit is contained in:
Nikola Maric
2020-09-13 16:48:02 +02:00
committed by Nikola Marić
parent 8ddea4e1ae
commit eec5ba4288
3 changed files with 224 additions and 176 deletions

View File

@@ -1,4 +1,4 @@
CFLAGS += -std=c99 -D_POSIX_C_SOURCE=199309L -O3 -g -Wall -Wextra -Werror -Wno-type-limits
CXXFLAGS += -std=c++20 -D_POSIX_C_SOURCE=199309L -O3 -g -Wall -Wextra -Werror -Wno-type-limits
TIMEOUT ?= 10
INSTALL_FILE := /opt/interception/interception-pipe-maricn-remap
@@ -8,8 +8,8 @@ TARGET = remap
all: $(TARGET)
$(TARGET): $(TARGET).c
$(CC) $(CFLAGS) -o $(TARGET) $(TARGET).c
$(TARGET): $(TARGET).cpp
$(CXX) $(CXXFLAGS) -o $(TARGET) $(TARGET).cpp
.PHONY: clean
clean:
@@ -22,6 +22,6 @@ install:
.PHONY: test
test:
CFLAGS=-DVERBOSE make
CXXFLAGS=-DVERBOSE make
make install
timeout $(TIMEOUT) udevmon -c /etc/udevmon.yaml