+# A simple Makefile to build the examples in this directory.
+#
+# This example file is released to the public domain.
+
CC = gcc
PKG_CONFIG = pkg-config
CFLAGS = -g -Wall $(shell $(PKG_CONFIG) --cflags libserialport)
You can also build these examples using any other compiler, IDE or build
system. You just need the libserialport.h header available to compile them,
and the libserialport library available to link and run them.
+
+These example files are hereby released into the public domain by the author.
#include <libserialport.h>
#include <stdio.h>
-/* Example of how to get a list of serial ports on the system. */
+/* Example of how to get a list of serial ports on the system.
+ *
+ * This example file is released to the public domain. */
int main(int argc, char **argv)
{
#include <libserialport.h>
#include <stdio.h>
-/* Example of how to get information about a serial port. */
+/* Example of how to get information about a serial port.
+ *
+ * This example file is released to the public domain. */
int main(int argc, char **argv)
{