diff options
author | Christian C <cc@localhost> | 2025-03-04 17:13:42 -0800 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-04 17:13:42 -0800 |
commit | a5d4202196086d96a4a2d0e6049bcbeebce10ea5 (patch) | |
tree | 31062947deb6f2eb5066e8649968d99b1f7f7b90 /Makefile | |
parent | 539f35bdae578037908fe8a01f8af14383bfaa40 (diff) |
Detect build platform
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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)) |