aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/makefile b/makefile
index 9042061..50c5ee8 100644
--- a/makefile
+++ b/makefile
@@ -1,18 +1,21 @@
FRAMEWORKS = -framework Carbon
BUILD_PATH = ./bin
-BUILD_FLAGS = -std=c99 -Wall -g -O0 -DSKHD_PROFILE
+BUILD_FLAGS = -std=c99 -Wall -g -O0
SKHD_SRC = ./src/skhd.c
BINS = $(BUILD_PATH)/skhd
-.PHONY: all clean install
+.PHONY: all clean install profile fast_profile
all: clean $(BINS)
install: BUILD_FLAGS=-std=c99 -O3
install: clean $(BINS)
-segfault: BUILD_FLAGS=-O0 -g -Wall -std=c99 -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=4 -fPIC -fno-strict-overflow -Wformat -Wformat-security -Werror=format-security
-segfault: clean $(BINS)
+profile: BUILD_FLAGS=-std=c99 -Wall -g -O0 -DSKHD_PROFILE
+profile: clean $(BINS)
+
+fast_profile: BUILD_FLAGS=-std=c99 -O3 -DSKHD_PROFILE
+fast_profile: clean $(BINS)
clean:
rm -rf $(BUILD_PATH)