chiark / gitweb /
Many options, and a manpage
[innduct.git] / backends / Makefile
1 ##  $Id: Makefile 7734 2008-04-06 09:25:56Z iulius $
2
3 include ../Makefile.global
4
5 top           = ..
6 CFLAGS        = $(GCFLAGS)
7
8 ALL           = actmerge actsync actsyncd archive batcher buffchan \
9                 cvtbatch filechan inndf innxmit innxbatch mod-active \
10                 news2mail ninpaths nntpget nntpsend overchan send-ihave \
11                 send-nntp send-uucp sendinpaths sendxbatches shlock \
12                 shrinkfile innduct
13
14 MAN           = ../doc/man/send-uucp.8
15
16 SOURCES       = actsync.c archive.c batcher.c buffchan.c cvtbatch.c \
17                 filechan.c inndf.c innxbatch.c innxmit.c map.c ninpaths.c \
18                 nntpget.c overchan.c shlock.c shrinkfile.c innduct.c
19
20 all: $(ALL)
21
22 man: $(MAN)
23
24 warnings:
25         $(MAKE) COPT='$(WARNINGS)' all
26
27 install: all
28         for F in actmerge actsyncd news2mail nntpsend send-ihave send-nntp \
29                  send-uucp sendinpaths sendxbatches innduct ; do \
30             $(CP_XPUB) $$F $D$(PATHBIN)/$$F ; \
31         done
32         $(CP_XPRI) mod-active $D$(PATHBIN)/mod-active
33         $(LI_XPRI) overchan $D$(PATHBIN)/overchan
34         for F in actsync archive batcher buffchan cvtbatch filechan inndf \
35                  innxbatch innxmit ninpaths nntpget shlock shrinkfile ; do \
36             $(LI_XPUB) $$F $D$(PATHBIN)/$$F ; \
37         done
38
39 clean:
40         rm -f *.o $(ALL)
41         rm -rf .libs
42
43 clobber distclean: clean
44         rm -f tags
45
46 tags ctags: $(SOURCES)
47         $(CTAGS) $(SOURCES)
48
49 profiled:
50         $(MAKEPROFILING) all
51
52 ##  Compilation rules.
53
54 BOTH            = $(LIBSTORAGE) $(LIBHIST) $(LIBSTORAGE) $(LIBINN)
55
56 LINK            = $(LIBLD) $(LDFLAGS) -o $@
57 INNLIBS         = $(LIBINN) $(LIBS)
58 STORELIBS       = $(BOTH) $(EXTSTORAGELIBS) $(LIBS)
59
60 FIX             = $(FIXSCRIPT)
61
62 $(FIXSCRIPT):
63         @echo Run configure before running make.  See INSTALL for details.
64         @exit 1
65
66 INNDUCT_WARNING_CFLAGS= \
67         -Wall -Wwrite-strings -Wpointer-arith -Wmissing-declarations \
68         -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
69
70 innduct.o: CFLAGS += $(INNDUCT_WARNING_CFLAGS)
71
72 actsync:        actsync.o    $(LIBINN)  ; $(LINK) actsync.o    $(INNLIBS)
73 archive:        archive.o    $(BOTH)    ; $(LINK) archive.o    $(STORELIBS)
74 batcher:        batcher.o    $(BOTH)    ; $(LINK) batcher.o    $(STORELIBS)
75 cvtbatch:       cvtbatch.o   $(BOTH)    ; $(LINK) cvtbatch.o   $(STORELIBS)
76 inndf:          inndf.o      $(BOTH)    ; $(LINK) inndf.o      $(STORELIBS)
77 innxbatch:      innxbatch.o  $(LIBINN)  ; $(LINK) innxbatch.o  $(INNLIBS)
78 innxmit:        innxmit.o    $(BOTH)    ; $(LINK) innxmit.o    $(STORELIBS)
79 ninpaths:       ninpaths.o              ; $(LINK) ninpaths.o
80 nntpget:        nntpget.o    $(BOTH)    ; $(LINK) nntpget.o    $(STORELIBS)
81 overchan:       overchan.o   $(BOTH)    ; $(LINK) overchan.o   $(STORELIBS)
82 shlock:         shlock.o     $(LIBINN)  ; $(LINK) shlock.o     $(INNLIBS)
83 shrinkfile:     shrinkfile.o $(LIBINN)  ; $(LINK) shrinkfile.o $(INNLIBS)
84 innduct:        innduct.o    $(BOTH)    ; $(LINK) innduct.o $(STORELIBS) -loop -lm
85
86 buffchan:       buffchan.o map.o $(LIBINN)
87         $(LINK) buffchan.o map.o $(LIBINN) $(LIBS)
88
89 filechan:       filechan.o map.o $(LIBINN)
90         $(LINK) filechan.o map.o $(LIBINN) $(LIBS)
91
92 actmerge:       actmerge.in      $(FIX) ; $(FIX) actmerge.in
93 actsyncd:       actsyncd.in      $(FIX) ; $(FIX) actsyncd.in
94 mod-active:     mod-active.in    $(FIX) ; $(FIX) mod-active.in
95 news2mail:      news2mail.in     $(FIX) ; $(FIX) news2mail.in
96 nntpsend:       nntpsend.in      $(FIX) ; $(FIX) nntpsend.in
97 send-ihave:     send-ihave.in    $(FIX) ; $(FIX) send-ihave.in
98 send-nntp:      send-nntp.in     $(FIX) ; $(FIX) send-nntp.in
99 send-uucp:      send-uucp.in     $(FIX) ; $(FIX) send-uucp.in
100 sendinpaths:    sendinpaths.in   $(FIX) ; $(FIX) sendinpaths.in
101 sendxbatches:   sendxbatches.in  $(FIX) ; $(FIX) sendxbatches.in
102
103 $(LIBINN):      ; (cd ../lib ; $(MAKE))
104 $(LIBSTORAGE):  ; (cd ../storage ; $(MAKE))
105 $(LIBHIST):     ; (cd ../history ; $(MAKE))
106
107 ../doc/man/send-uucp.8: send-uucp
108         $(POD2MAN) -s 8 $? > $@
109
110
111 ##  Dependencies.  Default list, below, is probably good enough.
112
113 depend: Makefile $(SOURCES)
114         $(MAKEDEPEND) '$(CFLAGS)' $(SOURCES)
115
116 # DO NOT DELETE THIS LINE -- make depend depends on it.
117 actsync.o: actsync.c ../include/config.h ../include/inn/defines.h \
118   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
119   ../include/portable/wait.h ../include/config.h ../include/inn/innconf.h \
120   ../include/inn/defines.h ../include/inn/messages.h ../include/inn/qio.h \
121   ../include/libinn.h ../include/paths.h
122 archive.o: archive.c ../include/config.h ../include/inn/defines.h \
123   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
124   ../include/inn/innconf.h ../include/inn/defines.h \
125   ../include/inn/messages.h ../include/inn/wire.h ../include/libinn.h \
126   ../include/paths.h ../include/storage.h
127 batcher.o: batcher.c ../include/config.h ../include/inn/defines.h \
128   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
129   ../include/inn/innconf.h ../include/inn/defines.h \
130   ../include/inn/messages.h ../include/inn/timer.h ../include/libinn.h \
131   ../include/paths.h ../include/storage.h
132 buffchan.o: buffchan.c ../include/config.h ../include/inn/defines.h \
133   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
134   ../include/inn/innconf.h ../include/inn/defines.h \
135   ../include/inn/messages.h ../include/inn/qio.h ../include/libinn.h \
136   ../include/paths.h map.h
137 cvtbatch.o: cvtbatch.c ../include/config.h ../include/inn/defines.h \
138   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
139   ../include/inn/innconf.h ../include/inn/defines.h \
140   ../include/inn/messages.h ../include/inn/qio.h ../include/inn/wire.h \
141   ../include/libinn.h ../include/paths.h ../include/storage.h
142 filechan.o: filechan.c ../include/config.h ../include/inn/defines.h \
143   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
144   ../include/inn/innconf.h ../include/inn/defines.h \
145   ../include/inn/messages.h ../include/libinn.h ../include/paths.h map.h
146 inndf.o: inndf.c ../include/config.h ../include/inn/defines.h \
147   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
148   ../include/inn/innconf.h ../include/inn/defines.h \
149   ../include/inn/messages.h ../include/inn/qio.h ../include/libinn.h \
150   ../include/ov.h ../include/storage.h ../include/inn/history.h \
151   ../include/paths.h
152 innxbatch.o: innxbatch.c ../include/config.h ../include/inn/defines.h \
153   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
154   ../include/portable/socket.h ../include/config.h \
155   ../include/portable/time.h ../include/inn/innconf.h \
156   ../include/inn/defines.h ../include/inn/messages.h \
157   ../include/inn/timer.h ../include/libinn.h ../include/nntp.h
158 innxmit.o: innxmit.c ../include/config.h ../include/inn/defines.h \
159   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
160   ../include/portable/socket.h ../include/config.h \
161   ../include/portable/time.h ../include/inn/history.h \
162   ../include/inn/defines.h ../include/inn/innconf.h \
163   ../include/inn/messages.h ../include/inn/qio.h ../include/inn/timer.h \
164   ../include/inn/wire.h ../include/libinn.h ../include/nntp.h \
165   ../include/paths.h ../include/storage.h
166 map.o: map.c ../include/config.h ../include/inn/defines.h \
167   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
168   ../include/libinn.h ../include/paths.h map.h
169 ninpaths.o: ninpaths.c ../include/config.h ../include/inn/defines.h \
170   ../include/inn/system.h ../include/clibrary.h ../include/config.h
171 nntpget.o: nntpget.c ../include/config.h ../include/inn/defines.h \
172   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
173   ../include/portable/socket.h ../include/config.h \
174   ../include/portable/time.h ../include/inn/history.h \
175   ../include/inn/defines.h ../include/inn/innconf.h \
176   ../include/inn/messages.h ../include/libinn.h ../include/nntp.h \
177   ../include/paths.h
178 overchan.o: overchan.c ../include/config.h ../include/inn/defines.h \
179   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
180   ../include/portable/time.h ../include/config.h ../include/inn/innconf.h \
181   ../include/inn/defines.h ../include/inn/messages.h ../include/inn/qio.h \
182   ../include/libinn.h ../include/ov.h ../include/storage.h \
183   ../include/inn/history.h ../include/paths.h
184 shlock.o: shlock.c ../include/config.h ../include/inn/defines.h \
185   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
186   ../include/inn/messages.h ../include/inn/defines.h
187 shrinkfile.o: shrinkfile.c ../include/config.h ../include/inn/defines.h \
188   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
189   ../include/inn/innconf.h ../include/inn/defines.h \
190   ../include/inn/messages.h ../include/libinn.h