8000 Update README.md to enhance building instructions and streamline the … · dailker/everyutil-c@841ec06 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 841ec06

Browse files
committed
Update README.md to enhance building instructions and streamline the quick start process
1 parent a70d0ed commit 841ec06

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

README.md

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line nu 10000 mberDiff line change
@@ -12,20 +12,49 @@ A comprehensive C utility library with logic functions and cross-platform suppor
1212

1313
## Building
1414

15-
### Using CMake
15+
### Quick Start (Recommended)
1616
```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
1936
make
37+
make test
2038
```
2139

22-
### Using Makefile
40+
#### Using CMake (if available)
2341
```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
2745
```
2846

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+
2958
## How to Code
3059

3160
You can easily add it to your code when you build the project. Nothing messy ;)

0 commit comments

Comments
 (0)
0