1include ../Makefile.global 2 3top = .. 4CFLAGS = $(GCFLAGS) $(SSL_CPPFLAGS) $(SASL_CPPFLAGS) $(ZLIB_CPPFLAGS) 5 6ALL = nnrpd 7 8SOURCES = article.c auth-ext.c cache.c commands.c group.c line.c \ 9 list.c misc.c newnews.c nnrpd.c perl.c perm.c post.c \ 10 python.c sasl.c tls.c track.c zlib.c 11 12INCLUDES = cache.h nnrpd.h post.h tls.h 13 14OBJECTS = $(SOURCES:.c=.o) 15 16all: $(ALL) 17 18warnings: 19 $(MAKE) COPT='$(WARNINGS)' all 20 21install: all 22 $(LI_XPUB) nnrpd $D$(PATHBIN)/nnrpd 23 24bootstrap: 25 26clean clobber distclean maintclean: 27 rm -f *.o $(ALL) nnrpdp profiled 28 rm -rf .libs 29 30 31## Compilation rules. 32 33NNRPDLIBS = $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) \ 34 $(PERL_LIBS) $(PYTHON_LIBS) $(SSL_LDFLAGS) $(SSL_LIBS) \ 35 $(CRYPTO_LIBS) $(SASL_LDFLAGS) $(SASL_LIBS) \ 36 $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(LIBS) 37 38.c.o: 39 $(CC) $(CFLAGS) -c $< 40 41perl.o: perl.c ; $(CC) $(CFLAGS) $(PERL_CPPFLAGS) -c perl.c 42python.o: python.c ; $(CC) $(CFLAGS) $(PYTHON_CPPFLAGS) -c python.c 43 44nnrpd: $(OBJECTS) $(LIBHIST) $(LIBSTORAGE) $(LIBINN) 45 $(LIBLD) $(LDFLAGS) -o $@ $(OBJECTS) $(NNRPDLIBS) 46 47$(LIBINN): ; (cd ../lib ; $(MAKE)) 48$(LIBSTORAGE): ; (cd ../storage ; $(MAKE) library) 49$(LIBHIST): ; (cd ../history ; $(MAKE)) 50 51 52## Profiling. These rules have not been checked for a while and may need 53## some work. 54 55profiled: nnrpdp 56 57nnrpdp: $(SOURCES) 58 rm -f $(OBJECTS) 59 $(MAKEPROFILING) nnrpd 60 mv nnrpd nnrpdp 61 rm -f $(OBJECTS) 62 63 64## Dependencies. Default list, below, is probably good enough. 65 66depend: $(SOURCES) 67 $(MAKEDEPEND) '$(CFLAGS) $(PERL_CPPFLAGS) $(PYTHON_CPPFLAGS)' \ 68 $(SOURCES) 69 70# DO NOT DELETE THIS LINE -- make depend depends on it. 71article.o: article.c ../include/portable/system.h ../include/config.h \ 72 ../include/inn/macros.h ../include/inn/portable-macros.h \ 73 ../include/inn/options.h ../include/inn/system.h \ 74 ../include/portable/stdbool.h ../include/portable/macros.h \ 75 ../include/portable/stdbool.h cache.h ../include/inn/libinn.h \ 76 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 77 ../include/inn/system.h ../include/inn/concat.h ../include/inn/xmalloc.h \ 78 ../include/inn/xwrite.h ../include/inn/storage.h \ 79 ../include/inn/options.h ../include/inn/innconf.h \ 80 ../include/inn/messages.h ../include/inn/ov.h ../include/inn/history.h \ 81 ../include/inn/overview.h ../include/inn/wire.h nnrpd.h \ 82 ../include/portable/socket.h ../include/portable/getaddrinfo.h \ 83 ../include/portable/getnameinfo.h ../include/inn/nntp.h \ 84 ../include/inn/paths.h ../include/inn/qio.h ../include/inn/timer.h \ 85 ../include/inn/vector.h tls.h 86auth-ext.o: auth-ext.c ../include/portable/system.h ../include/config.h \ 87 ../include/inn/macros.h ../include/inn/portable-macros.h \ 88 ../include/inn/options.h ../include/inn/system.h \ 89 ../include/portable/stdbool.h ../include/portable/macros.h \ 90 ../include/portable/stdbool.h ../include/inn/buffer.h \ 91 ../include/inn/portable-stdbool.h ../include/inn/system.h \ 92 ../include/inn/messages.h ../include/inn/vector.h nnrpd.h \ 93 ../include/portable/socket.h ../include/portable/getaddrinfo.h \ 94 ../include/portable/getnameinfo.h ../include/inn/libinn.h \ 95 ../include/inn/macros.h ../include/inn/concat.h ../include/inn/xmalloc.h \ 96 ../include/inn/xwrite.h ../include/inn/nntp.h ../include/inn/paths.h \ 97 ../include/inn/qio.h ../include/inn/storage.h ../include/inn/options.h \ 98 ../include/inn/timer.h 99cache.o: cache.c ../include/portable/system.h ../include/config.h \ 100 ../include/inn/macros.h ../include/inn/portable-macros.h \ 101 ../include/inn/options.h ../include/inn/system.h \ 102 ../include/portable/stdbool.h ../include/portable/macros.h \ 103 ../include/portable/stdbool.h ../include/inn/innconf.h \ 104 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 105 ../include/inn/system.h ../include/inn/libinn.h ../include/inn/concat.h \ 106 ../include/inn/xmalloc.h ../include/inn/xwrite.h ../include/inn/list.h \ 107 ../include/inn/storage.h ../include/inn/options.h ../include/inn/tst.h \ 108 cache.h 109commands.o: commands.c ../include/portable/system.h ../include/config.h \ 110 ../include/inn/macros.h ../include/inn/portable-macros.h \ 111 ../include/inn/options.h ../include/inn/system.h \ 112 ../include/portable/stdbool.h ../include/portable/macros.h \ 113 ../include/portable/stdbool.h ../include/inn/fdflag.h \ 114 ../include/inn/portable-socket.h ../include/inn/portable-getaddrinfo.h \ 115 ../include/inn/portable-getnameinfo.h ../include/inn/portable-stdbool.h \ 116 ../include/inn/system.h ../include/inn/innconf.h ../include/inn/macros.h \ 117 ../include/inn/messages.h ../include/inn/ov.h ../include/inn/history.h \ 118 ../include/inn/storage.h ../include/inn/options.h \ 119 ../include/inn/version.h nnrpd.h ../include/portable/socket.h \ 120 ../include/inn/libinn.h ../include/inn/concat.h ../include/inn/xmalloc.h \ 121 ../include/inn/xwrite.h ../include/inn/nntp.h ../include/inn/paths.h \ 122 ../include/inn/qio.h ../include/inn/timer.h ../include/inn/vector.h \ 123 tls.h 124group.o: group.c ../include/portable/system.h ../include/config.h \ 125 ../include/inn/macros.h ../include/inn/portable-macros.h \ 126 ../include/inn/options.h ../include/inn/system.h \ 127 ../include/portable/stdbool.h ../include/portable/macros.h \ 128 ../include/portable/stdbool.h ../include/inn/innconf.h \ 129 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 130 ../include/inn/system.h ../include/inn/ov.h ../include/inn/history.h \ 131 ../include/inn/storage.h ../include/inn/options.h nnrpd.h \ 132 ../include/portable/socket.h ../include/portable/getaddrinfo.h \ 133 ../include/portable/getnameinfo.h ../include/inn/libinn.h \ 134 ../include/inn/concat.h ../include/inn/xmalloc.h ../include/inn/xwrite.h \ 135 ../include/inn/nntp.h ../include/inn/paths.h ../include/inn/qio.h \ 136 ../include/inn/timer.h ../include/inn/vector.h 137line.o: line.c ../include/portable/system.h ../include/config.h \ 138 ../include/inn/macros.h ../include/inn/portable-macros.h \ 139 ../include/inn/options.h ../include/inn/system.h \ 140 ../include/portable/stdbool.h ../include/portable/macros.h \ 141 ../include/portable/stdbool.h ../include/inn/messages.h \ 142 ../include/inn/system.h nnrpd.h ../include/portable/socket.h \ 143 ../include/portable/getaddrinfo.h ../include/portable/getnameinfo.h \ 144 ../include/inn/libinn.h ../include/inn/macros.h \ 145 ../include/inn/portable-stdbool.h ../include/inn/concat.h \ 146 ../include/inn/xmalloc.h ../include/inn/xwrite.h ../include/inn/nntp.h \ 147 ../include/inn/paths.h ../include/inn/qio.h ../include/inn/storage.h \ 148 ../include/inn/options.h ../include/inn/timer.h ../include/inn/vector.h \ 149 tls.h 150list.o: list.c ../include/portable/system.h ../include/config.h \ 151 ../include/inn/macros.h ../include/inn/portable-macros.h \ 152 ../include/inn/options.h ../include/inn/system.h \ 153 ../include/portable/stdbool.h ../include/portable/macros.h \ 154 ../include/portable/stdbool.h ../include/inn/innconf.h \ 155 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 156 ../include/inn/system.h ../include/inn/messages.h ../include/inn/ov.h \ 157 ../include/inn/history.h ../include/inn/storage.h \ 158 ../include/inn/options.h ../include/inn/overview.h nnrpd.h \ 159 ../include/portable/socket.h ../include/portable/getaddrinfo.h \ 160 ../include/portable/getnameinfo.h ../include/inn/libinn.h \ 161 ../include/inn/concat.h ../include/inn/xmalloc.h ../include/inn/xwrite.h \ 162 ../include/inn/nntp.h ../include/inn/paths.h ../include/inn/qio.h \ 163 ../include/inn/timer.h ../include/inn/vector.h 164misc.o: misc.c ../include/portable/system.h ../include/config.h \ 165 ../include/inn/macros.h ../include/inn/portable-macros.h \ 166 ../include/inn/options.h ../include/inn/system.h \ 167 ../include/portable/stdbool.h ../include/portable/macros.h \ 168 ../include/portable/stdbool.h ../include/inn/innconf.h \ 169 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 170 ../include/inn/system.h nnrpd.h ../include/portable/socket.h \ 171 ../include/portable/getaddrinfo.h ../include/portable/getnameinfo.h \ 172 ../include/inn/libinn.h ../include/inn/concat.h ../include/inn/xmalloc.h \ 173 ../include/inn/xwrite.h ../include/inn/nntp.h ../include/inn/paths.h \ 174 ../include/inn/qio.h ../include/inn/storage.h ../include/inn/options.h \ 175 ../include/inn/timer.h ../include/inn/vector.h tls.h ../include/inn/ov.h \ 176 ../include/inn/history.h 177newnews.o: newnews.c ../include/portable/system.h ../include/config.h \ 178 ../include/inn/macros.h ../include/inn/portable-macros.h \ 179 ../include/inn/options.h ../include/inn/system.h \ 180 ../include/portable/stdbool.h ../include/portable/macros.h \ 181 ../include/portable/stdbool.h cache.h ../include/inn/libinn.h \ 182 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 183 ../include/inn/system.h ../include/inn/concat.h ../include/inn/xmalloc.h \ 184 ../include/inn/xwrite.h ../include/inn/storage.h \ 185 ../include/inn/options.h ../include/inn/innconf.h \ 186 ../include/inn/messages.h ../include/inn/ov.h ../include/inn/history.h \ 187 ../include/inn/overview.h ../include/inn/wire.h nnrpd.h \ 188 ../include/portable/socket.h ../include/portable/getaddrinfo.h \ 189 ../include/portable/getnameinfo.h ../include/inn/nntp.h \ 190 ../include/inn/paths.h ../include/inn/qio.h ../include/inn/timer.h \ 191 ../include/inn/vector.h 192nnrpd.o: nnrpd.c ../include/portable/system.h ../include/config.h \ 193 ../include/inn/macros.h ../include/inn/portable-macros.h \ 194 ../include/inn/options.h ../include/inn/system.h \ 195 ../include/portable/stdbool.h ../include/portable/macros.h \ 196 ../include/portable/stdbool.h ../include/portable/setproctitle.h \ 197 ../include/portable/socket.h ../include/portable/getaddrinfo.h \ 198 ../include/portable/getnameinfo.h ../include/inn/innconf.h \ 199 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 200 ../include/inn/system.h ../include/inn/libinn.h ../include/inn/concat.h \ 201 ../include/inn/xmalloc.h ../include/inn/xwrite.h \ 202 ../include/inn/messages.h ../include/inn/network-innbind.h \ 203 ../include/inn/portable-socket.h ../include/inn/network.h \ 204 ../include/inn/newsuser.h ../include/inn/ov.h ../include/inn/history.h \ 205 ../include/inn/storage.h ../include/inn/options.h \ 206 ../include/inn/overview.h ../include/inn/version.h nnrpd.h \ 207 ../include/inn/nntp.h ../include/inn/paths.h ../include/inn/qio.h \ 208 ../include/inn/timer.h ../include/inn/vector.h tls.h 209perl.o: perl.c ../include/portable/system.h ../include/config.h \ 210 ../include/inn/macros.h ../include/inn/portable-macros.h \ 211 ../include/inn/options.h ../include/inn/system.h \ 212 ../include/portable/stdbool.h ../include/portable/macros.h \ 213 ../include/portable/stdbool.h ../include/inn/innconf.h \ 214 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 215 ../include/inn/system.h ../include/inn/nntp.h ../include/inn/paths.h \ 216 nnrpd.h ../include/portable/socket.h ../include/portable/getaddrinfo.h \ 217 ../include/portable/getnameinfo.h ../include/inn/libinn.h \ 218 ../include/inn/concat.h ../include/inn/xmalloc.h ../include/inn/xwrite.h \ 219 ../include/inn/qio.h ../include/inn/storage.h ../include/inn/options.h \ 220 ../include/inn/timer.h ../include/inn/vector.h post.h \ 221 ../include/ppport.h \ 222 ../include/innperl.h \ 223 ../include/config.h 224perm.o: perm.c ../include/portable/system.h ../include/config.h \ 225 ../include/inn/macros.h ../include/inn/portable-macros.h \ 226 ../include/inn/options.h ../include/inn/system.h \ 227 ../include/portable/stdbool.h ../include/portable/macros.h \ 228 ../include/portable/stdbool.h ../include/conffile.h \ 229 ../include/portable/macros.h ../include/inn/innconf.h \ 230 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 231 ../include/inn/system.h ../include/inn/network.h \ 232 ../include/inn/portable-socket.h ../include/inn/portable-getaddrinfo.h \ 233 ../include/inn/portable-getnameinfo.h ../include/innperl.h \ 234 ../include/config.h nnrpd.h ../include/portable/socket.h \ 235 ../include/inn/libinn.h ../include/inn/concat.h ../include/inn/xmalloc.h \ 236 ../include/inn/xwrite.h ../include/inn/nntp.h ../include/inn/paths.h \ 237 ../include/inn/qio.h ../include/inn/storage.h ../include/inn/options.h \ 238 ../include/inn/timer.h ../include/inn/vector.h tls.h 239post.o: post.c ../include/portable/system.h ../include/config.h \ 240 ../include/inn/macros.h ../include/inn/portable-macros.h \ 241 ../include/inn/options.h ../include/inn/system.h \ 242 ../include/portable/stdbool.h ../include/portable/macros.h \ 243 ../include/portable/stdbool.h ../include/inn/innconf.h \ 244 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 245 ../include/inn/system.h ../include/inn/ov.h ../include/inn/history.h \ 246 ../include/inn/storage.h ../include/inn/options.h nnrpd.h \ 247 ../include/portable/socket.h ../include/portable/getaddrinfo.h \ 248 ../include/portable/getnameinfo.h ../include/inn/libinn.h \ 249 ../include/inn/concat.h ../include/inn/xmalloc.h ../include/inn/xwrite.h \ 250 ../include/inn/nntp.h ../include/inn/paths.h ../include/inn/qio.h \ 251 ../include/inn/timer.h ../include/inn/vector.h post.h 252python.o: python.c ../include/portable/system.h ../include/config.h \ 253 ../include/inn/macros.h ../include/inn/portable-macros.h \ 254 ../include/inn/options.h ../include/inn/system.h \ 255 ../include/portable/stdbool.h ../include/portable/macros.h \ 256 ../include/portable/stdbool.h \ 257 ../include/inn/hashtab.h ../include/inn/macros.h \ 258 ../include/inn/portable-stdbool.h ../include/inn/system.h \ 259 ../include/inn/innconf.h nnrpd.h ../include/portable/socket.h \ 260 ../include/portable/getaddrinfo.h ../include/portable/getnameinfo.h \ 261 ../include/inn/libinn.h ../include/inn/concat.h ../include/inn/xmalloc.h \ 262 ../include/inn/xwrite.h ../include/inn/nntp.h ../include/inn/paths.h \ 263 ../include/inn/qio.h ../include/inn/storage.h ../include/inn/options.h \ 264 ../include/inn/timer.h ../include/inn/vector.h 265sasl.o: sasl.c ../include/portable/system.h ../include/config.h \ 266 ../include/inn/macros.h ../include/inn/portable-macros.h \ 267 ../include/inn/options.h ../include/inn/system.h \ 268 ../include/portable/stdbool.h ../include/portable/macros.h \ 269 ../include/portable/stdbool.h ../include/inn/messages.h \ 270 ../include/inn/system.h nnrpd.h ../include/portable/socket.h \ 271 ../include/portable/getaddrinfo.h ../include/portable/getnameinfo.h \ 272 ../include/inn/libinn.h ../include/inn/macros.h \ 273 ../include/inn/portable-stdbool.h ../include/inn/concat.h \ 274 ../include/inn/xmalloc.h ../include/inn/xwrite.h ../include/inn/nntp.h \ 275 ../include/inn/paths.h ../include/inn/qio.h ../include/inn/storage.h \ 276 ../include/inn/options.h ../include/inn/timer.h ../include/inn/vector.h \ 277 ../include/inn/ov.h ../include/inn/history.h tls.h 278tls.o: tls.c ../include/portable/system.h ../include/config.h \ 279 ../include/inn/macros.h ../include/inn/portable-macros.h \ 280 ../include/inn/options.h ../include/inn/system.h \ 281 ../include/portable/stdbool.h ../include/portable/macros.h \ 282 ../include/portable/stdbool.h ../include/inn/innconf.h \ 283 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 284 ../include/inn/system.h nnrpd.h ../include/portable/socket.h \ 285 ../include/portable/getaddrinfo.h ../include/portable/getnameinfo.h \ 286 ../include/inn/libinn.h ../include/inn/concat.h ../include/inn/xmalloc.h \ 287 ../include/inn/xwrite.h ../include/inn/nntp.h ../include/inn/paths.h \ 288 ../include/inn/qio.h ../include/inn/storage.h ../include/inn/options.h \ 289 ../include/inn/timer.h ../include/inn/vector.h tls.h 290track.o: track.c ../include/portable/system.h ../include/config.h \ 291 ../include/inn/macros.h ../include/inn/portable-macros.h \ 292 ../include/inn/options.h ../include/inn/system.h \ 293 ../include/portable/stdbool.h ../include/portable/macros.h \ 294 ../include/portable/stdbool.h ../include/inn/innconf.h \ 295 ../include/inn/macros.h ../include/inn/portable-stdbool.h \ 296 ../include/inn/system.h nnrpd.h ../include/portable/socket.h \ 297 ../include/portable/getaddrinfo.h ../include/portable/getnameinfo.h \ 298 ../include/inn/libinn.h ../include/inn/concat.h ../include/inn/xmalloc.h \ 299 ../include/inn/xwrite.h ../include/inn/nntp.h ../include/inn/paths.h \ 300 ../include/inn/qio.h ../include/inn/storage.h ../include/inn/options.h \ 301 ../include/inn/timer.h ../include/inn/vector.h 302zlib.o: zlib.c ../include/portable/system.h ../include/config.h \ 303 ../include/inn/macros.h ../include/inn/portable-macros.h \ 304 ../include/inn/options.h ../include/inn/system.h \ 305 ../include/portable/stdbool.h ../include/portable/macros.h \ 306 ../include/portable/stdbool.h ../include/inn/messages.h \ 307 ../include/inn/system.h nnrpd.h ../include/portable/socket.h \ 308 ../include/portable/getaddrinfo.h ../include/portable/getnameinfo.h \ 309 ../include/inn/libinn.h ../include/inn/macros.h \ 310 ../include/inn/portable-stdbool.h ../include/inn/concat.h \ 311 ../include/inn/xmalloc.h ../include/inn/xwrite.h ../include/inn/nntp.h \ 312 ../include/inn/paths.h ../include/inn/qio.h ../include/inn/storage.h \ 313 ../include/inn/options.h ../include/inn/timer.h ../include/inn/vector.h 314