Skip to content

Commit

Permalink
optional CLI_FLAGS to build
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Mar 2, 2024
1 parent 0afe57e commit 7da296a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FRAMEWORK_PATH = -F/System/Library/PrivateFrameworks
FRAMEWORK = -framework Carbon -framework Cocoa -framework CoreServices -framework CoreVideo -framework SkyLight
CLI_FLAGS =
BUILD_FLAGS = -std=c99 -Wall -g -O0 -fvisibility=hidden -mmacosx-version-min=11.0 -fno-objc-arc -arch x86_64 -arch arm64 -sectcreate __TEXT __info_plist $(INFO_PLIST)
BUILD_PATH = ./bin
DOC_PATH = ./doc
Expand Down Expand Up @@ -64,4 +65,4 @@ clean: clean-build

$(BUILD_PATH)/yabai: $(YABAI_SRC)
mkdir -p $(BUILD_PATH)
xcrun clang $^ $(BUILD_FLAGS) $(FRAMEWORK_PATH) $(FRAMEWORK) -o $@
xcrun clang $^ $(BUILD_FLAGS) $(CLI_FLAGS) $(FRAMEWORK_PATH) $(FRAMEWORK) -o $@

0 comments on commit 7da296a

Please sign in to comment.