blob: 646d7839c3ca768161d6cada1894aabf0ae8ca16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# IMPL
Version 0.1.0
## Description
A C project created with the gcli-style build system.
## Building
### Dependencies
Required:
- C11 compiler (gcc or clang)
- make
### Build Instructions
```bash
./configure
make
```
### Debug Build
```bash
./configure --debug
make
```
### Out-of-tree builds (optional)
You can also build in a separate directory:
```bash
mkdir build
cd build
../configure
make
```
### Installation
```bash
sudo make install
```
Default prefix is `/usr/local`. To change:
```bash
./configure --prefix=/usr
```
## Testing
```bash
make check
```
## IDE Support
### clangd / LSP
To generate `compile_commands.json` for clangd, use one of these methods:
**Option 1: Using compiledb (recommended)**
```bash
pip install compiledb
compiledb make
```
**Option 2: Using bear**
```bash
bear -- make
```
If the file is empty, try a clean build:
```bash
make clean
bear -- make
```
## Usage
```bash
./impl
```
|