Skip to content

Instantly share code, notes, and snippets.

View 3ap's full-sized avatar
🏛️
Looking for a job

Sergey Nazaryev 3ap

🏛️
Looking for a job
View GitHub Profile
@3ap
3ap / Check if DRM_CLIENT_CAP_ATOMIC is supported by your GPU
Last active April 30, 2024 00:37
Check if DRM_CLIENT_CAP_ATOMIC is supported by your GPU
make CFLAGS=$(pkg-config --cflags libdrm) LDLIBS=$(pkg-config --libs libdrm) check-drm-cap-atomic && ./check-drm-cap-atomic
TARGET = project
SOURCES = lexer.y parser.l
OBJECTS = lexer.o parser.o
CFLAGS = -Wall -Wpedantic -Werror
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(CC) $^ -o $(TARGET)
00:00:00.000 [sway/main.c:327] Sway version 1.5-d6ac3075 (Oct 13 2020, branch 'master')
00:00:00.002 [sway/main.c:154] Linux lerochka 5.4.69-1-lts #1 SMP Thu, 01 Oct 2020 20:40:59 +0000 x86_64 GNU/Linux
00:00:00.002 [sway/main.c:170] Contents of /etc/lsb-release:
00:00:00.002 [sway/main.c:154] LSB_VERSION=1.4
00:00:00.002 [sway/main.c:154] DISTRIB_ID=Arch
00:00:00.002 [sway/main.c:154] DISTRIB_RELEASE=rolling
00:00:00.002 [sway/main.c:154] DISTRIB_DESCRIPTION="Arch Linux"
00:00:00.002 [sway/main.c:170] Contents of /etc/os-release:
00:00:00.002 [sway/main.c:154] NAME="Arch Linux"
00:00:00.002 [sway/main.c:154] PRETTY_NAME="Arch Linux"