Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Commit c463ec0

Browse files
committed
Makefile: added ability for debug build
1 parent d1e6968 commit c463ec0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ BUILD_DIR=build
33

44
default:
55
make clean
6-
make compile
6+
make debug
77

88
init:
99
git submodule init
@@ -17,10 +17,13 @@ server:
1717
make default
1818
./$(BUILD_DIR)/csync -s -p 1234
1919

20+
debug:
21+
mkdir -p $(BUILD_DIR)
22+
${G++_COMPILER} -g src/*.cpp src/net/*.cpp src/lib/zedwood/*.cpp -I src/ -I src/net/ -I src/lib/zedwood/ -o $(BUILD_DIR)/csync -lstdc++fs -std=c++17 -pthread
23+
2024
compile:
2125
# Create the build directory if it does not allready exist:
2226
mkdir -p $(BUILD_DIR)
23-
2427
${G++_COMPILER} src/*.cpp src/net/*.cpp src/lib/zedwood/*.cpp -I src/ -I src/net/ -I src/lib/zedwood/ -o $(BUILD_DIR)/csync -lstdc++fs -std=c++17 -pthread
2528

2629
clean:

0 commit comments

Comments
 (0)