Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

# Tools

CC = gcc
CC ?= gcc
PKG_CONFIG ?= pkg-config

# Project

Expand All @@ -36,8 +37,8 @@ DEPS = $(SOURCES:.c=.d)
# Compiler

CFLAGS += -Wunused-variable -Iinclude
CFLAGS += $(shell pkg-config --cflags libdrm)
LDFLAGS = $(shell pkg-config --libs libdrm)
CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm)
LDFLAGS = $(shell $(PKG_CONFIG) --libs libdrm)

# Produced files

Expand Down