home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / bind494s.zip / Makefile < prev    next >
Makefile  |  1996-08-05  |  21KB  |  784 lines

  1. # Makefile for BIND>=4.9 top level
  2. # vixie@decwrl December, 1992 [original]
  3. #
  4. # $Id: Makefile,v 8.39 1996/08/05 08:31:20 vixie Exp $
  5.  
  6. ## ++Copyright++ 1989
  7. ## -
  8. ## Copyright (c) 1989
  9. ##    The Regents of the University of California.  All rights reserved.
  10. ## 
  11. ## Redistribution and use in source and binary forms, with or without
  12. ## modification, are permitted provided that the following conditions
  13. ## are met:
  14. ## 1. Redistributions of source code must retain the above copyright
  15. ##    notice, this list of conditions and the following disclaimer.
  16. ## 2. Redistributions in binary form must reproduce the above copyright
  17. ##    notice, this list of conditions and the following disclaimer in the
  18. ##    documentation and/or other materials provided with the distribution.
  19. ## 3. All advertising materials mentioning features or use of this software
  20. ##    must display the following acknowledgement:
  21. ##     This product includes software developed by the University of
  22. ##     California, Berkeley and its contributors.
  23. ## 4. Neither the name of the University nor the names of its contributors
  24. ##    may be used to endorse or promote products derived from this software
  25. ##    without specific prior written permission.
  26. ## 
  27. ## THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  28. ## ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  29. ## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  30. ## ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  31. ## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  32. ## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  33. ## OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  34. ## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  35. ## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  36. ## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  37. ## SUCH DAMAGE.
  38. ## -
  39. ## Portions Copyright (c) 1993 by Digital Equipment Corporation.
  40. ## 
  41. ## Permission to use, copy, modify, and distribute this software for any
  42. ## purpose with or without fee is hereby granted, provided that the above
  43. ## copyright notice and this permission notice appear in all copies, and that
  44. ## the name of Digital Equipment Corporation not be used in advertising or
  45. ## publicity pertaining to distribution of the document or software without
  46. ## specific, written prior permission.
  47. ## 
  48. ## THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
  49. ## WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
  50. ## OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
  51. ## CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  52. ## DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  53. ## PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  54. ## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  55. ## SOFTWARE.
  56. ## -
  57. ## --Copyright--
  58.  
  59. VER = 4.9.4-P1
  60. SHELL = /bin/sh
  61. MAKE = make
  62. DESTDIR =
  63.  
  64. INCL = include
  65. RES = res/libresolv.a
  66. COMPLIB = compat/lib/lib44bsd.a
  67.  
  68. # The default build parameters are given for 4.4 BSD.  They should
  69. # be overridden for other operating systems as indicated below.
  70.  
  71. #(BSD4.4, BSD/OS, FreeBSD, NetBSD, other net2-alikes)
  72. #
  73. # DO NOT COMMENT THESE OUT.  OVERRIDE THEM BELOW.
  74. #
  75. CC = cc $(CPPFLAGS)
  76. LDFLAGS =
  77. CDEBUG = -O -g
  78. CPPFLAGS=
  79. INDOT =
  80. XFER_INDOT =
  81. LEX = lex -I
  82. LIBS = -ll -lutil
  83. PIDDIR = /var/run
  84. DESTBIN = /usr/bin
  85. DESTSBIN = /usr/sbin
  86. DESTEXEC = /usr/libexec
  87. DESTMAN = /usr/share/man
  88. DESTHELP = /usr/share/misc
  89. DESTLIB = /usr/lib
  90. DESTINC = /usr/include
  91. COMPINCL = compat/include
  92. LDS = 
  93. CATEXT = 0
  94. INSTALL_COMPAT = install
  95. INSTALL = install
  96. RANLIB = ranlib
  97. AR = ar cru
  98. MANROFF = ( tbl | nroff -man )
  99. MANDIR = cat
  100. PS = ps
  101. IOT = ABRT
  102. SHCC =
  103. SHLD =
  104.  
  105. # (NetBSD - for details on shared library building, see shres/netbsd/INSTALL)
  106. #uncomment next three lines to build a shared library version of libresolv
  107. #SHRES = shres/netbsd
  108. #SHCC = cc
  109. #PIC = -fpic
  110.  
  111. #(Linux - on modern systems, all you need to do is rename or remove
  112. # compat/include/sys/cdefs.h.  See doc/info/Linux for more information.)
  113. #CC = gcc $(CPPFLAGS)
  114. #CDEBUG = -g
  115. #CPPFLAGS = -DSYSV
  116. #LIBS = -lfl
  117. #DESTEXEC = /usr/sbin
  118. #DESTMAN = /usr/man
  119. #DESTHELP = /usr/lib
  120. #CATEXT = $$$$N
  121. #PS = ps -p
  122. #IOT = IOT
  123.  
  124. #(CRAY)
  125. #CDEBUG = -g
  126. #LEX=lex
  127. #IOT = IOT
  128.  
  129. #(DEC AXP OSF/1 Version 2.1 and earlier)
  130. #CC = cc $(CPPFLAGS)
  131. #CDEBUG = -g3 -O2 -Olimit 2000
  132. #CPPFLAGS =
  133. #LEX = lex
  134. #LIBS = -ll -lutil
  135. #DESTEXEC = /usr/sbin
  136. #COMPINCL = compat/include
  137. #INSTALL_COMPAT = install-compat
  138. #INSTALL = installbsd
  139. #MANDIR = man
  140. #MANROFF = cat
  141. #CATEXT = $$$$N
  142. #PS = ps -p
  143. #IOT = IOT
  144.  
  145. #(DEC AXP OSF/1 Version 3.0 and after)
  146. #CC = cc $(CPPFLAGS) -std
  147. #CDEBUG = -g3 -O2 -Olimit 2000
  148. #CPPFLAGS =
  149. #LEX = lex
  150. #LIBS = -ll -lutil
  151. #DESTEXEC = /usr/sbin
  152. #COMPINCL = compat/include
  153. #INSTALL_COMPAT = install-compat
  154. #INSTALL = installbsd
  155. #MANDIR = man
  156. #MANROFF = cat
  157. #CATEXT = $$$$N
  158. #PS = ps -p
  159. #IOT = IOT
  160.  
  161. #(irix4)
  162. #CC = cc $(CPPFLAGS) -xansi -signed
  163. #CDEBUG = -g
  164. #CPPFLAGS = -D__STDC__ -D_BSD_SIGNALS -DSIG_FN=int
  165. #LEX = lex
  166. #LIBS = -ll 
  167. #DESTSBIN = /usr/etc
  168. #DESTEXEC = /usr/etc
  169. #DESTMAN = /usr/catman/local
  170. #DESTHELP = /usr/lib
  171. #INSTALL = bsdinstall.sh
  172. #RANLIB = :
  173. #PS = ps -p
  174. #(bsdinstall.sh is in conf/)
  175. #IOT = IOT
  176.  
  177. #(irix5)
  178. #CC = cc $(CPPFLAGS) -xansi -signed
  179. #CDEBUG = -g
  180. #CPPFLAGS = -D__STDC__ -D_BSD_SIGNALS -DSIG_FN=void -D__BIT_TYPES_DEFINED__
  181. #LEX = lex
  182. #LIBS = -ll 
  183. #DESTSBIN = /usr/etc
  184. #DESTEXEC = /usr/etc
  185. #DESTMAN = /usr/share/catman/local
  186. #DESTHELP = /usr/lib
  187. #INSTALL = bsdinstall.sh
  188. #RANLIB = :
  189. #PS = ps -p
  190. #(bsdinstall.sh is in conf/)
  191. #IOT = IOT
  192.  
  193. #(sunos4.x)
  194. #CC = /usr/bin/cc
  195. #CDEBUG = -g
  196. #CPPFLAGS = -DSUNOS4 -DSPRINTF_CHAR
  197. #INDOT = in.
  198. #XFER_INDOT = in.
  199. #LEX = lex
  200. #LIBS = -ll
  201. #(add "-ldl" to LIBS if your links fail with "dlopen" problems.  this indicates
  202. # that your libc.so file is screwed up, but it's easier to fix this than that.)
  203. #PIDDIR = /etc
  204. #DESTSBIN = /usr/etc
  205. #DESTEXEC = /usr/etc
  206. #DESTHELP = /usr/lib
  207. #COMPINCL = compat/include
  208. #MANDIR = man
  209. #CATEXT = $$$$N
  210. #MANROFF = cat
  211. #INSTALL_COMPAT = install-compat
  212. #INSTALL = install
  213. #IOT = IOT
  214. # (for details on shared library building, see shres/sunos/INSTALL;
  215. #  note that shres/solaris/INSTALL has some good testing notes for sunos)
  216. #uncomment next line to build a shared library version of libresolv
  217. #SHRES = shres/sunos
  218. # uncomment only one of the pairs of lines below
  219. # -- if you use gcc (recommended)
  220. #    (if -fpic doesn't work, see shres/sunos/PROBLEMS)
  221. #SHCC = gcc -DSUNSECURITY $(CPPFLAGS)
  222. #PIC= -fpic -D_res=_res_shlib
  223. # -- if you use Sun's cc
  224. #SHCC = /usr/bin/cc -DSUNSECURITY $(CPPFLAGS)
  225. #PIC = -pic -D_res=_res_shlib
  226.  
  227. #(ULTRIX/RISC - also see below)
  228. #CC = cc $(CPPFLAGS) -Olimit 2000 -YPOSIX
  229.  
  230. #(ULTRIX, other 4.[23]bsd-alikes)
  231. #CDEBUG = -g
  232. #CPPFLAGS =
  233. #LEX = lex
  234. #LIBS = -ll
  235. #PIDDIR = /etc
  236. #DESTSBIN = /usr/etc
  237. #DESTEXEC = /usr/etc
  238. #DESTHELP = /usr/lib
  239. #COMPINCL = compat/include
  240. #CATEXT = $$$$N
  241. #INSTALL_COMPAT = install-compat
  242. #INSTALL = install
  243. #DESTMAN = /usr/man
  244. #MANDIR = man
  245. #MANROFF = cat
  246. #IOT = IOT
  247.  
  248. #(solaris2.x/sunos5.x)
  249. #be careful with installation - note in particular that the system ships
  250. #with /usr/sbin/in.named (with in.) and /usr/sbin/named-xfer (without in.)
  251. #to emulate this naming, INDOT should be set to 'in.' while XFER_INDOT 
  252. #should be empty. also, under solaris2.x, use 'make install' at your own risk.
  253. #don't include sys/stream.h via netinet/in.h by defining _SYS_STREAM_H.
  254. #->and note that sun moved their nslookup to /usr/sbin for some odd reason;
  255. #  when you install this one in /usr/bin you should delete sun's or else you
  256. #  will get confusing results since you never know which nslookup you're using.
  257. #PIDDIR = /etc
  258. #LEX = lex
  259. #uncomment next line for Sun C compiler
  260. #CC = /opt/SUNWspro/bin/cc $(CPPFLAGS) -R$(DESTLIB)
  261. #uncomment next line for GNU C compiler
  262. #CC = gcc $(CPPFLAGS) -Xlinker -R$(DESTLIB)
  263. #otherwise uncomment the next line and hope for the best
  264. #CC = cc $(CPPFLAGS)
  265. #CDEBUG = -g
  266. #CPPFLAGS = -DSVR4 -D_SYS_STREAM_H $(SOLCOMPAT)
  267. #INDOT = in.
  268. #XFER_INDOT =
  269. #LIBS = -ll -lnsl -lsocket
  270. #DESTEXEC = /usr/sbin
  271. #DESTHELP = /usr/lib
  272. #LDS = :
  273. #INSTALL = /usr/ucb/install
  274. #RANLIB = :
  275. #ARPREF = `lorder
  276. #ARSUFF = | tsort`
  277. #MANDIR = man
  278. #MANROFF = cat
  279. #CATEXT = $$$$N
  280. #PS = ps -p
  281. #IOT = IOT
  282. #uncomment next line for link-compatibility with Solaris resolver library
  283. #SOLCOMPAT = -Dgethostbyname=res_gethostbyname \
  284. #    -Dgethostbyaddr=res_gethostbyaddr -Dgetnetbyname=res_getnetbyname \
  285. #    -Dgetnetbyaddr=res_getnetbyaddr -Dsethostent=res_sethostent \
  286. #    -Dendhostent=res_endhostent -Dgethostent=res_gethostent \
  287. #    -Dsetnetent=res_setnetent -Dendnetent=res_endnetent \
  288. #    -Dgetnetent=res_getnetent
  289. # for details on shared library building, see shres/solaris/INSTALL
  290. #uncomment next line to build a shared library version of libresolv
  291. #SHRES = shres/solaris
  292. #uncomment next line to build tools and named with shared libresolv
  293. #if you do so, you *must* define SOLCOMPAT as well (and it must be in CPPFLAGS)
  294. #RES = $(SHRES)/libresolv.so
  295. # uncomment only one of the triplets of lines below
  296. # -- if you use gcc (recommended)
  297. #    (if -fpic doesn't work, see shres/solaris/ISSUES)
  298. #SHCC = gcc -DSVR4 -D_SYS_STREAM_H
  299. #PIC= -fpic
  300. #SHLD = /usr/ccs/bin/ld -G
  301. # -- if you use Sun's cc
  302. #SHCC = /opt/SUNWspro/bin/cc -DSVR4 -D_SYS_STREAM_H
  303. #PIC = -Kpic
  304. #SHLD = /opt/SUNWspro/bin/cc -G
  305.  
  306. #(hpux7.0,hpux8.0,hpux9.0,)
  307. #CC = cc $(CPPFLAGS)
  308. #CDEBUG = -g
  309. #CPPFLAGS =
  310. #LEX = lex
  311. #LIBS = -ll -lBSD
  312. #PIDDIR = /etc
  313. #DESTSBIN = /etc
  314. #DESTEXEC = /etc
  315. #DESTMAN = /usr/man
  316. #DESTHELP = /usr/lib
  317. #INSTALL = bsdinstall.sh
  318. #RANLIB = :
  319. #MANROFF = cat
  320. #PS = ps -p
  321. #(bsdinstall.sh is in conf/)
  322.  
  323. #(apollo domainos)
  324. #CC = cc $(CPPFLAGS)
  325. #CDEBUG = -g
  326. #CPPFLAGS = -U_APOLLO_SOURCE -D_BSD_SOURCE -DSPRINTF_CHAR -D_CLASSIC_BSD_SPRINTF
  327. #LIBS = -ll 
  328. #DESTSBIN = /etc
  329. #DESTEXEC = /etc
  330. #DESTHELP = /usr/lib
  331. #DESTMAN = /usr/man
  332. #PIDDIR = /etc
  333. #LEX = lex
  334. #PS = /bsd4.3/bin/ps
  335. #IOT = IOT
  336.  
  337. #(AIX3)
  338. #CC = bsdcc $(CPPFLAGS)
  339. #CDEBUG = -g
  340. #CPPFLAGS = -DBSD=43
  341. #LIBS = -ll
  342. #DESTEXEC = /usr/sbin
  343. #INSTALL = /usr/ucb/install
  344. #CATEXT = $$$$N
  345. #LEX = lex
  346. #PS = ps -p
  347. #IOT = IOT
  348.  
  349. # (ConvexOS-10.x)
  350. #CC = gcc $(CPPFLAGS) -g -O2 -fpcc-struct-return -fno-builtin -funsigned-char
  351. #CDEBUG = -g
  352. #CPPFLAGS =
  353. #INDOT =
  354. #LEX = flex -8 -I
  355. #LIBS = -lfl 
  356. #PIDDIR = /usr/local/etc
  357. #DESTBIN = /usr/local/bin
  358. #DESTSBIN = /usr/local/bin
  359. #DESTEXEC = /usr/local/etc
  360. #DESTMAN = /usr/local/man
  361. #DESTHELP = /usr/local/etc
  362. #DESTLIB = /usr/local/lib
  363. #DESTINC = /usr/local/include
  364. #COMPINCL = compat/include
  365. #LDS = 
  366. #INSTALL_COMPAT = install
  367. #INSTALL = install
  368. #RANLIB = ranlib
  369. #IOT = IOT
  370.  
  371. #(NEC EWS4800 EWS-UX/V Rel4.0/Rel4.2,UX/4800)
  372. #be careful with installation - note in particular that the system ships
  373. #with /usr/sbin/in.named (with in.) and /usr/sbin/named-xfer (without in.)
  374. #to emulate this naming, INDOT should be set to in. and XFER_INDOT should be
  375. #set to empty. also, under EWS4800, use 'make install' at your own risk. 
  376. #CC = /usr/necccs/bin/cc $(CPPFLAGS)
  377. #CC = /usr/abiccs/bin/cc $(CPPFLAGS)
  378. #CDEBUG = -g
  379. #CPPFLAGS = -DSVR4 -DUSE_POSIX
  380. #INDOT = in.
  381. #XFER_INDOT =
  382. #LEX = lex
  383. #LIBS = -ll -lnsl -lsocket
  384. #DESTBIN = /usr/local/bin
  385. #DESTSBIN = /etc
  386. #DESTEXEC = /etc
  387. #DESTHELP = /usr/local/lib
  388. #DESTLIB = /usr/local/lib
  389. #DESTINC = /usr/local/include
  390. #DESTMAN = /usr/local/man
  391. #PIDDIR = /etc
  392. #LDS = :
  393. #RANLIB = :
  394. #COMPINCL = compat/include
  395. #CATEXT = $$$$N
  396. #INSTALL_COMPAT = install-compat
  397. #INSTALL = /usr/ucb/install
  398. #PS = ps -p
  399. #IOT = IOT
  400.  
  401. # SCO Unix 3.4.2 / ODT 3.0 using gcc (the only choice for now)
  402. #CC = gcc $(CPPFLAGS)
  403. #CPPFLAGS = -DSYSV -DSYSV3 
  404. #CDEBUG=-O6
  405. #LDFLAGS=-s
  406. #INDOT=
  407. #LEX=lex
  408. #LIBS=-ll -lnsl_s -lsocket -lc_s
  409. #DESTBIN=/usr/bin
  410. #DESTSBIN = /etc
  411. #DESTEXEC=/etc
  412. #DESTHELP=/usr/lib
  413. #DESTMAN=/usr/local/man
  414. #PIDDIR = /etc
  415. #LDS=:
  416. #RANLIB=:
  417. #COMPINCL=compat/include
  418. #CATEXT = $$$$N
  419. #INSTALL_COMPAT = install-compat
  420. #INSTALL = scoinst
  421. #MANROFF= (tbl | groff -man -Tascii)
  422. #PS = ps -p
  423. #IOT = IOT
  424.  
  425. #(UNIXWARE)
  426. #CC = cc $(CPPFLAGS)
  427. #CPPFLAGS = -DSVR4 -DBSD_COMP -DUSE_POSIX -D_SYS_STREAM_H
  428. #CDEBUG = -O
  429. #LEX = lex
  430. #INDOT = in.
  431. #XFER_INDOT =
  432. #INSTALL = /usr/ucb/install
  433. # (1.X)
  434. #LIBS = -ll -lsocket -lnsl
  435. # (2.X)
  436. #LIBS = -ll -lsocket -lnsl -lgen
  437. #DESTSBIN = /usr/sbin
  438. #DESTEXEC = /usr/sbin
  439. #ARPREF = `lorder
  440. #ARSUFF = | tsort`
  441. #CATEXT = $$$$N
  442. #PS = ps -p
  443. #PIDDIR = /etc/inet
  444. #INSTALL_COMPAT = install-compat
  445. #RANLIB = :
  446. #LDS = :
  447. #DESTHELP=/usr/lib
  448. #IOT = IOT
  449.  
  450. #(NeXTstep 2.0ff, single architecture make)
  451. #CC = cc $(CPPFLAGS) #you can use -O2 for 3.2ff
  452. #CPPFLAGS = -Dpid_t=int
  453. #CDEBUG = -g
  454. #LIBS = -ll
  455. #LEX = lex
  456. #DESTEXEC = /usr/etc
  457. #DESTHELP = /usr/lib
  458. #DESTMAN = /usr/man
  459. #DESTSBIN = /usr/etc
  460. #PIDDIR = /etc
  461. #MANDIR = man
  462. #CATEXT = $$$$N
  463. #MANROFF = cat
  464. #INSTALL_COMPAT = install-compat
  465. #IOT = IOT
  466.  
  467. #(NeXTstep 3.3 Multi Architecture Binaries)
  468. #CC = cc $(CPPFLAGS) -arch i386 -arch m68k -arch hppa -arch sparc
  469. #CDEBUG = -O2
  470. #CPPFLAGS = -Dpid_t=int
  471. #LDS = :
  472. #AR = libtool -o
  473. #RANLIB = :
  474. #LIBS = -ll
  475. #LEX = lex
  476. #DESTEXEC = /usr/etc
  477. #DESTHELP = /usr/lib
  478. #DESTMAN = /usr/man
  479. #DESTSBIN = /usr/etc
  480. #PIDDIR = /etc
  481. #MANDIR = man
  482. #CATEXT = $$$$N
  483. #MANROFF = cat
  484. #INSTALL_COMPAT = install-compat
  485. #IOT = IOT
  486.  
  487. #(Pyramid dcosx)
  488. #CC = cc $(CPPFLAGS)
  489. #CDEBUG = -g
  490. #CPPFLAGS = -DSVR4 -DPOSIX_SIGNALS
  491. #LEX = lex
  492. #LIBS = -ll -lnsl -lsocket
  493. #RANLIB = :
  494. #PS = ps -p
  495. #IOT = IOT
  496.  
  497. #(Sequent Dynix/PTX)
  498. #CC = cc $(CPPFLAGS) -Wc,-pw
  499. #CDEBUG = -g
  500. #CPPFLAGS = -Du_int=\"unsigned int\" -DSYSV
  501. #RANLIB = :
  502. #LIBS = -ll -lsocket -linet -lnsl -lseq
  503. #PIDDIR = /etc
  504. #DESTSBIN = /usr/local/etc
  505. #DESTEXEC = /usr/local/etc
  506. #DESTHELP = /usr/local/lib
  507. #LEX = lex
  508. #PS = ps -p
  509. #IOT = IOT
  510.  
  511. #(dgux)
  512. #LEX = lex
  513. #RANLIB =
  514. #CC = gcc $(CPPFLAGS)
  515. #CDEBUG = -g
  516. #CPPFLAGS = -D__STDC__ -DDGUX
  517. #LIBS = -ll
  518. #DESTBIN = /usr/bin
  519. #DESTSBIN = /usr/bin
  520. #DESTEXEC = /usr/bin
  521. #DESTMAN = /usr/local/man
  522. #DESTHELP = /usr/lib
  523. #DESTLIB = /usr/lib
  524. #DESTINC = /usr/include
  525. #PIDDIR = /etc
  526. #PS = ps -p
  527. #IOT = IOT
  528.  
  529. #(epix) Has to be compiled and loaded with -systype bsd43
  530. # Epix 2.x.x requires /bsd43/bin in front of the PATH variable
  531. #CC = cc $(CPPFLAGS) -signed -systype bsd43
  532. #CDEBUG = -g
  533. #CPPFLAGS = -DSTDIN_FILENO=0
  534. #LEX = lex
  535. #LIBS = -ll
  536. #DESTSBIN = /etc/local
  537. #DESTEXEC = /etc/local
  538. #DESTMAN = /usr/local/man
  539. #DESTHELP = /usr/lib
  540. #INSTALL = install.sh
  541. #RANLIB = :
  542. #PS = ps -p
  543. #IOT = IOT
  544.  
  545. #Mips RISC/os 4.52
  546. #CC = cc $(CPPFLAGS) -systype bsd43
  547. #CPPFLAGS = -Dpid_t=int
  548. #CDEBUG = -O -g3 -Olimit 1000
  549. #LEX = lex
  550. #LIBS = -ll
  551. #PIDDIR = /etc
  552. #DESTBIN = /usr/local/bin
  553. #DESTSBIN = /usr/etc
  554. #DESTEXEC = /usr/etc
  555. #DESTMAN = /usr/local/man
  556. #DESTHELP = /usr/local/lib
  557. #DESTLIB = /usr/local/lib
  558. #DESTINC = /usr/local/include
  559. #PS = ps -p
  560. #IOT = IOT
  561.  
  562. #Esix SVR4.0.4 with gcc
  563. # also works for Dell 2.2 and other i386 SVR4.0. Probably Unixware 1.1 as well.
  564. #Be careful with installation - note in particular that the system ships
  565. #with /usr/sbin/in.named (with in.) and /usr/sbin/named-xfer (without in.)
  566. #to emulate this naming, INDOT should be set to in. and XFER_INDOT should be
  567. #set to empty. also, use 'make install' at your own risk.
  568. #don't include sys/stream.h via netinet/in.h by defining _SYS_STREAM_H.
  569. #CC = gcc $(CPPFLAGS)
  570. #CPPFLAGS = -DSVR4 -DBSD_COMP -DUSE_POSIX -D_SYS_STREAM_H
  571. #CDEBUG = -O
  572. #LEX = lex
  573. #INDOT = in.
  574. #XFER_INDOT =
  575. #PIDDIR = /etc
  576. #INSTALL = /usr/ucb/install
  577. #LIBS = -ll -lsocket -lnsl
  578. #DESTSBIN = /usr/sbin
  579. #DESTEXEC = /usr/sbin
  580. #LDS = @:
  581. #RANLIB = @:
  582. #ARPREF = `lorder
  583. #ARSUFF = | tsort`
  584. #CATEXT = $$$$N
  585. #PS = ps -p
  586. #IOT = IOT
  587.  
  588. #(ISC4.0 using GCC)
  589. #CC = gcc -DISC -posix
  590. #CPPFLAGS =
  591. #CDEBUG = -g
  592. #LEX = flex -I
  593. #LIBS = -lbsd
  594. #PIDDIR = /etc
  595. #DESTBIN = /usr/bin
  596. #DESTSBIN = /etc
  597. #DESTEXEC = /etc
  598. #DESTHELP = /etc
  599. #DESTMAN = /usr/catman/l_man
  600. #CATEXT = $$$$N
  601. #RANLIB = @:
  602. #LDS = @:
  603. #PS = ps -p
  604. #ARPREF = `lorder
  605. #ARSUFF = | tsort`
  606. #IOT = IOT
  607.  
  608. # AUX 3.x (I used 3.1.1)
  609. #CC = gcc $(CPPFLAGS)
  610. #CDEBUG = -O2
  611. #CPPFLAGS = -D_POSIX_SOURCE -DSYSV
  612. #LEX = lex
  613. #LIBS = -ll -lposix -lmalloc -s
  614. #PIDDIR = /etc
  615. #DESTBIN = /etc
  616. #DESTSBIN = /etc
  617. #DESTEXEC = /etc
  618. #DESTMAN = /usr/local/man
  619. #DESTHELP = /etc
  620. #COMPINCL = compat/include
  621. #CATEXT = $$$$N
  622. #INSTALL_COMPAT = install-compat
  623. #INSTALL = install
  624. #RANLIB = @:
  625. #PS = ps -p
  626. #IOT = IOT
  627.  
  628. #NCR System V/MLS  
  629. #use same definitions as for sunos4.x except for the following
  630. #be careful with installation - note in particular that the system ships
  631. #with /usr/sbin/in.named (with in.) and /usr/sbin/named-xfer (without in.)
  632. #to emulate this naming, INDOT should be set to 'in.' while XFER_INDOT 
  633. #should be empty. also, under solaris2.x, use 'make install' at your own risk.
  634. #don't include sys/stream.h via netinet/in.h by defining _SYS_STREAM_H.
  635. #PIDDIR = /usr/local/lib
  636. #LEX = lex
  637. #CC = cc $(CPPFLAGS)
  638. #CDEBUG = -g
  639. #CPPFLAGS = -DSVR4 -D_SYS_STREAM_H -Hnocopyr -DPOSIX_SIGNALS -DNCR -w
  640. #INDOT = in.
  641. #XFER_INDOT =
  642. #LIBS = -ll -lnsl -lsocket
  643. #DESTEXEC = /usr/local/bin
  644. #LDS = :
  645. #RANLIB = :
  646. #ARPREF = `lorder
  647. #ARSUFF = | tsort`
  648. #CATEXT = $$$$N
  649. #PS = ps -p
  650. #IOT = IOT
  651.  
  652. ####################################################################
  653. ############ no user servicable parts beyond this point ############
  654. ####################################################################
  655.  
  656. MANARGS = \
  657.     "SHELL=${SHELL}" "INDOT=${INDOT}" "XFER_INDOT=${XFER_INDOT}" \
  658.     "DESTDIR=${DESTDIR}" "DESTMAN=${DESTMAN}" "INSTALL=${INSTALL}" \
  659.     CATEXT='${CATEXT}' MANDIR='${MANDIR}' MANROFF='${MANROFF}'
  660.  
  661. MARGS =    "VER=${VER}" "CC=${CC}" "CDEBUG=${CDEBUG}" "LIBS=${LIBS}" \
  662.     "INCL=../${INCL}" "RES=../${RES}" "LEX=${LEX}" "LDFLAGS=${LDFLAGS}" \
  663.     "PIDDIR=${PIDDIR}" "DESTBIN=${DESTBIN}" "DESTSBIN=${DESTSBIN}" \
  664.     "DESTEXEC=${DESTEXEC}" "COMPINCL=../${COMPINCL}" \
  665.     "COMPLIB=../${COMPLIB}" "DESTLIB=${DESTLIB}" "DESTINC=${DESTINC}" \
  666.     "DESTHELP=${DESTHELP}" "PIC=${PIC}" "SHCC=${SHCC}" "SHLD=${SHLD}" \
  667.     "AR=${AR}" "RANLIB=${RANLIB}" "LDS=${LDS}" 'ARPREF=${ARPREF}' \
  668.     'ARSUFF=${ARSUFF}' $(MANARGS) PS="${PS}" "IOT=${IOT}" \
  669.     "CPPFLAGS=${CPPFLAGS}"
  670.  
  671. MACHINE = native
  672. DST = $(MACHINE).b
  673. SRC = ..
  674.  
  675. SUBDIRS = res $(SHRES) include compat named tools man
  676.  
  677. all:: FRC
  678.  
  679. all clean depend:: FRC
  680.     @for x in $(SUBDIRS); do \
  681.         (cd $$x; pwd; $(MAKE) $(MARGS) $@); \
  682.     done
  683.  
  684. $(SUBDIRS):: FRC
  685.     @for x in $@; do \
  686.         (cd $$x; pwd; $(MAKE) $(MARGS) all); \
  687.     done
  688.  
  689. clean:: FRC
  690.     -test -d doc/bog && (cd doc/bog; pwd; $(MAKE) $(MARGS) $@)
  691.     (cd conf; rm -f *~ *.CKP *.BAK *.orig)
  692.     rm -f *~ *.CKP *.BAK *.orig
  693.  
  694. depend:: FRC
  695.  
  696. mkdirs: FRC
  697.     -set +e; for x in $(DESTBIN) $(DESTSBIN) $(DESTEXEC) \
  698.           $(DESTMAN) $(DESTHELP) $(DESTLIB) $(DESTINC); do \
  699.         test -d $$x || mkdir -p $$x; \
  700.     done
  701.  
  702. install: FRC
  703.     @for x in $(SUBDIRS); do \
  704.         y=`if [ "X$$x" = "Xcompat" ]; \
  705.             then echo ${INSTALL_COMPAT}; \
  706.             else echo install; \
  707.            fi`; \
  708.         (cd $$x; pwd; $(MAKE) $(MARGS) $$y); \
  709.     done
  710.  
  711. D = OPTIONS master bin doc named CHANGES README compat include res \
  712.     Makefile TODO conf man tools 
  713.  
  714. copyright: FRC
  715.     bin/copyright <conf/copyright `find ${D} -type f ! -name '*,v' -print`
  716.  
  717. tar: FRC
  718.     ( cd doc/bog; make file.psf file.lst )
  719.     find * '(' -name RCS -o -name obj -o -name .depend ')' \
  720.         -print >/tmp/bindXf
  721.     gnutar -c -z -f ../bind-${VER}.tar.gz           -X /tmp/bindXf .
  722.     rm -f /tmp/bindXf
  723.  
  724. links: $(DST)
  725.  
  726. $(DST): FRC
  727.     @set -ex; mkdir $(DST); cd $(DST); \
  728.     ln -s $(SRC) SRC; \
  729.     cp SRC/Makefile .; chmod +w Makefile; \
  730.     ( mkdir include; cd include; ln -s ../SRC/include SRC; \
  731.       cp SRC/Makefile .; chmod +w Makefile; \
  732.       ln -s SRC/*.h SRC/arpa .; \
  733.     ); \
  734.     ( mkdir conf; cd conf; ln -s ../SRC/conf SRC; \
  735.       ln -s SRC/*.h .; \
  736.     ); \
  737.     ( mkdir tools; cd tools; ln -s ../SRC/tools SRC; \
  738.       ln -s SRC/*.[ch] .; \
  739.       cp SRC/Makefile .; chmod +w Makefile; \
  740.       ( mkdir nslookup; cd nslookup; ln -s ../SRC/nslookup SRC; \
  741.         cp SRC/Makefile .; chmod +w Makefile; \
  742.         ln -s SRC/[a-z]* .; \
  743.       ); \
  744.     ); \
  745.     ( mkdir res; cd res; ln -s ../SRC/res SRC; \
  746.       cp SRC/Makefile .; chmod +w Makefile; \
  747.       ln -s SRC/*.[ch] .; \
  748.     ); \
  749.     ( mkdir compat; cd compat; ln -s ../SRC/compat SRC; \
  750.       cp SRC/Makefile .; chmod +w Makefile; \
  751.       ln -s SRC/include .; \
  752.       ( mkdir lib; cd lib; ln -s ../SRC/lib SRC; \
  753.         cp SRC/Makefile .; chmod +w Makefile; \
  754.         ln -s SRC/*.c .; \
  755.       ); \
  756.     ); \
  757.     ( mkdir named; cd named; ln -s ../SRC/named SRC; \
  758.       cp SRC/Makefile .; chmod +w Makefile; \
  759.       ln -s SRC/*.[ch] SRC/*.sh .; \
  760.     ); \
  761.     ( mkdir shres; cd shres; ln -s ../SRC/shres SRC; \
  762.       ( mkdir sunos; cd sunos; ln -s ../../SRC/shres/sunos SRC; \
  763.         cp SRC/Makefile .; chmod +w Makefile; \
  764.         ln -s SRC/makeshlib SRC/*.patch* .; \
  765.       ); \
  766.       ( mkdir netbsd; cd netbsd; ln -s ../../SRC/shres/netbsd SRC; \
  767.         cp SRC/Makefile .; chmod +w Makefile; \
  768.         ln -s SRC/makeshlib SRC/lorder-sparc.sed SRC/shlibname.awk .; \
  769.       ); \
  770.       ( mkdir solaris; cd solaris; ln -s ../../SRC/shres/solaris SRC; \
  771.         cp SRC/Makefile .; chmod +w Makefile; \
  772.       ); \
  773.     ); \
  774.     ( mkdir man; cd man; ln -s ../SRC/man SRC; \
  775.       cp SRC/Makefile .; chmod +w Makefile; \
  776.       ln -s SRC/*.[0-9] .; \
  777.     )
  778.  
  779. gcc2-lint: FRC
  780.     @-make CC="gcc2 -Wall -Wno-comment -Wno-parentheses -Dlint" all \
  781.         2>&1 | grep '\.[ch]:[0-9]'
  782.  
  783. FRC:
  784.