$NetBSD: patch-ab,v 1.1.1.1 2005/01/02 02:51:41 cube Exp $ --- chat/Makefile.netbsd.orig 2004-12-31 23:50:59.000000000 +0100 +++ chat/Makefile.netbsd @@ -0,0 +1,29 @@ +DESTDIR = @DESTDIR@ +BINDIR = $(DESTDIR)/sbin +MANDIR = $(DESTDIR)/man/man8 + +CDEF1= -DTERMIOS # Use the termios structure +CDEF2= -DSIGTYPE=void # Standard definition +CDEF3= -DHAS_STRLFUNCS # strlcat and strlcpy +CDEFS= $(CDEF1) $(CDEF2) $(CDEF3) + +COPTS= -O2 -g -pipe +CFLAGS= $(COPTS) $(CDEFS) + +INSTALL= install + +all: chat + +chat: chat.o + $(CC) -o chat chat.o + +chat.o: chat.c + $(CC) -c $(CFLAGS) -o chat.o chat.c + +install: chat + mkdir -p $(BINDIR) + $(INSTALL) -s -c chat $(BINDIR) + $(INSTALL) -c -m 644 chat.8 $(MANDIR) + +clean: + rm -f chat.o chat *~