From a5d4202196086d96a4a2d0e6049bcbeebce10ea5 Mon Sep 17 00:00:00 2001 From: Christian C Date: Tue, 4 Mar 2025 17:13:42 -0800 Subject: Detect build platform --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b8f5d73..1fafe0b 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,12 @@ OBJS=$(OBJS_sub:.c=.o) OBJ_DIRS_sub=$(shell find $(SRC_DIR) -type d) OBJ_DIRS=$(subst $(SRC_DIR),$(OBJ_DIR),$(OBJ_DIRS_sub)) -PKGCONF=pkgconf +ifeq ($(shell uname -s),Linux) + PKGCONF=pkgconf +endif +ifeq ($(shell uname -s),Darwin) + PKGCONF=pkg-config +endif CFLAGS= CFLAGS+=$(shell $(PKGCONF) --cflags $(PKGS)) -- cgit v1.2.1