--- makefile.orig	2022-11-30 10:29:26.000000000 +0600
+++ makefile	2022-11-30 10:29:34.000000000 +0600
@@ -1,6 +1,6 @@
 FRAMEWORK_PATH = -F/System/Library/PrivateFrameworks
 FRAMEWORK      = -framework Carbon -framework Cocoa -framework CoreServices -framework SkyLight -framework ScriptingBridge -framework IOKit
-BUILD_FLAGS    = -std=c99 -Wall -DDEBUG -g -O0 -fvisibility=hidden -mmacosx-version-min=10.13
+CFLAGS         += -std=c99 -Wall -DNDEBUG -fvisibility=hidden
 BUILD_PATH     = ./bin
 DOC_PATH       = ./doc
 SMP_PATH       = ./examples
@@ -11,11 +11,8 @@
 
 all: clean $(BINS)
 
-install: BUILD_FLAGS=-std=c99 -Wall -DNDEBUG -O2 -fvisibility=hidden -mmacosx-version-min=10.13
 install: clean $(BINS)
-
-stats: BUILD_FLAGS=-std=c99 -Wall -DSTATS -DNDEBUG -O2 -fvisibility=hidden -mmacosx-version-min=10.13
-stats: clean $(BINS)
+	cp $(BINS) $(DESTDIR)/$(PREFIX)/$(BINS)
 
 man:
 	asciidoctor -b manpage $(DOC_PATH)/spacebar.asciidoc -o $(DOC_PATH)/spacebar.1 && \
@@ -26,4 +23,4 @@
 
 $(BUILD_PATH)/spacebar: $(SPACEBAR_SRC)
 	mkdir -p $(BUILD_PATH)
-	clang $^ $(BUILD_FLAGS) $(FRAMEWORK_PATH) $(FRAMEWORK) -o $@
+	$(CC) $^ $(CFLAGS) $(FRAMEWORK_PATH) $(FRAMEWORK) -o $@
