-#
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved. The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-# @(#)Makefile 5.2 (Berkeley) %G%
-#
-DESTDIR=
-CFLAGS=-O
-tset: tset.c
- ${CC} ${CFLAGS} tset.c -o tset -ltermlib
-install:
- install -s tset ${DESTDIR}/usr/ucb
-clean:
- rm -f *.o tset
+# @(#)Makefile 8.1 (Berkeley) %G%
+
+PROG= tset
+SRCS= map.c misc.c set.c term.c tset.c wrterm.c
+
+DPADD= ${LIBTERMCAP}
+LDADD= -ltermcap
+LINKS= ${BINDIR}/tset ${BINDIR}/reset
+MLINKS= tset.1 reset.1
+
+.include <bsd.prog.mk>