Installing libkemo-m104

1) Become root
  % su
2) Edit the Makefile:
   You can change the DESTDIR, CC, CFLAGS, MANDIR, INCDIR and LIBDIR
   definitions to your liking.
3) compile it with make:
   # make
   This shoud produce the libkemo-m104.so.1 and libkemo-m104.a files.
   libkemo-m104.so.1 is the shared library and libkemo-m104.a is the static library.
4) Install it:
   # make install
5) Testing the library:
   if your module is not plugged to /dev/lp1 you should edit the main.c file and
   change the PORT_TO_TEST definition.
   If you wish to test both the shared and static library type
   # make test
   If you only wish to test the static library type
   # make static_test
   If you are only interested in testing the shared library type
   # make shared_test
   Then, the test programm will run several tests and you will have
   to watch the leds on your module to check if everything is ok.
6) Uninstalling the library
   If the path had not changed since you installed it, just type
   # make uninstall

7) Use it
   To use this library, there must be the #include<kemo-M104.h>
   in your source code. 
   Then, you must be root:
   %su
   To compile *.c with libkemo-m104 type:
   # gcc ${CFLAGS} -o progname -lkemo-m104
   If you wish non root users to be able to run your programm type: 
   # chmod 4755 progname

Have fun with this toy.
Lionel, trollhunter Bouchpan-Lerust-Juery
<trollhunter@linuxfr.org>

