]> sigrok.org Git - libserialport.git/blame - examples/Makefile
Add examples directory with two example programs.
[libserialport.git] / examples / Makefile
CommitLineData
8c1a14e6
ML
1CC = gcc
2PKG_CONFIG = pkg-config
3CFLAGS = -g -Wall $(shell $(PKG_CONFIG) --cflags libserialport)
4LIBS = $(shell $(PKG_CONFIG) --libs libserialport)
5
6SOURCES = $(wildcard *.c)
7
8BINARIES = $(SOURCES:.c=)
9
10%: %.c
11 $(CC) $(CFLAGS) $< $(LIBS) -o $@
12
13all: $(BINARIES)
14
15clean:
16 rm $(BINARIES)