aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 66092f8..a81885e 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,10 @@ INCLUDE_DIR = include
BUILD = build
TARGET = $(BUILD)/ccshell
-CPPFLAGS = -I$(INCLUDE_DIR) -MMD -MP
-CXXFLAGS = -std=c++23 -Wall -Wextra -O2
+MAKEFLAGS += -j8
+
+CPPFLAGS = -I$(INCLUDE_DIR) -MMD -MP -flto
+CXXFLAGS = -std=c++23 -Wall -Wextra -O3 -flto
# static
LDFLAGS += -static -static-libgcc -static-libstdc++
@@ -27,4 +29,8 @@ $(BUILD)/%.cc.o: %.cc
clean:
rm -rf $(BUILD)
+fresh:
+ rm -rf $(BUILD)
+ make
+
.PHONY: clean