| .. | ||
| build.c | ||
| demo.c | ||
| lib.c | ||
| README.md | ||
Library
Builds libsample.a and an executable that uses it. use(demo, sample)
adds the archive in dependency order and relinks demo after lib.c
changes.
cc -o build build.c
./build run demo # 2 + 3 = 5
| .. | ||
| build.c | ||
| demo.c | ||
| lib.c | ||
| README.md | ||
Builds libsample.a and an executable that uses it. use(demo, sample)
adds the archive in dependency order and relinks demo after lib.c
changes.
cc -o build build.c
./build run demo # 2 + 3 = 5