How to Compile

ComLinC comes with a Makefile in the project main directory. To compile the project to a shared library under GNU Linux, simply type make command. This will produce a libcomlinc.so file in the project main directory. The output screen looks like:
gcc -fPIC -c -Wall -ggdb -I. -I.. cl_base.c
gcc -fPIC -c -Wall -ggdb -I. -I.. cl_modem.c
gcc -fPIC -c -Wall -ggdb -I. -I.. cl_wireless.c
gcc -fPIC -c -Wall -ggdb -I. -I.. cl_dsp.c
gcc -shared -W1,soname,libcomlinc.so -o libcomlinc.so 
    cl_base.o cl_modem.o cl_wireless.o cl_dsp.o
As seen, the library is debuggable using GNU GDB.

Currently we don't provide an option to the make utility to produce a static library. But this can be done by modify the makefile manually.

The library should work under operating systems other than Linux, such as Unix and Windows, because ComLinC is developed upon GNU scientific library (GSL), which should work on OS's other than Linux.

Once the library is successfully compiled, you might want to run some tests or demo programs, which are located in the test directory. To make the test programs, type make test.

To clean the project directory, use make clean command. This will remove all the object files and the shared library, as well as the test programs, if any.



Kefei Lu 2007-12-03