From f7bcc3d15846964dbdf8acf309c12d6e51036a16 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Tue, 15 Sep 2020 14:20:58 +0200 Subject: [PATCH] Use pkg-config FreeBSD doesn't install headers and libs in the default path so we need to use pkg-config Signed-off-by: Emmanuel Vadot --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 5fa6036..239ee0c 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,17 @@ BINDIR ?= $(PREFIX)/bin VERSION="0.3.1" CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -Wno-parentheses +CFLAGS += `pkg-config --cflags xkbcommon` \ + `pkg-config --cflags wayland-client` \ + `pkg-config --cflags wayland-cursor` override CFLAGS += -DVERSION=\"$(VERSION)\" VPATH=$(WAYLAND_PROTOCOLS_DIR)/stable/xdg-shell LIBS=-lrt -lm -lutil -lwayland-client -lwayland-cursor -lxkbcommon -Ltsm -lhtsm +LIBS+=`pkg-config --libs xkbcommon` \ + `pkg-config --libs wayland-client` \ + `pkg-config --libs wayland-cursor` + OBJ=xdg-shell.o gtk-primary-selection.o glyph.o main.o GEN=xdg-shell.c xdg-shell.h gtk-primary-selection.c gtk-primary-selection.h