Skip to content

Commit cb98cdb

Browse files
Added shared library compile command to README.md.
1 parent 5fca8ab commit cb98cdb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ Counts lines of code recursively in a directory, only works on windows and linux
33

44
On windows? You're in luck! Prebuilt executable should be in releases, if I remember, but that is a big if.
55
On ubuntu? You're in luck! Prebuilt executable is in releases.
6+
7+
This repository can now be configured to be built into a shared library, include csloc.h in your code to use it.
8+
9+
gcc -O3 -c csloc.c -fPIC
10+
11+
gcc -O3 -c get_sub_dir.c -fPIC
12+
13+
gcc -shared -o libcsloc csloc.o get_sub_dir.o

0 commit comments

Comments
 (0)