1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
CC=gcc
OFLAGS= -O2
BINPATH=debian/tmp/usr/sbin
# 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
chown news.news postit
cp -f postit $(BINPATH)
chown news.news $(BINPATH)/postit
cp -f sendnews $(BINPATH)
chown news.news $(BINPATH)/sendnews
install -d debian/tmp/usr/share/doc/postit/examples
cp -R samples/* debian/tmp/usr/share/doc/postit/examples/
install -d debian/tmp/etc/news
cp postit.conf debian/tmp/etc/news/postit.conf
chown news.news debian/tmp/etc/news/postit.conf
ifeq (.depend,$(wildcard .depend))
include .depend
endif
# THIS LINE IS REQUIRED BY SCUMOS.
|