From eb49b013a7e1fc29eb106ca47086e2f400123ecc Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 10 Oct 2021 12:01:52 +0200 Subject: [PATCH] Makefile: Add profile target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index cefe153..788f272 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,12 @@ GTEST_OBJECTS=$(filter-out qswiki.o, $(WIKIOBJECTS)) .DEFAULT_GOAL := qswiki release: CXXFLAGS=$(RELEASE_CXXFLAGS) +profile: CXXFLAGS=$(RELEASE_CXXFLAGS) -pg +profile: LDFLAGS+= -pg + release: qswiki +profile: qswiki + qswiki: $(WIKIOBJECTS) $(CXX) $(WIKIOBJECTS) ${LDFLAGS} ${INCLUDEFLAGS} -o qswiki