home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / bind495a.zip / Makefile < prev    next >
Makefile  |  1996-12-23  |  25KB  |  968 lines

  1. # Makefile for BIND>=4.9 top level
  2. # vixie@decwrl December, 1992 [original]
  3. #
  4. # $Id: Makefile,v 8.47 1996/11/11 06:36:40 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.5-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. PIC =
  105.  
  106. # (NetBSD - for details on shared library building, see shres/netbsd/INSTALL)
  107. #uncomment next three lines to build a shared library version of libresolv
  108. #SHRES = shres/netbsd
  109. #SHCC = cc $(CPPFLAGS)
  110. #PIC = -fpic
  111.  
  112. #(Linux - on modern systems, all you need to do is rename or remove
  113. # compat/include/sys/cdefs.h.  See doc/info/Linux for more information.)
  114. #CC = gcc $(CPPFLAGS)
  115. #CDEBUG = -g
  116. #CPPFLAGS = -DSYSV
  117. #LEX=flex -8 -I
  118. #INSTALL_COMPAT = install-compat
  119. #LIBS = -lfl
  120. #DESTEXEC = /usr/sbin
  121. #DESTMAN = /usr/man
  122. #MANDIR = man
  123. #MANROFF = cat
  124. #DESTHELP = /usr/lib
  125. #CATEXT = $$$$N
  126. #PS = ps -p
  127. #IOT = IOT
  128. #uncomment next line to build a shared library version of libresolv
  129. #SHRES = shres/linux
  130. #uncomment next line to build tools and named with shared libresolv
  131. #RES = $(SHRES)/libresolv.so
  132. # ... and then (for shared) uncomment these lines too:
  133. #SHCC = gcc $(CPPFLAGS) -fomit-frame-pointer -pipe
  134. #PIC= -fpic
  135. #SHMAJVER=4
  136. #SHVER=$(SHMAJVER).9.5.0.4
  137. #SHLD= gcc -shared -Wl,-rpath,$(DESTDIR)$(DESTLIB),-soname,libresolv.so.$(SHMAJVER) -lfl
  138.  
  139. #(CRAY)
  140. #CDEBUG = -g
  141. #LEX=lex
  142. #IOT = IOT
  143.  
  144. #(DEC AXP OSF/1 Version 2.1 and earlier)
  145. #CC = cc $(CPPFLAGS)
  146. #CDEBUG = -g3 -O2 -Olimit 2000
  147. #CPPFLAGS =
  148. #LEX = lex
  149. #LIBS = -ll -lutil
  150. #DESTEXEC = /usr/sbin
  151. #COMPINCL = compat/include
  152. #INSTALL_COMPAT = install-compat
  153. #INSTALL = installbsd
  154. #MANDIR = man
  155. #MANROFF = cat
  156. #CATEXT = $$$$N
  157. #PS = ps -p
  158. #IOT = IOT
  159.  
  160. #(DEC AXP OSF/1 Version 3.0 and after)
  161. #CC = cc $(CPPFLAGS) -std
  162. #CDEBUG = -g3 -O2 -Olimit 2000
  163. #CPPFLAGS = -DCHECK_UDP_SUM
  164. #LEX = lex
  165. #LIBS = -ll -lutil -lmld
  166. #DESTEXEC = /usr/sbin
  167. #COMPINCL = compat/include
  168. #INSTALL_COMPAT = install-compat
  169. #INSTALL = installbsd
  170. #MANDIR = man
  171. #MANROFF = cat
  172. #CATEXT = $$$$N
  173. #PS = ps -p
  174. #IOT = IOT
  175. #KSYMS = /vmunix
  176. #KMEM = /dev/kmem
  177. #UDPSUM = udpcksum
  178.  
  179. #(irix4)
  180. #CC = cc $(CPPFLAGS) -xansi -signed
  181. #CDEBUG = -g
  182. #CPPFLAGS = -D__STDC__ -D_BSD_SIGNALS -DSIG_FN=int -DCHECK_UDP_SUM -DKMAP
  183. #LEX = lex
  184. #LIBS = -ll -lmld
  185. #DESTSBIN = /usr/etc
  186. #DESTEXEC = /usr/etc
  187. #DESTMAN = /usr/catman/local
  188. #DESTHELP = /usr/lib
  189. #INSTALL = bsdinstall.sh
  190. #RANLIB = :
  191. #PS = ps -p
  192. #(bsdinstall.sh is in conf/)
  193. #IOT = IOT
  194. #KSYMS = /unix
  195. #KMEM = /dev/kmem
  196. #UDPSUM = udpcksum
  197.  
  198. #(irix5 and irix6.2)
  199. #CC = cc $(CPPFLAGS) -xansi -signed
  200. #CDEBUG = -g
  201. #CPPFLAGS = -D__STDC__ -D_BSD_SIGNALS -DSIG_FN=void -D__BIT_TYPES_DEFINED__ \
  202. #        -DCHECK_UDP_SUM -DKMAP
  203. #LEX = lex
  204. #LIBS = -ll -lelf
  205. #DESTSBIN = /usr/etc
  206. #DESTEXEC = /usr/etc
  207. #DESTMAN = /usr/share/catman/local
  208. #DESTHELP = /usr/lib
  209. #INSTALL = bsdinstall.sh
  210. #RANLIB = :
  211. #PS = ps -p
  212. #(bsdinstall.sh is in conf/)
  213. #IOT = IOT
  214. #KSYMS = /unix
  215. #KMEM = /dev/kmem
  216. #UDPSUM = udpcksum
  217. # shared libresolv.o options below.
  218. # they could work under irix6, if the cmplr didn't change alot
  219. #SHRES = shres/irix
  220. #SHCC = $(CC) $(CPPFLAGS)
  221. #SHLD = ld -shared
  222. #RES = $(SHRES)/libresolv.so
  223.  
  224. #(sunos4.x)
  225. #CC = /usr/bin/cc $(CPPFLAGS)
  226. #CDEBUG = -g
  227. #CPPFLAGS = -DSUNOS4 -DSPRINTF_CHAR -DCHECK_UDP_SUM -Dconst=
  228. #INDOT = in.
  229. #XFER_INDOT = in.
  230. #LEX = lex
  231. #LIBS = -ll
  232. #(add "-ldl" to LIBS if your links fail with "dlopen" problems.  this indicates
  233. # that your libc.so file is screwed up, but it's easier to fix this than that.)
  234. #PIDDIR = /etc
  235. #DESTSBIN = /usr/etc
  236. #DESTEXEC = /usr/etc
  237. #DESTHELP = /usr/lib
  238. #COMPINCL = compat/include
  239. #MANDIR = man
  240. #CATEXT = $$$$N
  241. #MANROFF = cat
  242. #INSTALL_COMPAT = install-compat
  243. #INSTALL = install
  244. #IOT = IOT
  245. #KSYMS = /vmunix
  246. #KMEM = /dev/kmem
  247. #UDPSUM = _udp_cksum
  248. # (for details on shared library building, see shres/sunos/INSTALL;
  249. #  note that shres/solaris/INSTALL has some good testing notes for sunos)
  250. #uncomment next line to build a shared library version of libresolv
  251. #SHRES = shres/sunos
  252. # uncomment only one of the pairs of lines below
  253. # -- if you use gcc (recommended)
  254. #    (if -fpic doesn't work, see shres/sunos/PROBLEMS)
  255. #SHCC = gcc -DSUNSECURITY $(CPPFLAGS)
  256. #PIC= -B/usr/bin/ -fpic -D_res=_res_shlib
  257. # -- if you use Sun's cc
  258. #SHCC = /usr/bin/cc -DSUNSECURITY $(CPPFLAGS)
  259. #PIC = -pic -D_res=_res_shlib
  260.  
  261. #(ULTRIX/RISC - also see below)
  262. #CC = cc $(CPPFLAGS) -Olimit 2000 -YPOSIX
  263.  
  264. #(ULTRIX, other 4.[23]bsd-alikes)
  265. #CDEBUG = -g
  266. #CPPFLAGS = -DCHECK_UDP_SUM
  267. #LEX = lex
  268. #LIBS = -ll
  269. #PIDDIR = /etc
  270. #DESTSBIN = /usr/etc
  271. #DESTEXEC = /usr/etc
  272. #DESTHELP = /usr/lib
  273. #COMPINCL = compat/include
  274. #CATEXT = $$$$N
  275. #INSTALL_COMPAT = install-compat
  276. #INSTALL = install
  277. #DESTMAN = /usr/man
  278. #MANDIR = man
  279. #MANROFF = cat
  280. #IOT = IOT
  281. #KSYMS = /vmunix
  282. #KMEM = /dev/kmem
  283. #UDPSUM = udpcksum
  284.  
  285. #(solaris2.x/sunos5.x)
  286. #be careful with installation - note in particular that the system ships
  287. #with /usr/sbin/in.named (with in.) and /usr/sbin/named-xfer (without in.)
  288. #to emulate this naming, INDOT should be set to 'in.' while XFER_INDOT 
  289. #should be empty. also, under solaris2.x, use 'make install' at your own risk.
  290. #don't include sys/stream.h via netinet/in.h by defining _SYS_STREAM_H.
  291. #->and note that sun moved their nslookup to /usr/sbin for some odd reason;
  292. #  when you install this one in /usr/bin you should delete sun's or else you
  293. #  will get confusing results since you never know which nslookup you're using.
  294. #PIDDIR = /etc
  295. #LEX = lex
  296. #uncomment next line for Sun C compiler
  297. #CC = /opt/SUNWspro/bin/cc $(CPPFLAGS) -R$(DESTLIB)
  298. #uncomment next two lines for GNU C compiler
  299. #CC = gcc $(CPPFLAGS)
  300. #LDFLAGS=-Xlinker -R$(DESTLIB)
  301. #otherwise uncomment the next line and hope for the best
  302. #CC = cc $(CPPFLAGS)
  303. #CDEBUG = -g
  304. #CPPPFLAGS = -DSVR4 -D_SYS_STREAM_H
  305. #CPPFLAGS = $(CPPPFLAGS) $(SOLCOMPAT)
  306. #INDOT = in.
  307. #XFER_INDOT =
  308. #LIBS = -ll -lnsl -lsocket
  309. #DESTEXEC = /usr/sbin
  310. #DESTHELP = /usr/lib
  311. #INSTALL_COMPAT = install-compat
  312. #LDS = :
  313. #INSTALL = /usr/ucb/install
  314. #RANLIB = :
  315. #ARPREF = `lorder
  316. #ARSUFF = | tsort`
  317. #MANDIR = man
  318. #MANROFF = cat
  319. #CATEXT = $$$$N
  320. #PS = ps -p
  321. #IOT = IOT
  322. #uncomment next line for link-compatibility with Solaris resolver library
  323. #SOLCOMPAT = -Dgethostbyname=res_gethostbyname \
  324. #    -Dgethostbyaddr=res_gethostbyaddr -Dgetnetbyname=res_getnetbyname \
  325. #    -Dgetnetbyaddr=res_getnetbyaddr -Dsethostent=res_sethostent \
  326. #    -Dendhostent=res_endhostent -Dgethostent=res_gethostent \
  327. #    -Dsetnetent=res_setnetent -Dendnetent=res_endnetent \
  328. #    -Dgetnetent=res_getnetent
  329. # for details on shared library building, see shres/solaris/INSTALL
  330. #uncomment next line to build a shared library version of libresolv
  331. #SHRES = shres/solaris
  332. #uncomment next line to build tools and named with shared libresolv
  333. #if you do so, you *must* define SOLCOMPAT as well (and it must be in CPPFLAGS)
  334. #RES = $(SHRES)/libresolv.so
  335. # uncomment only one of the triplets of lines below
  336. # -- if you use gcc (recommended)
  337. #    (if -fpic doesn't work, see shres/solaris/ISSUES)
  338. #SHCC = gcc -B/usr/ccs/bin/ $(CPPPFLAGS)
  339. #PIC= -fpic
  340. #SHLD = /usr/ccs/bin/ld -G
  341. # -- if you use Sun's cc
  342. #SHCC = /opt/SUNWspro/bin/cc $(CPPPFLAGS)
  343. #PIC = -Kpic
  344. #SHLD = /opt/SUNWspro/bin/cc -G
  345.  
  346. #(hpux7.0,hpux8.0,hpux9.0,)
  347. #CC = cc $(CPPFLAGS)
  348. #CDEBUG = -g
  349. #CPPFLAGS = -DCHECK_UDP_SUM
  350. #LEX = lex
  351. #LIBS = -ll -lBSD
  352. #PIDDIR = /etc
  353. #DESTSBIN = /etc
  354. #DESTEXEC = /etc
  355. #DESTMAN = /usr/man
  356. #DESTHELP = /usr/lib
  357. #INSTALL = bsdinstall.sh
  358. #RANLIB = :
  359. #MANROFF = cat
  360. #PS = ps -p
  361. #KSYMS = /hp-ux
  362. #KMEM = /dev/kmem
  363. #UDPSUM = udpcksum
  364. #(bsdinstall.sh is in conf/)
  365.  
  366. #(hpux10.10)
  367. #CC = cc $(CPPFLAGS)
  368. #CDEBUG = -g
  369. #CPPFLAGS = -Dconst=
  370. #LEX = lex
  371. #LIBS = -ll
  372. #PIDDIR = /etc
  373. #DESTSBIN = /usr/sbin
  374. #DESTEXEC = /usr/sbin
  375. #DESTMAN = /usr/man
  376. #DESTHELP = /usr/lib
  377. #LDS = :
  378. #INSTALL = bsdinstall.sh
  379. #RANLIB = :
  380. #MANROFF = cat
  381. #PS = ps -p
  382. #INSTALL_COMPAT = install-install
  383. #(bsdinstall.sh is in conf/)
  384.  
  385. #(apollo domainos)
  386. #CC = cc $(CPPFLAGS)
  387. #CDEBUG = -g
  388. #CPPFLAGS = -U_APOLLO_SOURCE -D_BSD_SOURCE -DSPRINTF_CHAR -D_CLASSIC_BSD_SPRINTF
  389. #LIBS = -ll 
  390. #DESTSBIN = /etc
  391. #DESTEXEC = /etc
  392. #DESTHELP = /usr/lib
  393. #DESTMAN = /usr/man
  394. #PIDDIR = /etc
  395. #LEX = lex
  396. #PS = /bsd4.3/bin/ps
  397. #IOT = IOT
  398.  
  399. #(AIX3)
  400. #CC = bsdcc $(CPPFLAGS)
  401. #CDEBUG = -g
  402. #CPPFLAGS = -DBSD=43
  403. #LIBS = -ll
  404. #DESTEXEC = /usr/sbin
  405. #INSTALL = /usr/ucb/install
  406. #CATEXT = $$$$N
  407. #LEX = lex
  408. #PS = ps -p
  409. #IOT = IOT
  410.  
  411. #(AIX4)
  412. #CC = cc $(CPPFLAGS)
  413. #CDEBUG = -g
  414. #CPPFLAGS = -D_BSD=44
  415. #LIBS = -ll -lbsd
  416. #DESTEXEC = /usr/sbin
  417. #INSTALL = /usr/ucb/install
  418. #CATEXT = $$$$N
  419. #LEX = lex
  420. #PS = ps -p
  421. #IOT = IOT
  422.  
  423. # (ConvexOS-10.x)
  424. #CC = gcc $(CPPFLAGS) -g -O2 -fpcc-struct-return -fno-builtin -funsigned-char
  425. #CDEBUG = -g
  426. #CPPFLAGS =
  427. #INDOT =
  428. #LEX = flex -8 -I
  429. #LIBS = -lfl 
  430. #PIDDIR = /usr/local/etc
  431. #DESTBIN = /usr/local/bin
  432. #DESTSBIN = /usr/local/bin
  433. #DESTEXEC = /usr/local/etc
  434. #DESTMAN = /usr/local/man
  435. #DESTHELP = /usr/local/etc
  436. #DESTLIB = /usr/local/lib
  437. #DESTINC = /usr/local/include
  438. #COMPINCL = compat/include
  439. #LDS = 
  440. #INSTALL_COMPAT = install
  441. #INSTALL = install
  442. #RANLIB = ranlib
  443. #IOT = IOT
  444.  
  445. #(NEC EWS4800 EWS-UX/V Rel4.0/Rel4.2,UX/4800)
  446. #be careful with installation - note in particular that the system ships
  447. #with /usr/sbin/in.named (with in.) and /usr/sbin/named-xfer (without in.)
  448. #to emulate this naming, INDOT should be set to in. and XFER_INDOT should be
  449. #set to empty. also, under EWS4800, use 'make install' at your own risk. 
  450. #CC = /usr/necccs/bin/cc $(CPPFLAGS)
  451. #CC = /usr/abiccs/bin/cc $(CPPFLAGS)
  452. #CDEBUG = -g
  453. #CPPFLAGS = -DSVR4 -DUSE_POSIX
  454. #INDOT = in.
  455. #XFER_INDOT =
  456. #LEX = lex
  457. #LIBS = -ll -lnsl -lsocket
  458. #DESTBIN = /usr/local/bin
  459. #DESTSBIN = /etc
  460. #DESTEXEC = /etc
  461. #DESTHELP = /usr/local/lib
  462. #DESTLIB = /usr/local/lib
  463. #DESTINC = /usr/local/include
  464. #DESTMAN = /usr/local/man
  465. #PIDDIR = /etc
  466. #LDS = :
  467. #RANLIB = :
  468. #COMPINCL = compat/include
  469. #CATEXT = $$$$N
  470. #INSTALL_COMPAT = install-compat
  471. #INSTALL = /usr/ucb/install
  472. #PS = ps -p
  473. #IOT = IOT
  474.  
  475. # SCO OSE5, SCO ODT 3.0, SCO Unix 3.2v4.2
  476. # uncomment only one set of the CC/CDEBUG lines below
  477. # -- OSE5 using SCO's cc
  478. #CC = cc $(CPPFLAGS)
  479. #CDEBUG=-O3
  480. # -- ODT 3.0 / 3.2v4.2 using SCO's cc ( lots of warnings during compilation )
  481. #CC = cc $(CPPFLAGS)
  482. #CDEBUG=-O
  483. # -- if you use gcc ( gcc highly recommended on 3.2v4.2 / ODT 3.0 )
  484. #CC = gcc $(CPPFLAGS)
  485. #CDEBUG=-O6
  486. # For the time being, the rest is common for all supported SCO flavors
  487. #CPPFLAGS = -DSYSV -DSYSV3
  488. #LDFLAGS=-s
  489. #INDOT=
  490. #LEX=lex
  491. #LIBS=-ll -lnsl_s -lsocket -lc_s
  492. #DESTBIN=/usr/bin
  493. #DESTSBIN = /etc
  494. #DESTEXEC=/etc
  495. #DESTHELP=/usr/lib
  496. #DESTMAN=/usr/local/man
  497. #PIDDIR = /etc
  498. #LDS=:
  499. #RANLIB=:
  500. #COMPINCL=compat/include
  501. #CATEXT = $$$$N
  502. #INSTALL_COMPAT = install-compat
  503. #INSTALL = scoinst
  504. #MANROFF= (tbl | groff -man -Tascii)
  505. #PS = ps -p
  506. #IOT = IOT
  507.  
  508. #(UNIXWARE)
  509. #CC = cc $(CPPFLAGS)
  510. #CPPFLAGS = -DSVR4 -DBSD_COMP -DUSE_POSIX -D_SYS_STREAM_H
  511. #CDEBUG = -O
  512. #LEX = lex
  513. #INDOT = in.
  514. #XFER_INDOT =
  515. #INSTALL = /usr/ucb/install
  516. # (1.X)
  517. #LIBS = -ll -lsocket -lnsl
  518. # (2.X)
  519. #LIBS = -ll -lsocket -lnsl -lgen
  520. #DESTSBIN = /usr/sbin
  521. #DESTEXEC = /usr/sbin
  522. #ARPREF = `lorder
  523. #ARSUFF = | tsort`
  524. #CATEXT = $$$$N
  525. #PS = ps -p
  526. #PIDDIR = /etc/inet
  527. #INSTALL_COMPAT = install-compat
  528. #RANLIB = :
  529. #LDS = :
  530. #DESTHELP=/usr/lib
  531. #IOT = IOT
  532.  
  533. #(NeXTstep 2.0ff, single architecture make)
  534. #CC = cc $(CPPFLAGS) #you can use -O2 for 3.2ff
  535. #CPPFLAGS = -Dpid_t=int
  536. #CDEBUG = -g
  537. #LIBS = -ll
  538. #LEX = lex
  539. #DESTEXEC = /usr/etc
  540. #DESTHELP = /usr/lib
  541. #DESTMAN = /usr/man
  542. #DESTSBIN = /usr/etc
  543. #PIDDIR = /etc
  544. #MANDIR = man
  545. #CATEXT = $$$$N
  546. #MANROFF = cat
  547. #INSTALL_COMPAT = install-compat
  548. #IOT = IOT
  549.  
  550. #(NeXTstep 3.3 Multi Architecture Binaries)
  551. #CC = cc $(CPPFLAGS) -arch i386 -arch m68k -arch hppa -arch sparc
  552. #CDEBUG = -O2
  553. #CPPFLAGS = -Dpid_t=int
  554. #LDS = :
  555. #AR = libtool -o
  556. #RANLIB = :
  557. #LIBS = -ll
  558. #LEX = lex
  559. #DESTEXEC = /usr/etc
  560. #DESTHELP = /usr/lib
  561. #DESTMAN = /usr/man
  562. #DESTSBIN = /usr/etc
  563. #PIDDIR = /etc
  564. #MANDIR = man
  565. #CATEXT = $$$$N
  566. #MANROFF = cat
  567. #INSTALL_COMPAT = install-compat
  568. #IOT = IOT
  569.  
  570. #(Pyramid dcosx)
  571. #CC = cc $(CPPFLAGS)
  572. #CDEBUG = -g
  573. #CPPFLAGS = -DSVR4 -DPOSIX_SIGNALS
  574. #LEX = lex
  575. #LIBS = -ll -lnsl -lsocket
  576. #RANLIB = :
  577. #PS = ps -p
  578. #IOT = IOT
  579.  
  580. #(Sequent Dynix/PTX)
  581. #CC = cc $(CPPFLAGS) -Wc,-pw
  582. #CDEBUG = -g
  583. #CPPFLAGS = -Du_int=\"unsigned int\" -DSYSV
  584. #RANLIB = :
  585. #LIBS = -ll -lsocket -linet -lnsl -lseq
  586. #PIDDIR = /etc
  587. #DESTSBIN = /usr/local/etc
  588. #DESTEXEC = /usr/local/etc
  589. #DESTHELP = /usr/local/lib
  590. #LEX = lex
  591. #PS = ps -p
  592. #IOT = IOT
  593.  
  594. #(dgux)
  595. #LEX = lex
  596. #RANLIB =
  597. #CC = gcc $(CPPFLAGS)
  598. #CDEBUG = -g
  599. #CPPFLAGS = -D__STDC__ -DDGUX
  600. #LIBS = -ll
  601. #DESTBIN = /usr/bin
  602. #DESTSBIN = /usr/bin
  603. #DESTEXEC = /usr/bin
  604. #DESTMAN = /usr/local/man
  605. #DESTHELP = /usr/lib
  606. #DESTLIB = /usr/lib
  607. #DESTINC = /usr/include
  608. #PIDDIR = /etc
  609. #PS = ps -p
  610. #IOT = IOT
  611.  
  612. #(epix) Has to be compiled and loaded with -systype bsd43
  613. # Epix 2.x.x requires /bsd43/bin in front of the PATH variable
  614. #CC = cc $(CPPFLAGS) -signed -systype bsd43
  615. #CDEBUG = -g
  616. #CPPFLAGS = -DSTDIN_FILENO=0
  617. #LEX = lex
  618. #LIBS = -ll
  619. #DESTSBIN = /etc/local
  620. #DESTEXEC = /etc/local
  621. #DESTMAN = /usr/local/man
  622. #DESTHELP = /usr/lib
  623. #INSTALL = install.sh
  624. #RANLIB = :
  625. #PS = ps -p
  626. #IOT = IOT
  627.  
  628. #Mips RISC/os 4.52
  629. #CC = cc $(CPPFLAGS) -systype bsd43
  630. #CPPFLAGS = -Dpid_t=int
  631. #CDEBUG = -O -g3 -Olimit 1000
  632. #LEX = lex
  633. #LIBS = -ll
  634. #PIDDIR = /etc
  635. #DESTBIN = /usr/local/bin
  636. #DESTSBIN = /usr/etc
  637. #DESTEXEC = /usr/etc
  638. #DESTMAN = /usr/local/man
  639. #DESTHELP = /usr/local/lib
  640. #DESTLIB = /usr/local/lib
  641. #DESTINC = /usr/local/include
  642. #PS = ps -p
  643. #IOT = IOT
  644.  
  645. #Esix SVR4.0.4 with gcc
  646. # also works for Dell 2.2 and other i386 SVR4.0. Probably Unixware 1.1 as well.
  647. #Be careful with installation - note in particular that the system ships
  648. #with /usr/sbin/in.named (with in.) and /usr/sbin/named-xfer (without in.)
  649. #to emulate this naming, INDOT should be set to in. and XFER_INDOT should be
  650. #set to empty. also, use 'make install' at your own risk.
  651. #don't include sys/stream.h via netinet/in.h by defining _SYS_STREAM_H.
  652. #CC = gcc $(CPPFLAGS)
  653. #CPPFLAGS = -DSVR4 -DBSD_COMP -DUSE_POSIX -D_SYS_STREAM_H
  654. #CDEBUG = -O
  655. #LEX = lex
  656. #INDOT = in.
  657. #XFER_INDOT =
  658. #PIDDIR = /etc
  659. #INSTALL = /usr/ucb/install
  660. #LIBS = -ll -lsocket -lnsl
  661. #DESTSBIN = /usr/sbin
  662. #DESTEXEC = /usr/sbin
  663. #LDS = @:
  664. #RANLIB = @:
  665. #ARPREF = `lorder
  666. #ARSUFF = | tsort`
  667. #CATEXT = $$$$N
  668. #PS = ps -p
  669. #IOT = IOT
  670.  
  671. #(ISC4.0 using GCC)
  672. #CC = gcc $(CPPFLAGS) -posix
  673. #CPPFLAGS = -DISC
  674. #CDEBUG = -g
  675. #LEX = flex -I
  676. #LIBS = -lbsd
  677. #PIDDIR = /etc
  678. #DESTBIN = /usr/bin
  679. #DESTSBIN = /etc
  680. #DESTEXEC = /etc
  681. #DESTHELP = /etc
  682. #DESTMAN = /usr/catman/l_man
  683. #CATEXT = $$$$N
  684. #RANLIB = @:
  685. #LDS = @:
  686. #PS = ps -p
  687. #ARPREF = `lorder
  688. #ARSUFF = | tsort`
  689. #IOT = IOT
  690.  
  691. # AUX 3.x (I used 3.1.1)
  692. #CC = gcc $(CPPFLAGS)
  693. #CDEBUG = -O2
  694. #CPPFLAGS = -D_POSIX_SOURCE -DSYSV
  695. #LEX = lex
  696. #LIBS = -ll -lposix -lmalloc -s
  697. #PIDDIR = /etc
  698. #DESTBIN = /etc
  699. #DESTSBIN = /etc
  700. #DESTEXEC = /etc
  701. #DESTMAN = /usr/local/man
  702. #DESTHELP = /etc
  703. #COMPINCL = compat/include
  704. #CATEXT = $$$$N
  705. #INSTALL_COMPAT = install-compat
  706. #INSTALL = install
  707. #RANLIB = @:
  708. #PS = ps -p
  709. #IOT = IOT
  710.  
  711. #NCR System V/MLS  
  712. #use same definitions as for sunos4.x except for the following
  713. #be careful with installation - note in particular that the system ships
  714. #with /usr/sbin/in.named (with in.) and /usr/sbin/named-xfer (without in.)
  715. #to emulate this naming, INDOT should be set to 'in.' while XFER_INDOT 
  716. #should be empty. also, under solaris2.x, use 'make install' at your own risk.
  717. #don't include sys/stream.h via netinet/in.h by defining _SYS_STREAM_H.
  718. #PIDDIR = /usr/local/lib
  719. #LEX = lex
  720. #CC = cc $(CPPFLAGS)
  721. #CDEBUG = -g
  722. #CPPFLAGS = -DSVR4 -D_SYS_STREAM_H -Hnocopyr -DPOSIX_SIGNALS -DNCR -w
  723. #INDOT = in.
  724. #XFER_INDOT =
  725. #LIBS = -ll -lnsl -lsocket
  726. #DESTEXEC = /usr/local/bin
  727. #LDS = :
  728. #RANLIB = :
  729. #ARPREF = `lorder
  730. #ARSUFF = | tsort`
  731. #CATEXT = $$$$N
  732. #PS = ps -p
  733. #IOT = IOT
  734.  
  735. #NCR System Vr4.3 3.x
  736. #also, use 'make install' at your own risk.
  737. #PIDDIR = /etc/inet
  738. #LEX = lex
  739. #CC = cc $(CPPFLAGS)
  740. #CDEBUG = -g
  741. #CPPFLAGS = -DSVR4 -Hnocopyr -DPOSIX_SIGNALS -DNO_SA_LEN -DNCR -w
  742. #INDOT = in.
  743. #XFER_INDOT = in.
  744. #LIBS = -ll -lnsl -lsocket
  745. #DESTEXEC = /usr/sbin
  746. #LDS = :
  747. #RANLIB = :
  748. #ARPREF = `lorder
  749. #ARSUFF = | tsort`
  750. #CATEXT = $$$$N
  751. #PS = ps -p
  752. #IOT = IOT
  753.  
  754. #NCR System Vr4.3-3.0
  755. #also, use 'make install' at your own risk.
  756. #PIDDIR = /etc/inet
  757. #LEX = lex
  758. #CC = cc $(CPPFLAGS)
  759. #CDEBUG = -g
  760. #CPPFLAGS = -DSVR4 -Hnocopyr -DPOSIX_SIGNALS -DNO_SA_LEN -DNCR -w
  761. #INDOT = in.
  762. #XFER_INDOT = in.
  763. #LIBS = -ll -lnsl -lsocket
  764. #DESTEXEC = /usr/sbin
  765. #LDS = :
  766. #RANLIB = :
  767. #ARPREF = `lorder
  768. #ARSUFF = | tsort`
  769. #CATEXT = $$$$N
  770. #PS = ps -p
  771. #IOT = IOT
  772. #SHCC = cc $(CPPPFLAGS)
  773. #PIC = -Kpic
  774. #SHLD = cc -G
  775. #SHRES = shres/ncr
  776.  
  777. #NCR System Vr4.3-2.03
  778. #also, use 'make install' at your own risk.
  779. #PIDDIR = /etc
  780. #LEX = lex
  781. #CC = cc $(CPPFLAGS)
  782. #CDEBUG = -g
  783. #CPPFLAGS = -DSVR4 -Hnocopyr -DPOSIX_SIGNALS -DNO_SA_LEN -DNCR -w
  784. #INDOT =
  785. #XFER_INDOT =
  786. #LIBS = -ll -lnsl -lsocket
  787. #DESTSBIN = /usr/etc
  788. #DESTEXEC = /usr/etc
  789. #LDS = :
  790. #RANLIB = :
  791. #ARPREF = `lorder
  792. #ARSUFF = | tsort`
  793. #CATEXT = $$$$N
  794. #PS = ps -p
  795. #IOT = IOT
  796. #SHCC = cc $(CPPPFLAGS)
  797. #PIC = -Kpic
  798. #SHLD = cc -G
  799. #SHRES = shres/ncr
  800.  
  801. #(UXP/DS)
  802. #PIDDIR = /etc
  803. #LEX = lex
  804. #CC = cc $(CPPFLAGS)
  805. #CDEBUG = -O
  806. #CPPFLAGS = -DSVR4 -D_SYS_STREAM_H -DUSE_POSIX
  807. #INDOT = in.
  808. #XFER_INDOT =
  809. #LIBS = -ll -lnsl -lsocket
  810. #LDS = :
  811. #COMPINCL = compat/include
  812. #AR = ar -cru
  813. ## for V10L20
  814. #INSTALL = /usr/ucb/install -g sys
  815. ## for V20L10
  816. #INSTALL = /usr/ucb/install
  817. #RANLIB = :
  818. #ARPREF = `lorder
  819. #ARSUFF = | tsort`
  820. #CATEXT = $$$$N
  821. #PS = ps -p
  822. #IOT = IOT
  823. #PIC = -Kpic
  824. #MANROFF = ( tbl | nroff -man )
  825. #MANDIR = man
  826.  
  827. ####################################################################
  828. ############ no user servicable parts beyond this point ############
  829. ####################################################################
  830.  
  831. MANARGS = \
  832.     "SHELL=${SHELL}" "INDOT=${INDOT}" "XFER_INDOT=${XFER_INDOT}" \
  833.     "DESTDIR=${DESTDIR}" "DESTMAN=${DESTMAN}" "INSTALL=${INSTALL}" \
  834.     CATEXT='${CATEXT}' MANDIR='${MANDIR}' MANROFF='${MANROFF}'
  835.  
  836. MARGS =    "VER=${VER}" "CC=${CC}" "CDEBUG=${CDEBUG}" "LIBS=${LIBS}" \
  837.     "INCL=../${INCL}" "RES=../${RES}" "LEX=${LEX}" "LDFLAGS=${LDFLAGS}" \
  838.     "PIDDIR=${PIDDIR}" "DESTBIN=${DESTBIN}" "DESTSBIN=${DESTSBIN}" \
  839.     "DESTEXEC=${DESTEXEC}" "COMPINCL=../${COMPINCL}" \
  840.     "COMPLIB=../${COMPLIB}" "DESTLIB=${DESTLIB}" "DESTINC=${DESTINC}" \
  841.     "DESTHELP=${DESTHELP}" "PIC=${PIC}" "SHCC=${SHCC}" "SHLD=${SHLD}" \
  842.     "AR=${AR}" "RANLIB=${RANLIB}" "LDS=${LDS}" 'ARPREF=${ARPREF}' \
  843.     'ARSUFF=${ARSUFF}' $(MANARGS) PS="${PS}" "IOT=${IOT}" \
  844.     "CPPFLAGS=${CPPFLAGS}" "KSYMS=${KSYMS}" "KMEM=${KMEM}" \
  845.     "UDPSUM=${UDPSUM}" "SHVER=${SHVER}" "SHMAJVER=${SHMAJVER}"
  846.  
  847. MACHINE = native
  848. DST = $(MACHINE).b
  849. SRC = ..
  850.  
  851. SUBDIRS = res $(SHRES) include compat named tools man
  852.  
  853. all:: FRC
  854.  
  855. all clean depend:: FRC
  856.     @for x in $(SUBDIRS); do \
  857.         (cd $$x; pwd; $(MAKE) $(MARGS) $@); \
  858.     done
  859.  
  860. $(SUBDIRS):: FRC
  861.     @for x in $@; do \
  862.         (cd $$x; pwd; $(MAKE) $(MARGS) all); \
  863.     done
  864.  
  865. clean:: FRC
  866.     -test -d doc/bog && (cd doc/bog; pwd; $(MAKE) $(MARGS) $@)
  867.     (cd conf; rm -f *~ *.CKP *.BAK *.orig)
  868.     rm -f *~ *.CKP *.BAK *.orig
  869.  
  870. depend:: FRC
  871.  
  872. mkdirs: FRC
  873.     -set +e; for x in $(DESTDIR)$(DESTBIN) $(DESTDIR)$(DESTSBIN) \
  874.           $(DESTDIR)$(DESTEXEC) $(DESTDIR)$(DESTMAN) \
  875.           $(DESTDIR)$(DESTHELP) $(DESTDIR)$(DESTLIB) \
  876.           $(DESTDIR)$(DESTINC); do \
  877.         test -d $$x || mkdir -p $$x; \
  878.     done
  879.  
  880. install: FRC
  881.     @for x in $(SUBDIRS); do \
  882.         y=`if [ "X$$x" = "Xcompat" ]; \
  883.             then echo ${INSTALL_COMPAT}; \
  884.             else echo install; \
  885.            fi`; \
  886.         (cd $$x; pwd; $(MAKE) $(MARGS) $$y); \
  887.     done
  888.  
  889. D = OPTIONS master bin doc named CHANGES README compat include res \
  890.     Makefile TODO conf man tools 
  891.  
  892. copyright: FRC
  893.     bin/copyright <conf/copyright `find ${D} -type f ! -name '*,v' -print`
  894.  
  895. tar: FRC
  896.     ( cd doc/bog; make file.psf file.lst )
  897.     find * '(' -name RCS -o -name obj -o -name .depend ')' \
  898.         -print >/tmp/bindXf
  899.     gnutar -c -z -f ../bind-${VER}.tar.gz           -X /tmp/bindXf .
  900.     rm -f /tmp/bindXf
  901.  
  902. links: $(DST)
  903.  
  904. $(DST): FRC
  905.     @set -ex; mkdir $(DST); cd $(DST); \
  906.     ln -s $(SRC) SRC; \
  907.     cp SRC/Makefile .; chmod +w Makefile; \
  908.     ( mkdir include; cd include; ln -s ../SRC/include SRC; \
  909.       cp SRC/Makefile .; chmod +w Makefile; \
  910.       ln -s SRC/*.h SRC/arpa .; \
  911.     ); \
  912.     ( mkdir conf; cd conf; ln -s ../SRC/conf SRC; \
  913.       ln -s SRC/*.h .; \
  914.     ); \
  915.     ( mkdir tools; cd tools; ln -s ../SRC/tools SRC; \
  916.       ln -s SRC/*.[ch] .; \
  917.       cp SRC/Makefile .; chmod +w Makefile; \
  918.       ( mkdir nslookup; cd nslookup; ln -s ../SRC/nslookup SRC; \
  919.         cp SRC/Makefile .; chmod +w Makefile; \
  920.         ln -s SRC/[a-z]* .; \
  921.       ); \
  922.     ); \
  923.     ( mkdir res; cd res; ln -s ../SRC/res SRC; \
  924.       cp SRC/Makefile .; chmod +w Makefile; \
  925.       ln -s SRC/*.[ch] .; \
  926.     ); \
  927.     ( mkdir compat; cd compat; ln -s ../SRC/compat SRC; \
  928.       cp SRC/Makefile .; chmod +w Makefile; \
  929.       ln -s SRC/include .; \
  930.       ( mkdir lib; cd lib; ln -s ../SRC/lib SRC; \
  931.         cp SRC/Makefile .; chmod +w Makefile; \
  932.         ln -s SRC/*.c .; \
  933.       ); \
  934.     ); \
  935.     ( mkdir named; cd named; ln -s ../SRC/named SRC; \
  936.       cp SRC/Makefile .; chmod +w Makefile; \
  937.       ln -s SRC/*.[ch] SRC/*.sh .; \
  938.     ); \
  939.     ( mkdir shres; cd shres; ln -s ../SRC/shres SRC; \
  940.       ( mkdir sunos; cd sunos; ln -s ../../SRC/shres/sunos SRC; \
  941.         cp SRC/Makefile .; chmod +w Makefile; \
  942.         ln -s SRC/makeshlib SRC/*.patch* .; \
  943.       ); \
  944.       ( mkdir netbsd; cd netbsd; ln -s ../../SRC/shres/netbsd SRC; \
  945.         cp SRC/Makefile .; chmod +w Makefile; \
  946.         ln -s SRC/makeshlib SRC/lorder-sparc.sed SRC/shlibname.awk .; \
  947.       ); \
  948.       ( mkdir solaris; cd solaris; ln -s ../../SRC/shres/solaris SRC; \
  949.         cp SRC/Makefile .; chmod +w Makefile; \
  950.       ); \
  951.       ( mkdir irix; cd irix; ln -s ../../SRC/shres/irix SRC; \
  952.         cp SRC/Makefile .; chmod +w Makefile; \
  953.       ); \
  954.       ( mkdir linux; cd linux; ln -s ../../SRC/shres/linux SRC; \
  955.         cp SRC/Makefile .; chmod +w Makefile; \
  956.       ); \
  957.     ); \
  958.     ( mkdir man; cd man; ln -s ../SRC/man SRC; \
  959.       cp SRC/Makefile .; chmod +w Makefile; \
  960.       ln -s SRC/*.[0-9] .; \
  961.     )
  962.  
  963. gcc2-lint: FRC
  964.     @-make CC="gcc2 -Wall -Wno-comment -Wno-parentheses -Dlint" all \
  965.         2>&1 | grep '\.[ch]:[0-9]'
  966.  
  967. FRC:
  968.