diff --git a/Makefile b/Makefile
index 95dbc00d1cec828c277498bc4e57d9ab29d2d1df..6e78f41f25560de3123bfd8f6a8084c4821a6b4e 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,16 @@ DEPDIR          := dep
 INSTALL_DIR     := $(HOME)/poppi
 
 CXXFLAGS := -std=gnu++20 -Wall -Wshadow -Wno-unused-variable -Wno-uninitialized -Wno-sign-compare
+LINKFLAGS := -lpthread -lFLAC++ -lFLAC -lsamplerate -lcrypto
+UNAME := $(shell uname)
+ifeq ($(UNAME), Darwin)
+    CXXFLAGS += -I/opt/homebrew/include/
+    LINKFLAGS += -L/opt/homebrew/lib/ -framework AudioToolbox -framework CoreAudio
+endif
+ifeq ($(UNAME), Linux)
+    LINKFLAGS += -lpulse
+endif
 CXXFLAGS_RELEASE := -O3 -DNDEBUG
-LINKFLAGS := -lpthread -lpulse -lFLAC++ -lFLAC -lsamplerate -lcrypto
 
 VERSION := $(shell jq -r .version $(BUILDINFO_FILE))
 MIN_SERVER_VERSION := $(shell jq -r .minServerVersion $(BUILDINFO_FILE))