File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed
Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 11# === Configurable Variables ===
2+ LIBEVDEV_VERSION := 1.12.1
3+ LIBEVDEV_DIR := libevdev-$(LIBEVDEV_VERSION )
4+ LIBEVDEV_TAR := $(LIBEVDEV_DIR ) .tar.xz
5+ LIBEVDEV_URL := https://www.freedesktop.org/software/libevdev/$(LIBEVDEV_TAR )
6+ LDLIBS := ./$(LIBEVDEV_DIR ) /libevdev/.libs/libevdev.a
27CC := gcc
3- CFLAGS := -I./include -I./libevdev-1.12.1
4- LDLIBS := ./libevdev-1.12.1/libevdev/.libs/libevdev.a
5-
8+ CFLAGS := -I./include -I./libevdev-$(LIBEVDEV_VERSION )
69SRC := $(wildcard src/* .c)
710OUT := haka.out
811
12+ .PHONY : all clean
13+
914# === Targets ===
1015all : $(OUT )
1116
12- $(OUT ) : $(SRC )
17+ $(OUT ) : $(SRC ) $( LDLIBS )
1318 $(CC ) $(CFLAGS ) -o $@ $^ $(LDLIBS )
1419
20+ $(LDLIBS ) : $(LIBEVDEV_TAR )
21+ tar -xf $(LIBEVDEV_TAR )
22+ cd $(LIBEVDEV_DIR ) && ./configure --enable-static --disable-shared
23+ $(MAKE ) -C $(LIBEVDEV_DIR )
24+
25+ $(LIBEVDEV_TAR ) :
26+ wget $(LIBEVDEV_URL )
27+
1528clean :
1629 rm -f $(OUT )
1730 rm -rf prevFile.txt
31+ rm -rf $(LIBEVDEV_DIR )
1832
19- .PHONY : all clean
You can’t perform that action at this time.
0 commit comments