home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / bind / bind-4.001 / bind-4~ / bind-4.9.3-BETA9 / Makefile < prev    next >
Makefile  |  1994-07-23  |  12KB  |  443 lines

  1. # Makefile for BIND>=4.9 top level
  2. # vixie@decwrl December, 1992 [original]
  3. #
  4. # $Id: Makefile,v 4.9.1.39 1994/07/24 00:59:36 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.3-BETA9
  60. SHELL = /bin/sh
  61. MAKE = make
  62. DESTDIR =
  63.  
  64. LDFLAGS =
  65. CDEBUG = -g
  66. INCL = include
  67. RES = res/libresolv.a
  68. COMPLIB = compat/lib/lib44bsd.a
  69.  
  70. # The default build parameters are given for 4.4 BSD.  They should
  71. # be overridden for other operating systems as indicated below.
  72.  
  73. #(BSD4.4, BSD/386, other net2-alikes)
  74. #
  75. # DO NOT COMMENT THESE OUT.  OVERRIDE THEM BELOW.
  76. #
  77. CC = cc
  78. INDOT =
  79. LEX = lex -I
  80. LIBS = -ll -lutil
  81. PIDDIR = /var/run
  82. DESTBIN = /usr/bin
  83. DESTSBIN = /usr/sbin
  84. DESTEXEC = /usr/libexec
  85. DESTMAN = /usr/share/man
  86. DESTHELP = /usr/share/misc
  87. DESTLIB = /usr/lib
  88. DESTINC = /usr/include
  89. COMPINCL = compat/include
  90. LDS = 
  91. CATEXT = 0
  92. INSTALL_COMPAT = install
  93. INSTALL = install
  94. RANLIB = ranlib
  95.  
  96. #(Linux)
  97. #CC = gcc -DSYSV
  98. #LIBS = -lfl
  99. #PIDDIR = /etc
  100. #DESTEXEC = /usr/sbin
  101. #DESTMAN = /usr/man
  102. #DESTHELP = /usr/lib
  103. #CATEXT = $$$$N
  104.  
  105. #(CRAY)
  106. #LEX=lex
  107.  
  108. #(DEC AXP OSF/1)
  109. #LEX = lex
  110. #LIBS = -ll -lutil
  111. #DESTEXEC = /usr/sbin
  112. #COMPINCL = compat/include
  113. #INSTALL_COMPAT = install-compat
  114. #INSTALL = installbsd
  115.  
  116. #(irix4)
  117. #CC = cc -xansi -signed -D__STDC__ -D_BSD_SIGNALS -DSIG_FN=int
  118. #LEX = lex
  119. #LIBS = -ll 
  120. #DESTSBIN = /usr/etc
  121. #DESTEXEC = /usr/etc
  122. #DESTMAN = /usr/catman/local
  123. #DESTHELP = /usr/lib
  124. #INSTALL = bsdinstall.sh
  125. #RANLIB = :
  126. #(bsdinstall.sh is in conf/)
  127.  
  128. #(irix5)
  129. #CC = cc -xansi -signed -D__STDC__ \
  130. #    -D_BSD_SIGNALS -DSIG_FN=void -D__BIT_TYPES_DEFINED__
  131. #LEX = lex
  132. #LIBS = -ll 
  133. #DESTSBIN = /usr/etc
  134. #DESTEXEC = /usr/etc
  135. #DESTMAN = /usr/share/catman/local
  136. #DESTHELP = /usr/lib
  137. #INSTALL = bsdinstall.sh
  138. #RANLIB = :
  139. #(bsdinstall.sh is in conf/)
  140.  
  141. #(sunos4.x - also see below)
  142. #CC = cc -DSUNOS4
  143. #INDOT = in.
  144. #LEX = lex
  145. #LIBS = -ll
  146. # for details on shared library building, see shres/INSTALL
  147. #uncomment next line to build a shared library version of libresolv
  148. #SHRES = shres
  149. # uncomment only one of the pairs of lines below
  150. # -- if you use gcc (recommended)
  151. #SHCC = gcc -DSUNOS4
  152. #PIC= -fpic -D_res=_res_shlib
  153. # -- if you use Sun's cc
  154. #SHCC = cc -DSUNOS4
  155. #PIC = -pic -D_res=_res_shlib
  156.  
  157. #(ULTRIX/RISC - also see below)
  158. #CC = cc -Olimit 600
  159.  
  160. #(ULTRIX, sunos4.x, other 4.[23]bsd-alikes)
  161. #LEX = lex
  162. #LIBS = -ll
  163. #PIDDIR = /etc
  164. #DESTSBIN = /usr/etc
  165. #DESTEXEC = /usr/etc
  166. #DESTMAN = /usr/man
  167. #DESTHELP = /usr/lib
  168. #COMPINCL = compat/include
  169. #CATEXT = $$$$N
  170. #INSTALL_COMPAT = install-compat
  171. #INSTALL = install
  172.  
  173. #(solaris2.c/sunos5.x)
  174. #use same definitions as for sunos4.x except for the following
  175. #be careful with installation - note in particular that the system ships
  176. #with /usr/sbin/in.named (with in.) and /usr/sbin/named-xfer (without in.)
  177. #to emulate this naming, INDOT should be empty but named should be installed
  178. #as in.named.  also, under solaris2.x, use 'make install' at your own risk.
  179. #LEX = lex
  180. #CC = cc -DSYSV -DSVR4
  181. #INDOT =
  182. #LIBS = -ll -lnsl -lsocket
  183. #DESTEXEC = /usr/sbin
  184. #LDS = :
  185. #RANLIB = :
  186. #ARPREF = `lorder
  187. #ARSUFF = | tsort`
  188.  
  189. #(hpux9.0 or 7.0; for 7.0, also see below)
  190. #CC = cc -DSYSV
  191. #LEX = lex
  192. #LIBS = -ll
  193. #DESTSBIN = /etc
  194. #DESTEXEC = /etc
  195. #DESTHELP = /usr/lib
  196. #PIDDIR = /etc
  197.  
  198. #(hpux7.0)
  199. #DESTMAN = /usr/man
  200.  
  201. #(apollo domainos)
  202. #CC = cc -U_APOLLO_SOURCE -D_BSD_SOURCE
  203. #LIBS = -ll 
  204. #DESTSBIN = /etc
  205. #DESTEXEC = /etc
  206. #DESTHELP = /usr/lib
  207. #DESTMAN = /usr/man
  208. #PIDDIR = /etc
  209. #LEX = lex
  210.  
  211. #(stupid AIX3)
  212. #CC = bsdcc -DBSD=43
  213. #LIBS = -ll
  214. #DESTEXEC = /usr/sbin
  215. #INSTALL = /usr/ucb/install
  216. #LEX = lex
  217.  
  218. # (ConvexOS-10.x)
  219. #CC    = gcc -g -O2 -fpcc-struct-return -fno-builtin -funsigned-char
  220. #INDOT    =
  221. #LEX    = flex -8 -I
  222. #LIBS    = -lfl 
  223. #PIDDIR = /usr/local/etc
  224. #DESTBIN = /usr/local/bin
  225. #DESTSBIN = /usr/local/bin
  226. #DESTEXEC = /usr/local/etc
  227. #DESTMAN = /usr/local/man
  228. #DESTHELP = /usr/local/etc
  229. #COMPINCL = compat/include
  230. #LDS = 
  231. #INSTALL_COMPAT = install
  232. #INSTALL = install
  233. #RANLIB = ranlib
  234.  
  235. #(NEC EWS4800 EWS-UX/V Rel4.0/Rel4.2)
  236. #be careful with installation - note in particular that the system ships
  237. #with /usr/sbin/in.named (with in.) and /usr/sbin/named-xfer (without in.)
  238. #to emulate this naming, INDOT should be empty but named should be installed
  239. #as in.named.  also, under EWS4800, use 'make install' at your own risk.
  240. #CC = cc -DSYSV -DSVR4 -DUSE_POSIX
  241. #INDOT =
  242. #LEX = lex
  243. #LIBS = -ll -lnsl -lsocket
  244. #DESTSBIN = /etc
  245. #DESTEXEC = /etc
  246. #DESTHELP = /usr/local/lib
  247. #DESTMAN = /usr/local/man
  248. #PIDDIR = /etc
  249. #LDS = :
  250. #RANLIB = :
  251. #COMPINCL = compat/include
  252. #CATEXT = $$$$N
  253. #INSTALL_COMPAT = install-compat
  254. #INSTALL = /usr/ucb/install
  255.  
  256. # SCO Unix 3.4.2 / ODT 3.0 using gcc (the only choice for now)
  257. #CC = gcc -DSYSV -DSYSV3 
  258. #CDEBUG=-O6
  259. #LDFLAGS=-s
  260. #INDOT=
  261. #LEX=lex
  262. #LIBS=-ll -lnsl_s -lsocket -lc_s
  263. #DESTBIN=/usr/bin
  264. #DESTSBIN = /etc
  265. #DESTEXEC=/etc
  266. #DESTHELP=/usr/lib
  267. #DESTMAN=/usr/local/man
  268. #PIDDIR = /etc
  269. #LDS=:
  270. #RANLIB=:
  271. #COMPINCL=compat/include
  272. #CATEXT = $$$$N
  273. #INSTALL_COMPAT = install-compat
  274. #INSTALL = scoinst
  275. #MANROFF= (tbl | groff -man -Tascii)
  276.  
  277. #(NeXTstep 2.1 and 3.0)
  278. # Also, you will want the c-news libfake/putenv.c, minus the libc.h include.
  279. #CC = cc -Dpid_t=int
  280. #LIBS = -ll
  281. #LEX = lex
  282.  
  283. #(Pyramid dcosx)
  284. #CC = cc -DSYSV -DSVR4 -DPOSIX_SIGNALS
  285. #LEX = lex
  286. #LIBS = -ll -lnsl -lsocket
  287. #RANLIB = :
  288.  
  289. #(Sequent Dynix/PTX)
  290. #CC = cc -Wc,-pw -Du_int="unsigned int" -DSYSV
  291. #RANLIB = :
  292. #LIBS = -ll -lsocket -linet -lnsl -lseq
  293. #PIDDIR = /etc
  294. #DESTSBIN = /usr/local/etc
  295. #DESTEXEC = /usr/local/etc
  296. #DESTHELP = /usr/local/lib
  297. #LEX = lex
  298.  
  299. #(dgux)
  300. #LEX = lex
  301. #RANLIB =
  302. #CC = gcc -D__STDC__ -DDGUX
  303. #LIBS = -ll
  304. #DESTBIN = /usr/bin
  305. #DESTSBIN = /usr/bin
  306. #DESTEXEC = /usr/bin
  307. #DESTMAN = /usr/local/man
  308. #DESTHELP = /usr/lib
  309. #DESTLIB = /usr/lib
  310. #DESTINC = /usr/include
  311. #PIDDIR = /etc
  312.  
  313. #(epix) Has to be compiled and loaded with -systype bsd43
  314. # Epix 2.x.x requires /bsd43/bin in front of the PATH variable
  315. #CC = cc -signed -systype bsd43 -DSTDIN_FILENO=0
  316. #LEX = lex
  317. #LIBS = -ll
  318. #DESTSBIN = /etc/local
  319. #DESTEXEC = /etc/local
  320. #DESTMAN = /usr/local/man
  321. #DESTHELP = /usr/lib
  322. #INSTALL = install.sh
  323. #RANLIB = :
  324.  
  325. #Mips RISC/os 4.52
  326. #CC = cc -systype bsd43 -Dpid_t=int
  327. #CDEBUG = -O -g3 -Olimit 1000
  328. #LEX = lex
  329. #LIBS = -ll
  330. #PIDDIR = /etc
  331. #DESTBIN = /usr/local/bin
  332. #DESTSBIN = /usr/etc
  333. #DESTEXEC = /usr/etc
  334. #DESTMAN = /usr/local/man
  335. #DESTHELP = /usr/local/lib
  336. #DESTLIB = /usr/local/lib
  337. #DESTINC = /usr/local/include
  338.  
  339. ####################################################################
  340. ############ no user servicable parts beyond this point ############
  341. ####################################################################
  342.  
  343. MARGS =    "VER=${VER}" "CC=${CC}" "CDEBUG=${CDEBUG}" "LIBS=${LIBS}" \
  344.     "INCL=../${INCL}" "RES=../${RES}" "INDOT=${INDOT}" \
  345.     "LEX=${LEX}" "SHELL=${SHELL}" "LDFLAGS=${LDFLAGS}" \
  346.     "DESTDIR=${DESTDIR}" "PIDDIR=${PIDDIR}" "DESTMAN=${DESTMAN}" \
  347.     "DESTBIN=${DESTBIN}" "DESTSBIN=${DESTSBIN}" "DESTEXEC=${DESTEXEC}" \
  348.     "COMPINCL=../${COMPINCL}" "COMPLIB=../${COMPLIB}" \
  349.     "DESTLIB=${DESTLIB}" "DESTINC=${DESTINC}" "INSTALL=${INSTALL}" \
  350.     "DESTHELP=${DESTHELP}" "PIC=${PIC}" "SHCC=${SHCC}" \
  351.     "RANLIB=${RANLIB}" "LDS=${LDS}" 'ARPREF=${ARPREF}' 'ARSUFF=${ARSUFF}' \
  352.     CATEXT='${CATEXT}'
  353.  
  354. MACHINE = native
  355. DST = $(MACHINE).b
  356. SRC = ..
  357.  
  358. SUBDIRS = res include compat named tools man $(SHRES)
  359.  
  360. all clean depend:: FRC
  361.     @for x in $(SUBDIRS); do \
  362.         (cd $$x; pwd; $(MAKE) $(MARGS) $@); \
  363.     done
  364.  
  365. clean:: FRC
  366.     -test -d doc/bog && (cd doc/bog; pwd; $(MAKE) $(MARGS) $@)
  367.     (cd conf; rm -f *~ *.CKP *.BAK *.orig)
  368.     rm -f *~ *.CKP *.BAK *.orig
  369.  
  370. all:: FRC
  371.  
  372. depend:: FRC
  373.  
  374. install: FRC
  375.     @for x in $(SUBDIRS); do \
  376.         y=`if [ "X$$x" = "Xcompat" ]; \
  377.             then echo ${INSTALL_COMPAT}; \
  378.             else echo install; \
  379.            fi`; \
  380.         (cd $$x; pwd; $(MAKE) $(MARGS) $$y); \
  381.     done
  382.  
  383. D = OPTIONS master bin doc named CHANGES README compat include res \
  384.     Makefile TODO conf man tools 
  385.  
  386. copyright: FRC
  387.     bin/copyright <conf/copyright `find ${D} -type f ! -name '*,v' -print`
  388.  
  389. tar: FRC
  390.     ( cd doc/bog; make file.psf file.lst )
  391.     find * -name RCS -print >/tmp/bindXf
  392. #    gnutar -c -z -f ../bind-${VER}.`date +%y%m%d`.tar.gz -X /tmp/bindXf .
  393.     gnutar -c -z -f ../bind-${VER}.tar.gz           -X /tmp/bindXf .
  394.     rm -f /tmp/bindXf
  395.  
  396. links: $(DST)
  397.  
  398. $(DST): FRC
  399.     @set -ex; mkdir $(DST); cd $(DST); \
  400.     ln -s $(SRC) SRC; \
  401.      cp SRC/Makefile .; chmod +w Makefile; \
  402.     ( mkdir include; cd include; ln -s ../SRC/include SRC; \
  403.       cp SRC/Makefile .; chmod +w Makefile; \
  404.       ln -s SRC/*.h SRC/arpa .; \
  405.     ); \
  406.     ( mkdir conf; cd conf; ln -s ../SRC/conf SRC; \
  407.       ln -s SRC/*.h .; \
  408.     ); \
  409.     ( mkdir tools; cd tools; ln -s ../SRC/tools SRC; \
  410.       ln -s SRC/*.[ch] .; \
  411.       cp SRC/Makefile .; chmod +w Makefile; \
  412.       ( mkdir nslookup; cd nslookup; ln -s ../SRC/nslookup SRC; \
  413.         cp SRC/Makefile .; chmod +w Makefile; \
  414.         ln -s SRC/[a-z]* .; \
  415.       ); \
  416.     ); \
  417.     ( mkdir res; cd res; ln -s ../SRC/res SRC; \
  418.       cp SRC/Makefile .; chmod +w Makefile; \
  419.       ln -s SRC/*.[ch] .; \
  420.     ); \
  421.     ( mkdir compat; cd compat; ln -s ../SRC/compat SRC; \
  422.       cp SRC/Makefile .; chmod +w Makefile; \
  423.       ln -s SRC/include .; \
  424.       ( mkdir lib; cd lib; ln -s ../SRC/lib SRC; \
  425.         cp SRC/Makefile .; chmod +w Makefile; \
  426.         ln -s SRC/*.c .; \
  427.       ); \
  428.     ); \
  429.     ( mkdir named; cd named; ln -s ../SRC/named SRC; \
  430.       cp SRC/Makefile .; chmod +w Makefile; \
  431.       ln -s SRC/*.[ch] SRC/*.sh .; \
  432.     ); \
  433.     ( mkdir shres; cd shres; ln -s ../SRC/shres SRC; \
  434.       cp SRC/Makefile .; chmod +w Makefile; \
  435.       ln -s SRC/makeshlib SRC/*.patches .; \
  436.     ); \
  437.     ( mkdir man; cd man; ln -s ../SRC/man SRC; \
  438.       cp SRC/Makefile .; chmod +w Makefile; \
  439.       ln -s SRC/*.[0-9] .; \
  440.     )
  441.  
  442. FRC:
  443.