CC=gcc
OFLAGS= -O2

# add any compile flags needed here; -DTERM enables TERM usage
CFLAGS= $(OFLAGS)

OBJS= tcp.o nntp.o postit.o
SRCS= tcp.c nntp.c postit.c

# this is for TERM; add -ltermnet if you want to use postit with TERM
LIBS= 


all:	postit

postit: $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) -o $@ $(LIBS)

clean:
	-rm *.o core postit

dep:
	$(CC) -M $(SRCS) >.depend

install:
	strip postit
	cp -f postit /usr/lib/news/bin
	chown news.news /usr/lib/news/bin/postit
	chmod 4550 /usr/lib/news/bin/postit
	echo "Remember to copy the sendnews script from the samples"
	echo "directory to some bin directory; edit it to fit your needs."

ifeq (.depend,$(wildcard .depend))
include .depend
endif
# THIS LINE IS REQUIRED BY SCUMOS.
