1##  $Id: Makefile 9770 2014-12-14 20:55:09Z iulius $
2##
3##  There are no installation rules or other top-level rules for this
4##  directory as it's not properly part of INN.  Installation should be
5##  done by the user by hand for those files that they're interested in.
6
7include ../Makefile.global
8
9top           = ..
10CFLAGS        = $(GCFLAGS)
11
12ALL	      = archivegz auth_pass backlogstat cleannewsgroups \
13		delayer expirectl \
14		findreadgroups makeexpctl makestorconf mlockfile newsresp \
15		nnrp.access2readers.conf pullart reset-cnfs respool \
16		stathist thdexpire \
17		tunefeed
18
19all: $(ALL)
20
21warnings:
22	$(MAKE) COPT='$(WARNINGS)' all
23
24clean clobber distclean maintclean:
25	rm -f *.o $(ALL)
26	rm -rf .libs
27
28$(FIXSCRIPT):
29	@echo Run configure before running make.  See INSTALL for details.
30	@exit 1
31
32
33##  Compilation rules.
34
35LINK 		= $(LIBLD) $(LDFLAGS) -o $@
36FIX		= $(FIXSCRIPT)
37
38STORELIBS	= $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(LIBS)
39
40auth_pass:	auth_pass.o	; $(LINK) auth_pass.o $(LIBINN) $(CRYPT_LIBS)
41expirectl:	expirectl.o	; $(LINK) expirectl.o
42mlockfile:	mlockfile.o	; $(LINK) mlockfile.o
43newsresp:	newsresp.o	; $(LINK) newsresp.o $(LIBS)
44pullart:	pullart.o	; $(LINK) pullart.o $(LIBINN)
45reset-cnfs:	reset-cnfs.o	; $(LINK) reset-cnfs.o
46respool:	respool.o	; $(LINK) respool.o $(STORELIBS)
47
48archivegz:       archivegz.in       $(FIX) ; $(FIX) -i archivegz.in
49backlogstat:     backlogstat.in     $(FIX) ; $(FIX) backlogstat.in
50cleannewsgroups: cleannewsgroups.in $(FIX) ; $(FIX) cleannewsgroups.in
51delayer:         delayer.in         $(FIX) ; $(FIX) -i delayer.in
52findreadgroups:  findreadgroups.in  $(FIX) ; $(FIX) findreadgroups.in
53makeexpctl:      makeexpctl.in      $(FIX) ; $(FIX) makeexpctl.in
54makestorconf:    makestorconf.in    $(FIX) ; $(FIX) makestorconf.in
55nnrp.access2readers.conf: nnrp.access2readers.conf.in $(FIX) ; $(FIX) -i nnrp.access2readers.conf.in
56stathist:        stathist.in        $(FIX) ; $(FIX) -i stathist.in
57thdexpire:       thdexpire.in       $(FIX) ; $(FIX) thdexpire.in
58tunefeed:        tunefeed.in        $(FIX) ; $(FIX) -i tunefeed.in
59