CC = cc CPP = cc -E LDFLAGS = -L/usr/lib CFLAGS = -Iconf -O2 -O BIN_PROG = nn nnusage nngrab nnstats BIN_LINK = nncheck nnadmin nntidy nngoback nngrep nnpost nnbatch nnview LIB_PROG = aux upgrade_rc MASTER_PROG = back_act nnspew NN.1 = nn.1.nov SHELL = /bin/sh MASTER = master.o collect.o expire.o proto.o hostname.o global.o options.o active.o db.o nntp.o aux.o pack_date.o pack_name.o pack_subject.o news.o digest.o NN = nn.o admin.o proto.o global.o options.o db.o nntp.o init.o variable.o term.o keymap.o macro.o regexp.o menu.o more.o newsrc.o group.o folder.o dir.o aux.o sort.o articles.o sequence.o kill.o active.o fullname.o answer.o reroute.o hostname.o save.o unshar.o decode.o execute.o pack_date.o pack_name.o pack_subject.o news.o digest.o match.o chset.o NOVOBJ = awksplit.o hash.o hdbm.o libnov.o split.o ACCT = account.o global.o options.o proto.o hostname.o all: $(BIN_PROG) $(LIB_PROG) $(MASTER_PROG) inst client: $(BIN_PROG) $(LIB_PROG) inst master: $(MASTER_PROG) inst nn: $(NN) $(NOVOBJ) @echo linking nn @$(CC) -o nn $(CFLAGS) $(NN) $(NOVOBJ) $(LDFLAGS) -lncurses nnmaster: $(MASTER) @echo linking nnmaster @$(CC) -o nnmaster $(CFLAGS) $(MASTER) $(LDFLAGS) nnstats: nnstats.sh prefix cat prefix nnstats.sh > nnstats ; chmod +x nnstats nnusage: nnusage.sh prefix cat prefix nnusage.sh > nnusage ; chmod +x nnusage nngrab: nngrab.sh prefix cat prefix nngrab.sh > nngrab ; chmod +x nngrab aux: aux.sh prefix cat prefix aux.sh > aux ; chmod +x aux upgrade_rc: upgrade_rc.sh prefix cat prefix upgrade_rc.sh > upgrade_rc ; chmod +x upgrade_rc nnacct: $(ACCT) @echo linking nnacct @$(CC) -o nnacct $(CFLAGS) $(ACCT) $(LDFLAGS) back_act: back_act.sh prefix cat prefix back_act.sh > back_act ; chmod +x back_act nnspew: nnspew.sh prefix cat prefix nnspew.sh > nnspew ; chmod +x nnspew prefix: config.h mkprefix ./mkprefix prefix < /dev/null > prefix mkprefix: prefix.o global.o $(CC) -o mkprefix $(CFLAGS) prefix.o global.o $(LDFLAGS) update.h: config.h patchlevel.h Makefile @sh -c "[ -f update.h ] || (echo 0 > update.h)" @sh -c "expr `cat update.h` + 1 > update1.h && mv update1.h update.h" @echo configuration number updated to `cat update.h` cvt-help: config.h cvt-help.c $(CC) -o cvt-help cvt-help.c $(LDFLAGS) usercheck: config.h usercheck.c $(CC) -o usercheck usercheck.c $(LDFLAGS) inst: config.h xmakefile inst.sh cvt-help usercheck mkprefix man/nn.1 @echo building install script: ./inst @./mkprefix full < /dev/null > inst @echo BIN_PROG='"'$(BIN_PROG)'"' >> inst @echo BIN_LINK='"'$(BIN_LINK)'"' >> inst @echo LIB_PROG='"'$(LIB_PROG)'"' >> inst @echo MASTER_PROG='"'$(MASTER_PROG)'"' >> inst @cat inst.sh >> inst @chmod 755 inst man/nn.1: man/nn.1.nov man/nn.1.nnmaster cp -p man/$(NN.1) man/nn.1 clean: rm -f $(BIN_PROG) $(LIB_PROG) $(MASTER_PROG) cvt-help usercheck rm -f prefix mkprefix inst rm -f man/nn.1 account.o: account.c config.h global.h options.h proto.h account.h active.o: active.c config.h global.h data.h admin.o: admin.c config.h global.h data.h db.h proto.h keymap.h nn_term.h answer.o: answer.c config.h global.h data.h news.h keymap.h nn_term.h options.h regexp.h chset.h aux.h articles.o: articles.c config.h global.h data.h db.h articles.h regexp.h news.h aux.o: aux.c config.h global.h chset.h nn_term.h chset.o: chset.c config.h global.h chset.h collect.o: collect.c config.h global.h data.h db.h news.h db.o: db.c config.h global.h data.h db.h decode.o: decode.c config.h global.h data.h digest.o: digest.c config.h global.h data.h news.h debug.h dir.o: dir.c config.h global.h data.h articles.h dir.h execute.o: execute.c config.h global.h data.h keymap.h nn_term.h expire.o: expire.c config.h global.h data.h db.h dir.h folder.o: folder.c config.h global.h data.h articles.h news.h keymap.h nn_term.h menu.h fullname.o: fullname.c config.h global.h global.o: global.c config.h global.h data.h patchlevel.h update.h group.o: group.c config.h global.h data.h articles.h db.h keymap.h nn_term.h menu.h regexp.h hostname.o: hostname.c config.h global.h init.o: init.c config.h global.h data.h articles.h keymap.h nn_term.h menu.h keymap.o: keymap.c config.h global.h data.h keymap.h nn_term.h kill.o: kill.c config.h global.h data.h keymap.h nn_term.h regexp.h macro.o: macro.c config.h global.h data.h keymap.h menu.h nn_term.h master.o: master.c config.h global.h data.h db.h proto.h options.h match.o: match.c config.h global.h regexp.h menu.o: menu.c config.h global.h data.h articles.h keymap.h nn_term.h menu.h regexp.h more.o: more.c config.h global.h data.h news.h keymap.h nn_term.h menu.h regexp.h news.o: news.c config.h global.h data.h news.h newsrc.o: newsrc.c config.h global.h data.h options.h regexp.h keymap.h nn_term.h articles.h nn.o: nn.c config.h global.h data.h menu.h keymap.h nn_term.h options.h proto.h articles.h nntp.o: nntp.c config.h global.h data.h nntp.h patchlevel.h options.o: options.c config.h global.h data.h options.h pack_date.o: pack_date.c config.h global.h data.h pack_name.o: pack_name.c config.h global.h data.h pack_subject.o: pack_subject.c config.h global.h data.h prefix.o: prefix.c config.h global.h proto.o: proto.c config.h global.h proto.h regexp.o: regexp.c config.h global.h data.h regexp.h reroute.o: reroute.c config.h global.h data.h save.o: save.c config.h global.h data.h keymap.h nn_term.h news.h sequence.o: sequence.c config.h global.h data.h debug.h sort.o: sort.c config.h global.h data.h articles.h term.o: term.c config.h global.h data.h keymap.h regexp.h nn_term.h unshar.o: unshar.c config.h global.h data.h variable.o: variable.c config.h global.h data.h keymap.h regexp.h chset.h awksplit.o: awksplit.c config.h global.h hash.o: hash.c config.h global.h hdbm.h hash.h hdbm.o: hdbm.c config.h global.h hdbm.h hdbmint.h libnov.o: libnov.c config.h global.h hash.h hdbm.h newsoverview.h news.h split.o: split.c config.h global.h nn1: $(NN) $(CC) -o nn1 -Mnn1 $(CFLAGS) $(NN) $(LDFLAGS) -lncurses nnmaster1: $(MASTER) $(CC) -o nnmaster1 -Mnnmaster1 $(CFLAGS) $(MASTER) $(LDFLAGS) lint: echo LINTING NN lint -Iconf -u $(NN:.o=.c) echo LINTING NOVOBJ lint -Iconf -u $(NOVOBJ:.o=.c)