# Makefile for Link v0.97, a Z88 Eazylink client
# Copyright (c) 1995-98 Interlogic
# Unix port (c) 1998 Garry Lancaster
# This program is FREEWARE


# The following lines should be altered to suit your system

CC=gcc
CCFLAGS=-O2
LINKDEV=/dev/cua1
BINDIR=/usr/local/bin
MANDIR=/usr/local/man

# No lines should be altered below this point

link: link.c
	$(CC) -o link $(CCFLAGS) link.c

clean:
	rm -f *.o link

install: link
	install -o root -g root -m 0755 link $(BINDIR)/link
	install -o root -g root -m 0644 link.1 $(MANDIR)/man1/link.1
	ln -fs $(LINKDEV) /dev/z88link

