Files
interception-vimproved-pers…/Makefile
2020-09-12 23:16:48 +02:00

28 lines
646 B
Makefile

CFLAGS += -c -std=c99 -D_POSIX_C_SOURCE=199309L -O3 -g -Wall -Wextra -Werror -Wno-type-limits
TIMEOUT ?= 10
INSTALL_FILE := /opt/interception/interception-pipe-maricn-remap
# the build target executable:
TARGET = remap
all: $(TARGET)
$(TARGET): $(TARGET).c
$(CC) $(CFLAGS) -o $(TARGET) $(TARGET).c
.PHONY: clean
clean:
rm -f $(TARGET)
.PHONY: install
install:
# If you have run `make test` then do not forget to run `make clean` after. Otherwise you may install with debug logs on.
install -D --strip -T $(INSTALL_FILE) $(TARGET)
.PHONY: test
test:
CFLAGS=-DVERBOSE make
make install
timeout $(TIMEOUT) udevmon -c /etc/udevmon.yaml