1 ## $Id: Makefile 7734 2008-04-06 09:25:56Z iulius $
3 include ../Makefile.global
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 \
14 MAN = ../doc/man/send-uucp.8
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
25 $(MAKE) COPT='$(WARNINGS)' 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 ; \
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 ; \
43 clobber distclean: clean
46 tags ctags: $(SOURCES)
54 BOTH = $(LIBSTORAGE) $(LIBHIST) $(LIBSTORAGE) $(LIBINN)
56 LINK = $(LIBLD) $(LDFLAGS) -o $@
57 INNLIBS = $(LIBINN) $(LIBS)
58 STORELIBS = $(BOTH) $(EXTSTORAGELIBS) $(LIBS)
60 DUCT_OBJS = innduct.o __oop-read-copy.o
65 @echo Run configure before running make. See INSTALL for details.
68 INNDUCT_WARNING_CFLAGS= \
69 -Wall -Wwrite-strings -Wpointer-arith -Wmissing-declarations \
70 -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
72 innduct.o: CFLAGS += $(INNDUCT_WARNING_CFLAGS)
74 actsync: actsync.o $(LIBINN) ; $(LINK) actsync.o $(INNLIBS)
75 archive: archive.o $(BOTH) ; $(LINK) archive.o $(STORELIBS)
76 batcher: batcher.o $(BOTH) ; $(LINK) batcher.o $(STORELIBS)
77 cvtbatch: cvtbatch.o $(BOTH) ; $(LINK) cvtbatch.o $(STORELIBS)
78 inndf: inndf.o $(BOTH) ; $(LINK) inndf.o $(STORELIBS)
79 innxbatch: innxbatch.o $(LIBINN) ; $(LINK) innxbatch.o $(INNLIBS)
80 innxmit: innxmit.o $(BOTH) ; $(LINK) innxmit.o $(STORELIBS)
81 ninpaths: ninpaths.o ; $(LINK) ninpaths.o
82 nntpget: nntpget.o $(BOTH) ; $(LINK) nntpget.o $(STORELIBS)
83 overchan: overchan.o $(BOTH) ; $(LINK) overchan.o $(STORELIBS)
84 shlock: shlock.o $(LIBINN) ; $(LINK) shlock.o $(INNLIBS)
85 shrinkfile: shrinkfile.o $(LIBINN) ; $(LINK) shrinkfile.o $(INNLIBS)
86 innduct: $(DUCT_OBJS) $(BOTH) ; $(LINK) $(DUCT_OBJS) $(STORELIBS) -loop -lm
88 buffchan: buffchan.o map.o $(LIBINN)
89 $(LINK) buffchan.o map.o $(LIBINN) $(LIBS)
91 filechan: filechan.o map.o $(LIBINN)
92 $(LINK) filechan.o map.o $(LIBINN) $(LIBS)
94 actmerge: actmerge.in $(FIX) ; $(FIX) actmerge.in
95 actsyncd: actsyncd.in $(FIX) ; $(FIX) actsyncd.in
96 mod-active: mod-active.in $(FIX) ; $(FIX) mod-active.in
97 news2mail: news2mail.in $(FIX) ; $(FIX) news2mail.in
98 nntpsend: nntpsend.in $(FIX) ; $(FIX) nntpsend.in
99 send-ihave: send-ihave.in $(FIX) ; $(FIX) send-ihave.in
100 send-nntp: send-nntp.in $(FIX) ; $(FIX) send-nntp.in
101 send-uucp: send-uucp.in $(FIX) ; $(FIX) send-uucp.in
102 sendinpaths: sendinpaths.in $(FIX) ; $(FIX) sendinpaths.in
103 sendxbatches: sendxbatches.in $(FIX) ; $(FIX) sendxbatches.in
105 $(LIBINN): ; (cd ../lib ; $(MAKE))
106 $(LIBSTORAGE): ; (cd ../storage ; $(MAKE))
107 $(LIBHIST): ; (cd ../history ; $(MAKE))
109 ../doc/man/send-uucp.8: send-uucp
110 $(POD2MAN) -s 8 $? > $@
113 ## Dependencies. Default list, below, is probably good enough.
115 depend: Makefile $(SOURCES)
116 $(MAKEDEPEND) '$(CFLAGS)' $(SOURCES)
118 # DO NOT DELETE THIS LINE -- make depend depends on it.
119 actsync.o: actsync.c ../include/config.h ../include/inn/defines.h \
120 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
121 ../include/portable/wait.h ../include/config.h ../include/inn/innconf.h \
122 ../include/inn/defines.h ../include/inn/messages.h ../include/inn/qio.h \
123 ../include/libinn.h ../include/paths.h
124 archive.o: archive.c ../include/config.h ../include/inn/defines.h \
125 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
126 ../include/inn/innconf.h ../include/inn/defines.h \
127 ../include/inn/messages.h ../include/inn/wire.h ../include/libinn.h \
128 ../include/paths.h ../include/storage.h
129 batcher.o: batcher.c ../include/config.h ../include/inn/defines.h \
130 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
131 ../include/inn/innconf.h ../include/inn/defines.h \
132 ../include/inn/messages.h ../include/inn/timer.h ../include/libinn.h \
133 ../include/paths.h ../include/storage.h
134 buffchan.o: buffchan.c ../include/config.h ../include/inn/defines.h \
135 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
136 ../include/inn/innconf.h ../include/inn/defines.h \
137 ../include/inn/messages.h ../include/inn/qio.h ../include/libinn.h \
138 ../include/paths.h map.h
139 cvtbatch.o: cvtbatch.c ../include/config.h ../include/inn/defines.h \
140 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
141 ../include/inn/innconf.h ../include/inn/defines.h \
142 ../include/inn/messages.h ../include/inn/qio.h ../include/inn/wire.h \
143 ../include/libinn.h ../include/paths.h ../include/storage.h
144 filechan.o: filechan.c ../include/config.h ../include/inn/defines.h \
145 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
146 ../include/inn/innconf.h ../include/inn/defines.h \
147 ../include/inn/messages.h ../include/libinn.h ../include/paths.h map.h
148 inndf.o: inndf.c ../include/config.h ../include/inn/defines.h \
149 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
150 ../include/inn/innconf.h ../include/inn/defines.h \
151 ../include/inn/messages.h ../include/inn/qio.h ../include/libinn.h \
152 ../include/ov.h ../include/storage.h ../include/inn/history.h \
154 innxbatch.o: innxbatch.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/innconf.h \
158 ../include/inn/defines.h ../include/inn/messages.h \
159 ../include/inn/timer.h ../include/libinn.h ../include/nntp.h
160 innxmit.o: innxmit.c ../include/config.h ../include/inn/defines.h \
161 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
162 ../include/portable/socket.h ../include/config.h \
163 ../include/portable/time.h ../include/inn/history.h \
164 ../include/inn/defines.h ../include/inn/innconf.h \
165 ../include/inn/messages.h ../include/inn/qio.h ../include/inn/timer.h \
166 ../include/inn/wire.h ../include/libinn.h ../include/nntp.h \
167 ../include/paths.h ../include/storage.h
168 map.o: map.c ../include/config.h ../include/inn/defines.h \
169 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
170 ../include/libinn.h ../include/paths.h map.h
171 ninpaths.o: ninpaths.c ../include/config.h ../include/inn/defines.h \
172 ../include/inn/system.h ../include/clibrary.h ../include/config.h
173 nntpget.o: nntpget.c ../include/config.h ../include/inn/defines.h \
174 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
175 ../include/portable/socket.h ../include/config.h \
176 ../include/portable/time.h ../include/inn/history.h \
177 ../include/inn/defines.h ../include/inn/innconf.h \
178 ../include/inn/messages.h ../include/libinn.h ../include/nntp.h \
180 overchan.o: overchan.c ../include/config.h ../include/inn/defines.h \
181 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
182 ../include/portable/time.h ../include/config.h ../include/inn/innconf.h \
183 ../include/inn/defines.h ../include/inn/messages.h ../include/inn/qio.h \
184 ../include/libinn.h ../include/ov.h ../include/storage.h \
185 ../include/inn/history.h ../include/paths.h
186 shlock.o: shlock.c ../include/config.h ../include/inn/defines.h \
187 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
188 ../include/inn/messages.h ../include/inn/defines.h
189 shrinkfile.o: shrinkfile.c ../include/config.h ../include/inn/defines.h \
190 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
191 ../include/inn/innconf.h ../include/inn/defines.h \
192 ../include/inn/messages.h ../include/libinn.h