Skip to content

Commit

Permalink
mk: use -O3 with Release and enable debug with C_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Sep 6, 2023
1 parent 93bd089 commit 013708e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.PHONY: build
build: external
@[ -f "build/build.ninja" ] || cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-gdwarf-4"
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-gdwarf-4 -g3"
@cmake --build build --parallel

.PHONY: webui
Expand All @@ -21,20 +21,20 @@ webui:
.PHONY: release
release: external
make clean
cmake -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-g"
make build

.PHONY: systemd
systemd: external
make clean
cmake -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
cmake -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-g" \
-DUSE_SD_SOCK=ON
make build

.PHONY: unix
unix: external
make clean
cmake -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
cmake -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-g" \
-DUSE_UNIX_SOCK=ON
make build

Expand Down

0 comments on commit 013708e

Please sign in to comment.