File tree Expand file tree Collapse file tree 1 file changed +36
-7
lines changed Expand file tree Collapse file tree 1 file changed +36
-7
lines changed Original file line number Diff line nu
10000
mber Diff line change @@ -12,20 +12,49 @@ A comprehensive C utility library with logic functions and cross-platform suppor
12
12
13
13
## Building
14
14
15
- ### Using CMake
15
+ ### Quick Start (Recommended)
16
16
``` bash
17
- mkdir build && cd build
18
- cmake ..
17
+ # Use the automated build script
18
+ bash build.sh
19
+ ```
20
+
21
+ ### Manual Build Options
22
+
23
+ #### Using Makefile (Direct)
24
+ ``` bash
25
+ make all # Build everything (static, shared, tests)
26
+ make static # Build static library only
27
+ make shared # Build shared library only
28
+ make test # Build and run tests
29
+ make clean # Clean build artifacts
30
+ ```
31
+
32
+ #### Using Autotools
33
+ ``` bash
34
+ autoreconf --install
35
+ ./configure
19
36
make
37
+ make test
20
38
```
21
39
22
- ### Using Makefile
40
+ #### Using CMake (if available)
23
41
``` bash
24
- make shared # Build shared library
25
- make static # Build static library
26
- make tests # Build test programs
42
+ mkdir build && cd build
43
+ cmake ..
44
+ make
27
45
```
28
46
47
+ ### Troubleshooting
48
+
49
+ ** CMake not found?**
50
+ - Use ` bash build.sh ` or ` make all ` instead
51
+ - The build script will auto-install dependencies on MSYS2/Linux
52
+
53
+ ** Missing dependencies?**
54
+ - MSYS2: ` pacman -S autoconf gcc make `
55
+ - Ubuntu/Debian: ` sudo apt-get install autoconf gcc make `
56
+ - Fedora: ` sudo dnf install autoconf gcc make `
57
+
29
58
## How to Code
30
59
31
60
You can easily add it to your code when you build the project. Nothing messy ;)
You can’t perform that action at this time.
0 commit comments