1 # A simple Makefile to build the examples in this directory.
3 # This example file is released to the public domain.
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=)
15 $(CC) $(CFLAGS) $< $(LIBS) -o $@