summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBonicgamer <44382222+Bonicgamer@users.noreply.github.com>2020-08-15 13:56:22 -0400
committerGitHub <noreply@github.com>2020-08-15 13:56:22 -0400
commita683ec501e0c67d3d078d30d12876cdf19186f5a (patch)
tree671fa2b5676bd64801d606012d2eecd41f409aa8 /Makefile
parent0ac2f6616a5f0f3ab10b53dcf294862d87116421 (diff)
parent9632704e861c48d57fdd172be721cf8ed0a42e49 (diff)
Merge pull request #1 from djpohly/master
Pull Request
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7c90456..56ab751 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
-WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
-WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
+include config.mk
-CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-error=unused-function
CFLAGS += -I. -DWLR_USE_UNSTABLE -std=c99 -Werror=declaration-after-statement
+WAYLAND_PROTOCOLS=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
+WAYLAND_SCANNER=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
+
PKGS = wlroots wayland-server xcb xkbcommon
CFLAGS += $(foreach p,$(PKGS),$(shell pkg-config --cflags $(p)))
LDLIBS += $(foreach p,$(PKGS),$(shell pkg-config --libs $(p)))