# Generated automatically from Makefile.in by configure.
# Makefile for NN version of mini inews.
#

TARGET	= inews

BINDIR	= /usr/lib/news/
SHELL	= /bin/sh

CC	= gcc
# General definitions here which apply to all -- form -DDEF
DEFS	= -DFOR_NN
# Link libraries -- form -lLIB
LIBS	= ../hostname.o -lcurses 
# Lint definitions -- same as DEFS, but form -D DEF
LDEFS	= -D lint -D FOR_NN
# Lint libraries -- same as LIBS, but form -l LIB
LLIBS	=
# Set to -g for debugging, -O for optimise, or both if compiler handles it
# DEBUG	= -O
CFLAGS	= -g -O $(DEFS) -I.. -I../conf

SRCS	= inews.c clientlib.c version.c
OBJS	= inews.o clientlib.o version.o
CLUDES	= clientlib.h conf.h nntp.h
KIT	= Makefile README README.NN $(SRCS) $(CLUDES)

$(TARGET): $(OBJS)
	$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)

$(OBJS):	$(CLUDES)

all:	$(TARGET)

Manifest:	$(KIT)
	touch Manifest
	rm -f foo
	ls -ls Manifest $(KIT) > foo
	mv foo Manifest
	ls -ls Manifest $(KIT) > foo
	mv foo Manifest

kit:	Manifest
	shar Manifest $(KIT) > inews.shar

clean:
	rm -f $(OBJS) core lint tags *~ inews

clobber:	clean
	rm -f $(TARGET) Make.Log Manifest $(KIT)

lint:	$(SRCS)
	lint -D lint $(LLIBES) $(LDEFS) $(SRCS) > lint

tags:	$(SRCS)
	ctags $(SRCS)

install:	$(TARGET)
	../inst inews $(TARGET)
#	install -o news -g news -m 511 -s -c $(TARGET) $(BINDIR)
