# Generated automatically from Makefile.in by configure.
# Copyright 1999, 2000 by Paul Mattes.
#  Permission to use, copy, modify, and distribute this software and its
#  documentation for any purpose and without fee is hereby granted,
#  provided that the above copyright notice appear in all copies and that
#  both that copyright notice and this permission notice appear in
#  supporting documentation.

# Makefile for pr3287

RM = rm -f
CC = gcc

all: pr3287

prefix = /usr/local
exec_prefix = ${prefix}
MANDIR = ${prefix}/man
BINDIR = ${exec_prefix}/bin

#CDEBUGFLAGS = -g -Wall

XCPPFLAGS =  
CFLAGS = -g -O2 $(XCPPFLAGS) $(CDEBUGFLAGS)
LDFLAGS = 
LIBS = -lncurses -lreadline 
INSTALL = /usr/bin/install -c

OBJECTS = pr3287.o ctlr.o trace_ds.o tables.o telnet.o sf.o

version.o: version.txt mkversion.sh
	@chmod +x mkversion.sh version.txt
	sh ./mkversion.sh $(CC) c3270

pr3287: $(OBJECTS) version.o
	$(CC) -o $@ $(OBJECTS) version.o $(LDFLAGS) $(LIBS)

install: pr3287
	$(INSTALL) pr3287 $(BINDIR)/pr3287

install.man:
	$(INSTALL) pr3287.man $(MANDIR)/man1/pr3287.1

clean:
	$(RM) pr3287 *.o

depend:
	gccmakedep $(XCPPFLAGS) -s "# DO NOT DELETE" $(SRCS)

# -------------------------------------------------------------------------
# dependencies generated by makedepend

# DO NOT DELETE
