]> sigrok.org Git - libserialport.git/blame - examples/Makefile
change type of result variables to ssize_t
[libserialport.git] / examples / Makefile
CommitLineData
ee12a01e
ML
1# A simple Makefile to build the examples in this directory.
2#
3# This example file is released to the public domain.
4
8c1a14e6
ML
5CC = gcc
6PKG_CONFIG = pkg-config
7CFLAGS = -g -Wall $(shell $(PKG_CONFIG) --cflags libserialport)
8LIBS = $(shell $(PKG_CONFIG) --libs libserialport)
9
10SOURCES = $(wildcard *.c)
11
12BINARIES = $(SOURCES:.c=)
13
14%: %.c
15 $(CC) $(CFLAGS) $< $(LIBS) -o $@
16
17all: $(BINARIES)
18
19clean:
20 rm $(BINARIES)