# Generated automatically from Makefile.in by configure.
# $Id: Makefile.in,v 1.4 1993/05/27 20:25:08 root Exp $
#
# $Log: Makefile.in,v $
# Revision 1.4  1993/05/27  20:25:08  root
# Replaced INSTALL with INSTALL_PROGRAM
#
# Revision 1.3  1993/04/28  23:52:54  root
# Changed "tar ..." to "gtar ..."
#
# Revision 1.2  1993/04/19  14:41:15  alden
# Changed "fixman ..." to "./fixman ..."
#
# Revision 1.1  1993/03/28  19:33:19  alden
# Initial revision
#
#
# Makefile for nntplink
#
srcdir = .
VPATH = .

SRC = $(srcdir)/src

CC = gcc

INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)
MAKE = make

DEFS =  -DDIRENT=1 -DSTDC_HEADERS=1 -DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_VALUES_H=1 -DHAVE_VARARGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_FDOPEN=1 -DHAVE__LONGJMP=1 -DHAVE_MEMCPY=1 -DHAVE_MMAP=1 -DHAVE_SELECT=1 -DHAVE__SETJMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRCHR=1 -DHAVE_SETPGRP_ARGS=1 -DHAVE_WORKING_SELECT=1
LIBS = 
ALLOCA = @ALLOCA@

NEWSID = news

CFLAGS = -O
LDFLAGS = $(CFLAGS)

prefix = 
exec_prefix = $(prefix)

bindir = $(exec_prefix)/usr/lib/news/bin
manext = 8
mandir = $(prefix)/usr/local/manuals/manl/man$(manext)

all:	include/conf.h nntplink

include/conf.h:
	@echo " "
	@echo "Sorry, include/conf.h does not exist.  Did you read the INSTALL"
	@echo "file?  Please read INSTALL and try again."
	@echo " "
	@exit 1

nntplink:
	(cd $(SRC); \
	$(MAKE) CFLAGS="$(CFLAGS)" DEFS="$(DEFS)" LIBS="$(LIBS)" CC="$(CC)" all)

nntplink_man:
	./fixman $(srcdir)/man/nntplink.man $(srcdir)/man/nntplink.$(manext)

install:	nntplink
	$(INSTALL_PROGRAM) $(SRC)/nntplink $(bindir)/nntplink

install_man:	nntplink_man
	$(INSTALL_DATA) $(srcdir)/man/nntplink.$(manext) $(mandir)/nntplink.$(manext)

clean:
	(cd $(SRC); $(MAKE) clean)
	rm -f $(srcdir)/man/nntplink.$(manext)
	rm -f *~ */*~ #*# */#*#

realclean:	clean
	rm -f $(srcdir)/Makefile
	rm -f $(srcdir)/src/Makefile
	rm -f $(srcdir)/config.status
	rm -f $(srcdir)/include/conf.h
	rm -f $(srcdir)/nntplink.tar
	rm -f $(srcdir)/patch.*

distribution:	clean
	autoconf
	(cd ..; \
	gtar -c -f nntplink/nntplink.tar -X nntplink/.tar-excludes nntplink)
