doc: update IRC reference to Libera.Chat
[libserialport/gsi.git] / examples / Makefile
blobe533e626f1f036a661b0109c122aaa0984e00061
1 # A simple Makefile to build the examples in this directory.
3 # This example file is released to the public domain.
5 CC = gcc
6 PKG_CONFIG = pkg-config
7 CFLAGS = -g -Wall $(shell $(PKG_CONFIG) --cflags libserialport)
8 LIBS = $(shell $(PKG_CONFIG) --libs libserialport)
10 SOURCES = $(wildcard *.c)
12 BINARIES = $(SOURCES:.c=)
14 %: %.c
15 $(CC) $(CFLAGS) $< $(LIBS) -o $@
17 all: $(BINARIES)
19 clean:
20 rm $(BINARIES)