1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377
|
# Don't edit Makefile! Use conf-* for configuration.
SHELL=/bin/sh
default: it
alloc.a: \
makelib alloc.o alloc_re.o
./makelib alloc.a alloc.o alloc_re.o
alloc.o: \
compile alloc.c alloc.h error.h
./compile alloc.c
alloc_re.o: \
compile alloc_re.c alloc.h byte.h
./compile alloc_re.c
antirbl: \
load antirbl.o ip.o strerr.a substdio.a alloc.a error.a env.a str.a \
fs.a dns.lib socket.lib
./load antirbl ip.o strerr.a substdio.a alloc.a error.a \
env.a str.a fs.a `cat dns.lib` `cat socket.lib`
antirbl.0: \
antirbl.8
nroff -man antirbl.8 > antirbl.0
antirbl.o: \
compile antirbl.c alloc.h strerr.h fmt.h str.h ip.h env.h
./compile antirbl.c
auto-ccld.sh: \
conf-cc conf-ld warn-auto.sh
( cat warn-auto.sh; \
echo CC=\'`head -1 conf-cc`\'; \
echo LD=\'`head -1 conf-ld`\' \
) > auto-ccld.sh
auto-str: \
load auto-str.o substdio.a error.a str.a
./load auto-str substdio.a error.a str.a
auto-str.o: \
compile auto-str.c substdio.h readwrite.h exit.h
./compile auto-str.c
auto_home.c: \
auto-str conf-home
./auto-str auto_home `head -1 conf-home` > auto_home.c
auto_home.o: \
compile auto_home.c
./compile auto_home.c
byte_copy.o: \
compile byte_copy.c byte.h
./compile byte_copy.c
byte_cr.o: \
compile byte_cr.c byte.h
./compile byte_cr.c
byte_diff.o: \
compile byte_diff.c byte.h
./compile byte_diff.c
case.a: \
makelib case_diffs.o
./makelib case.a case_diffs.o
case_diffs.o: \
compile case_diffs.c case.h
./compile case_diffs.c
check: \
it instcheck
./instcheck
clean:
rm -f *a
rm -f *o
rm -f *0
rm -f antirbl auto-str check compile find-systype install instcheck \
load make-compile make-load make-makelib makelib rblsmtpd systype
rm -f auto-ccld.sh
rm -f dns.lib socket.lib
commands.o: \
compile commands.c commands.h substdio.h stralloc.h gen_alloc.h str.h \
case.h
./compile commands.c
compile: \
make-compile warn-auto.sh systype
( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
compile
chmod 755 compile
dns.lib: \
tryrsolv.c compile load socket.lib
( ( ./compile tryrsolv.c && ./load tryrsolv \
-lresolv `cat socket.lib` ) >/dev/null 2>&1 \
&& echo -lresolv || exit 0 ) > dns.lib
rm -f tryrsolv.o tryrsolv
env.a: \
makelib env.o
./makelib env.a env.o
env.o: \
compile env.c str.h env.h
./compile env.c
error.a: \
makelib error.o error_str.o
./makelib error.a error.o error_str.o
error.o: \
compile error.c error.h
./compile error.c
error_str.o: \
compile error_str.c error.h
./compile error_str.c
find-systype: \
find-systype.sh auto-ccld.sh
cat auto-ccld.sh find-systype.sh > find-systype
chmod 755 find-systype
fmt_str.o: \
compile fmt_str.c fmt.h
./compile fmt_str.c
fmt_ulong.o: \
compile fmt_ulong.c fmt.h
./compile fmt_ulong.c
fs.a: \
makelib fmt_str.o fmt_ulong.o scan_uint.o scan_ulong.o
./makelib fs.a fmt_str.o fmt_ulong.o scan_uint.o \
scan_ulong.o
getopt.a: \
makelib subgetopt.o sgetopt.o
./makelib getopt.a subgetopt.o sgetopt.o
hier.o: \
compile hier.c auto_home.h
./compile hier.c
install: \
load install.o hier.o auto_home.o strerr.a substdio.a open.a error.a \
str.a
./load install hier.o auto_home.o strerr.a substdio.a \
open.a error.a str.a
install.o: \
compile install.c substdio.h strerr.h error.h open.h readwrite.h \
exit.h
./compile install.c
instcheck: \
load instcheck.o hier.o auto_home.o strerr.a substdio.a error.a str.a
./load instcheck hier.o auto_home.o strerr.a substdio.a \
error.a str.a
instcheck.o: \
compile instcheck.c strerr.h error.h readwrite.h exit.h
./compile instcheck.c
ip.o: \
compile ip.c fmt.h scan.h ip.h
./compile ip.c
it: \
man prog
load: \
make-load warn-auto.sh systype
( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
chmod 755 load
make-compile: \
make-compile.sh auto-ccld.sh
cat auto-ccld.sh make-compile.sh > make-compile
chmod 755 make-compile
make-load: \
make-load.sh auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
chmod 755 make-load
make-makelib: \
make-makelib.sh auto-ccld.sh
cat auto-ccld.sh make-makelib.sh > make-makelib
chmod 755 make-makelib
makelib: \
make-makelib warn-auto.sh systype
( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \
makelib
chmod 755 makelib
man: \
rblsmtpd.0 antirbl.0
open.a: \
makelib open_read.o open_trunc.o
./makelib open.a open_read.o open_trunc.o
open_read.o: \
compile open_read.c open.h
./compile open_read.c
open_trunc.o: \
compile open_trunc.c open.h
./compile open_trunc.c
prog: \
rblsmtpd antirbl
rblsmtpd: \
load rblsmtpd.o txt.o commands.o ip.o getopt.a strerr.a substdio.a \
stralloc.a alloc.a error.a case.a env.a str.a fs.a dns.lib socket.lib
./load rblsmtpd txt.o commands.o ip.o getopt.a strerr.a \
substdio.a stralloc.a alloc.a error.a case.a env.a str.a \
fs.a `cat dns.lib` `cat socket.lib`
rblsmtpd.0: \
rblsmtpd.8
nroff -man rblsmtpd.8 > rblsmtpd.0
rblsmtpd.o: \
compile rblsmtpd.c substdio.h subfd.h substdio.h readwrite.h \
stralloc.h gen_alloc.h commands.h strerr.h exit.h sgetopt.h \
subgetopt.h fmt.h ip.h env.h
./compile rblsmtpd.c
scan_uint.o: \
compile scan_uint.c scan.h
./compile scan_uint.c
scan_ulong.o: \
compile scan_ulong.c scan.h
./compile scan_ulong.c
setup: \
it install
./install
sgetopt.o: \
compile sgetopt.c substdio.h subfd.h substdio.h sgetopt.h subgetopt.h \
subgetopt.h
./compile sgetopt.c
socket.lib: \
trylsock.c compile load
( ( ./compile trylsock.c && \
./load trylsock -lsocket -lnsl ) >/dev/null 2>&1 \
&& echo -lsocket -lnsl || exit 0 ) > socket.lib
rm -f trylsock.o trylsock
str.a: \
makelib str_len.o str_chr.o str_start.o byte_diff.o byte_copy.o \
byte_cr.o
./makelib str.a str_len.o str_chr.o str_start.o \
byte_diff.o byte_copy.o byte_cr.o
str_chr.o: \
compile str_chr.c str.h
./compile str_chr.c
str_len.o: \
compile str_len.c str.h
./compile str_len.c
str_start.o: \
compile str_start.c str.h
./compile str_start.c
stralloc.a: \
makelib stralloc_eady.o stralloc_pend.o stralloc_copy.o \
stralloc_opys.o stralloc_opyb.o stralloc_cat.o stralloc_cats.o \
stralloc_catb.o stralloc_arts.o
./makelib stralloc.a stralloc_eady.o stralloc_pend.o \
stralloc_copy.o stralloc_opys.o stralloc_opyb.o \
stralloc_cat.o stralloc_cats.o stralloc_catb.o \
stralloc_arts.o
stralloc_arts.o: \
compile stralloc_arts.c byte.h str.h stralloc.h gen_alloc.h
./compile stralloc_arts.c
stralloc_cat.o: \
compile stralloc_cat.c byte.h stralloc.h gen_alloc.h
./compile stralloc_cat.c
stralloc_catb.o: \
compile stralloc_catb.c stralloc.h gen_alloc.h byte.h
./compile stralloc_catb.c
stralloc_cats.o: \
compile stralloc_cats.c byte.h str.h stralloc.h gen_alloc.h
./compile stralloc_cats.c
stralloc_copy.o: \
compile stralloc_copy.c byte.h stralloc.h gen_alloc.h
./compile stralloc_copy.c
stralloc_eady.o: \
compile stralloc_eady.c alloc.h stralloc.h gen_alloc.h \
gen_allocdefs.h
./compile stralloc_eady.c
stralloc_opyb.o: \
compile stralloc_opyb.c stralloc.h gen_alloc.h byte.h
./compile stralloc_opyb.c
stralloc_opys.o: \
compile stralloc_opys.c byte.h str.h stralloc.h gen_alloc.h
./compile stralloc_opys.c
stralloc_pend.o: \
compile stralloc_pend.c alloc.h stralloc.h gen_alloc.h \
gen_allocdefs.h
./compile stralloc_pend.c
strerr.a: \
makelib strerr_sys.o strerr_die.o
./makelib strerr.a strerr_sys.o strerr_die.o
strerr_die.o: \
compile strerr_die.c substdio.h subfd.h substdio.h exit.h strerr.h
./compile strerr_die.c
strerr_sys.o: \
compile strerr_sys.c error.h strerr.h
./compile strerr_sys.c
subfderr.o: \
compile subfderr.c readwrite.h substdio.h subfd.h substdio.h
./compile subfderr.c
subgetopt.o: \
compile subgetopt.c subgetopt.h
./compile subgetopt.c
substdi.o: \
compile substdi.c substdio.h byte.h error.h
./compile substdi.c
substdio.a: \
makelib substdio.o substdi.o substdo.o subfderr.o substdio_copy.o
./makelib substdio.a substdio.o substdi.o substdo.o \
subfderr.o substdio_copy.o
substdio.o: \
compile substdio.c substdio.h
./compile substdio.c
substdio_copy.o: \
compile substdio_copy.c substdio.h
./compile substdio_copy.c
substdo.o: \
compile substdo.c substdio.h str.h byte.h error.h
./compile substdo.c
systype: \
find-systype trycpp.c
./find-systype > systype
txt.o: \
compile txt.c stralloc.h gen_alloc.h str.h fmt.h ip.h
./compile txt.c
|