CFLAGS = $(or $(OPTFLAGS), -g) -Wall -I../include

#
# Master and slave programs
#
all: ptytstm ptytsts

clean:
	rm -f *.o ptytstm ptytsts

tags:
	ctags *.[ch]

LIBOBJ = ../lib/libtst.a

ptytsts: ptytsts.o $(LIBOBJ)
	gcc $(CFLAGS) -o ptytsts ptytsts.o $(LIBOBJ)

ptytstm: ptytstm.o $(LIBOBJ)
	gcc $(CFLAGS) -o ptytstm ptytstm.o $(LIBOBJ)

ptytstm.o ptytstm.ln:  \
		../include/tst.h

ptytsts.o ptytsts.ln:  \
		../include/tst.h
