]>
Commit | Line | Data |
---|---|---|
8c1a14e6 ML |
1 | This directory contains example programs showing how to use libserialport. |
2 | ||
3 | The examples currently included are: | |
4 | ||
5 | list_ports.c - displays a list of ports on the system. | |
6 | port_info.c - displays info about a particular port on the system. | |
7 | ||
8 | The programs themselves are completely OS-independent, and require only a | |
9 | C compiler and libserialport. | |
10 | ||
11 | The Makefile in this directory will attempt to build all the examples, | |
12 | using 'gcc' to compile them and 'pkg-config' to discover the include | |
13 | paths and linker settings needed to build with libserialport. It provides | |
14 | a minimal example of how to write a Makefile to build a program using | |
15 | libserialport. | |
16 | ||
17 | If you have make, gcc, pkg-config and libserialport installed correctly | |
18 | then running 'make' should build the example programs in this directory. | |
19 | If this doesn't work, you may need to modify the Makefile or set necessary | |
20 | paths in your environment to suit your system. | |
21 | ||
22 | You can also build these examples using any other compiler, IDE or build | |
23 | system. You just need the libserialport.h header available to compile them, | |
24 | and the libserialport library available to link and run them. | |
ee12a01e ML |
25 | |
26 | These example files are hereby released into the public domain by the author. |