gcc -c explorer.c -o explorer.o
gcc -c lc.c -o lc.o
gcc explorer.o lc.o -o lc
If you call ./lc with no arguments this use the current path, count lines on each file (.git folder and executables are excluded from counting). You can pass a custom path to start explorer. Exemple:
./lc ./foo
This tell to the program to start explore from foo directory.