forked from maricn/interception-vimproved
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 779 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CXXFLAGS += -std=c++20 -D_POSIX_C_SOURCE=199309L -O3 -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-type-limits
TIMEOUT ?= 10
INSTALL_FILE := /opt/interception/interception-vimproved
# the build target executable:
TARGET = interception-vimproved
all: $(TARGET)
$(TARGET): $(TARGET).cpp
$(CXX) $(CXXFLAGS) -o $(TARGET) $(TARGET).cpp
.PHONY: clean
clean:
rm -f $(TARGET) $(TARGET).o
.PHONY: build
build:
g++ -o interception-vimproved interception-vimproved.cpp
.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 $(TARGET) $(INSTALL_FILE)
.PHONY: test
test:
CXXFLAGS=-DVERBOSE make
make install
timeout $(TIMEOUT) udevmon -c /etc/udevmon.yaml