
HTMLDIR=/afs/unc/home/msl/man/src_html
MANDIR=/usr/msl/vlsi/man
BINDIR=/usr/msl/vlsi/bin

CC=gcc
LD=gcc

CFLAGS=-g

all: tekdump tekdump.1 tekdump.html

install: tekdump
	cp tekdump /home/msl/tell/bin/pc_linux

tekdump: tekdump.o decode.o tty.o
	$(LD) $(LDFLAGS) -o $@ $^

tty.o: tty.h
tekdump.o: tty.h

clean:
	rm -f tekdump *.tmp *.o tekdump.1 tekdump.html core *~

#
# This isn't quite as clean as it looks.
# We want to have screen shots of the setup menus in the HTML version,
# and pod2html has a suitable (but undocumented) mechanism to let us do this.
# but pod2man doesn't strip out the html bits.
# So, run this, then edit tekdump.1, search for CENTER, and strip out
# those lines.
#
tekdump.1: tekdump.pod
	pod2man --section=1 --center="MSL local utilities" --release=MSL $^ > $@

POD2HTML=pod2html
tekdump.html: tekdump.pod
	$(POD2HTML) $^ > $@
