chiark / gitweb /
wip compile
[inn-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.o: CFLAGS += -Wimplicit -Wstrict-prototypes -Wmissing-prototypes
67
68 actsync:        actsync.o    $(LIBINN)  ; $(LINK) actsync.o    $(INNLIBS)
69 archive:        archive.o    $(BOTH)    ; $(LINK) archive.o    $(STORELIBS)
70 batcher:        batcher.o    $(BOTH)    ; $(LINK) batcher.o    $(STORELIBS)
71 cvtbatch:       cvtbatch.o   $(BOTH)    ; $(LINK) cvtbatch.o   $(STORELIBS)
72 inndf:          inndf.o      $(BOTH)    ; $(LINK) inndf.o      $(STORELIBS)
73 innxbatch:      innxbatch.o  $(LIBINN)  ; $(LINK) innxbatch.o  $(INNLIBS)
74 innxmit:        innxmit.o    $(BOTH)    ; $(LINK) innxmit.o    $(STORELIBS)
75 ninpaths:       ninpaths.o              ; $(LINK) ninpaths.o
76 nntpget:        nntpget.o    $(BOTH)    ; $(LINK) nntpget.o    $(STORELIBS)
77 overchan:       overchan.o   $(BOTH)    ; $(LINK) overchan.o   $(STORELIBS)
78 shlock:         shlock.o     $(LIBINN)  ; $(LINK) shlock.o     $(INNLIBS)
79 shrinkfile:     shrinkfile.o $(LIBINN)  ; $(LINK) shrinkfile.o $(INNLIBS)
80 innduct:        innduct.o    $(LIBINN)  ; $(LINK) innduct.o    $(INNLIBS)
81
82 buffchan:       buffchan.o map.o $(LIBINN)
83         $(LINK) buffchan.o map.o $(LIBINN) $(LIBS)
84
85 filechan:       filechan.o map.o $(LIBINN)
86         $(LINK) filechan.o map.o $(LIBINN) $(LIBS)
87
88 actmerge:       actmerge.in      $(FIX) ; $(FIX) actmerge.in
89 actsyncd:       actsyncd.in      $(FIX) ; $(FIX) actsyncd.in
90 mod-active:     mod-active.in    $(FIX) ; $(FIX) mod-active.in
91 news2mail:      news2mail.in     $(FIX) ; $(FIX) news2mail.in
92 nntpsend:       nntpsend.in      $(FIX) ; $(FIX) nntpsend.in
93 send-ihave:     send-ihave.in    $(FIX) ; $(FIX) send-ihave.in
94 send-nntp:      send-nntp.in     $(FIX) ; $(FIX) send-nntp.in
95 send-uucp:      send-uucp.in     $(FIX) ; $(FIX) send-uucp.in
96 sendinpaths:    sendinpaths.in   $(FIX) ; $(FIX) sendinpaths.in
97 sendxbatches:   sendxbatches.in  $(FIX) ; $(FIX) sendxbatches.in
98
99 $(LIBINN):      ; (cd ../lib ; $(MAKE))
100 $(LIBSTORAGE):  ; (cd ../storage ; $(MAKE))
101 $(LIBHIST):     ; (cd ../history ; $(MAKE))
102
103 ../doc/man/send-uucp.8: send-uucp
104         $(POD2MAN) -s 8 $? > $@
105
106
107 ##  Dependencies.  Default list, below, is probably good enough.
108
109 depend: Makefile $(SOURCES)
110         $(MAKEDEPEND) '$(CFLAGS)' $(SOURCES)
111
112 # DO NOT DELETE THIS LINE -- make depend depends on it.
113 actsync.o: actsync.c ../include/config.h ../include/inn/defines.h \
114   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
115   ../include/portable/wait.h ../include/config.h ../include/inn/innconf.h \
116   ../include/inn/defines.h ../include/inn/messages.h ../include/inn/qio.h \
117   ../include/libinn.h ../include/paths.h
118 archive.o: archive.c ../include/config.h ../include/inn/defines.h \
119   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
120   ../include/inn/innconf.h ../include/inn/defines.h \
121   ../include/inn/messages.h ../include/inn/wire.h ../include/libinn.h \
122   ../include/paths.h ../include/storage.h
123 batcher.o: batcher.c ../include/config.h ../include/inn/defines.h \
124   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
125   ../include/inn/innconf.h ../include/inn/defines.h \
126   ../include/inn/messages.h ../include/inn/timer.h ../include/libinn.h \
127   ../include/paths.h ../include/storage.h
128 buffchan.o: buffchan.c ../include/config.h ../include/inn/defines.h \
129   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
130   ../include/inn/innconf.h ../include/inn/defines.h \
131   ../include/inn/messages.h ../include/inn/qio.h ../include/libinn.h \
132   ../include/paths.h map.h
133 cvtbatch.o: cvtbatch.c ../include/config.h ../include/inn/defines.h \
134   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
135   ../include/inn/innconf.h ../include/inn/defines.h \
136   ../include/inn/messages.h ../include/inn/qio.h ../include/inn/wire.h \
137   ../include/libinn.h ../include/paths.h ../include/storage.h
138 filechan.o: filechan.c ../include/config.h ../include/inn/defines.h \
139   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
140   ../include/inn/innconf.h ../include/inn/defines.h \
141   ../include/inn/messages.h ../include/libinn.h ../include/paths.h map.h
142 inndf.o: inndf.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/inn/qio.h ../include/libinn.h \
146   ../include/ov.h ../include/storage.h ../include/inn/history.h \
147   ../include/paths.h
148 innxbatch.o: innxbatch.c ../include/config.h ../include/inn/defines.h \
149   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
150   ../include/portable/socket.h ../include/config.h \
151   ../include/portable/time.h ../include/inn/innconf.h \
152   ../include/inn/defines.h ../include/inn/messages.h \
153   ../include/inn/timer.h ../include/libinn.h ../include/nntp.h
154 innxmit.o: innxmit.c ../include/config.h ../include/inn/defines.h \
155   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
156   ../include/portable/socket.h ../include/config.h \
157   ../include/portable/time.h ../include/inn/history.h \
158   ../include/inn/defines.h ../include/inn/innconf.h \
159   ../include/inn/messages.h ../include/inn/qio.h ../include/inn/timer.h \
160   ../include/inn/wire.h ../include/libinn.h ../include/nntp.h \
161   ../include/paths.h ../include/storage.h
162 map.o: map.c ../include/config.h ../include/inn/defines.h \
163   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
164   ../include/libinn.h ../include/paths.h map.h
165 ninpaths.o: ninpaths.c ../include/config.h ../include/inn/defines.h \
166   ../include/inn/system.h ../include/clibrary.h ../include/config.h
167 nntpget.o: nntpget.c ../include/config.h ../include/inn/defines.h \
168   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
169   ../include/portable/socket.h ../include/config.h \
170   ../include/portable/time.h ../include/inn/history.h \
171   ../include/inn/defines.h ../include/inn/innconf.h \
172   ../include/inn/messages.h ../include/libinn.h ../include/nntp.h \
173   ../include/paths.h
174 overchan.o: overchan.c ../include/config.h ../include/inn/defines.h \
175   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
176   ../include/portable/time.h ../include/config.h ../include/inn/innconf.h \
177   ../include/inn/defines.h ../include/inn/messages.h ../include/inn/qio.h \
178   ../include/libinn.h ../include/ov.h ../include/storage.h \
179   ../include/inn/history.h ../include/paths.h
180 shlock.o: shlock.c ../include/config.h ../include/inn/defines.h \
181   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
182   ../include/inn/messages.h ../include/inn/defines.h
183 shrinkfile.o: shrinkfile.c ../include/config.h ../include/inn/defines.h \
184   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
185   ../include/inn/innconf.h ../include/inn/defines.h \
186   ../include/inn/messages.h ../include/libinn.h