home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Networking / bind-8.1.1 / nextstep / Makefile < prev    next >
Encoding:
Makefile  |  1997-10-25  |  2.4 KB  |  100 lines

  1. # Copyright (c) 1996 by Internet Software Consortium
  2. #
  3. # Permission to use, copy, modify, and distribute this software
  4. for any
  5. # purpose with or without fee is hereby granted, provided that the
  6. above
  7. # copyright notice and this permission notice appear in all copies.
  8. #
  9. # THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE
  10. CONSORTIUM DISCLAIMS
  11. # ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
  12. IMPLIED WARRANTIES
  13. # OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
  14. # CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
  15. CONSEQUENTIAL
  16. # DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  17. DATA OR
  18. # PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  19. TORTIOUS
  20. # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  21. PERFORMANCE OF THIS
  22. # SOFTWARE.
  23.  
  24. # $Id: Makefile,v 1.9 1997/03/10 16:45:47 vixie Exp $
  25.  
  26. # these are only appropriate for BSD 4.4 or derivatives, and are
  27. used in
  28. # development.  normal builds will be done in the top level
  29. directory and
  30. # this Makefile will be invoked with a lot of overrides for the
  31. following:
  32. SYSTYPE= nextstep
  33. DESTDIR =
  34. DESTLIB = /usr/local/lib
  35. O=o
  36. A=a
  37. CC= cc -posix
  38. LD= ld
  39. SHELL= /bin/sh
  40. CDEBUG= -g
  41. TOP= ../..
  42. INCL = ${TOP}/include
  43. PORTINCL = ${TOP}/port/${SYSTYPE}/include
  44. LIBBIND = ${TOP}/lib/libbind.${A}
  45. LIBPORT = ${TOP}/port/libport.${A}
  46. CFLAGS=    ${CDEBUG} -I${PORTINCL} -I${INCL}
  47. LD_LIBFLAGS= -x -r
  48. AR= ar cruv
  49. RANLIB= ranlib
  50. INSTALL= install
  51.  
  52. SUBDIRS= include
  53.  
  54. SRCS=    noop.c
  55.  
  56. OBJS=    noop.${O}
  57.  
  58. MARGS= DESTDIR="${DESTDIR}" DESTINC="${DESTINC}" INSTALL="${INSTALL}"
  59.  
  60. all depend clean distclean install::
  61.     @for x in ${SUBDIRS}; do \
  62.         (cd $$x; pwd; ${MAKE} ${MARGS} $@); \
  63.     done
  64.  
  65. all:: ${LIBPORT}
  66.  
  67. ${LIBPORT}: ${OBJS}
  68.     ${AR} ${LIBPORT} ${ARPREF} ${OBJS} ${ARSUFF}
  69.     ${RANLIB} ${LIBPORT}
  70.  
  71. .c.${O}:
  72.     ${CC} ${CPPFLAGS} ${CFLAGS} -c $*.c
  73.     -${LDS} ${LD} ${LD_LIBFLAGS} $*.${O}
  74.     ${LDS} mv a.out $*.${O}
  75.  
  76. distclean:: clean
  77.  
  78. clean:: FRC
  79.     rm -f .depend a.out core ${LIBPORT} tags
  80.     rm -f *.${O} *.BAK *.CKP *~
  81.  
  82. depend:: FRC
  83.     mkdep -I${INCL} -I${PORTINCL} ${CPPFLAGS} ${SRCS}
  84.  
  85. links: FRC
  86.     @set -e; ln -s SRC/*.[ch] SRC/bin SRC/Makefile.set SRC/probe \
  87.         SRC/maybe_fix_includes .
  88.     @set -e; for x in ${SUBDIRS}; do \
  89.         ( mkdir $$x; cd $$x; pwd; ln -s ../SRC/$$x SRC; \
  90.         cp SRC/Makefile Makefile; chmod +w Makefile; \
  91.         ${MAKE} ${MARGS} links ); \
  92.     done
  93.  
  94. install:: FRC
  95.  
  96. FRC:
  97.  
  98. # DO NOT DELETE THIS LINE -- mkdep uses it.
  99. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  100.