CFLAGS = $(or $(OPTFLAGS), -g) -Wall -I../include
SRC = \
	clockstart.c \
	openpty.c \
	readn.c \
	term.c \
	writen.c

OBJ = $(SRC:.c=.o)

all: libtst.a

tags:	$(SRC)
	ctags *.[ch]

clean:
	rm -f *.o *.a

libtst.a: $(OBJ)
	ar r $@ $(OBJ)


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

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

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

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

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