patty/examples/Makefile
XANTRONIX Development adaeb0d6d2 Use openpty(3) to open PTYs
Use openpty(3) to open PTYs, to achieve compatibility with OpenBSD as
posix_openpty() returns a file descriptor which does not block on
read() nor select()
2024-03-01 00:20:47 -05:00

18 lines
286 B
Makefile

include ../mk/build.mk
CC = $(CROSS)cc
INCLUDE_PATH = ../include
CFLAGS += -I$(INCLUDE_PATH)
LDFLAGS = -L../src -lpatty -lutil
EXAMPLES = daemon connect listen ax25dump decode
all: $(EXAMPLES)
$(EXAMPLES): %: %.c
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
clean:
$(RM) $(EXAMPLES)