home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / ISP / bind.4.8.3.lzh / BIND483 / TOOLS / makefile.org < prev    next >
Makefile  |  1994-09-22  |  2KB  |  63 lines

  1. #
  2. # Copyright (c) 1987 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley.  The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. #    @(#)Makefile    4.9 (Berkeley) 10/10/88
  18. #
  19. CFLAGS=    -O
  20. RES=
  21. LIBC=    /lib/libc.a
  22. SRCS=    nsquery.c nstest.c
  23. OBJS=
  24.  
  25. all: nsquery nstest nslookup
  26.  
  27. nsquery: ${LIBC}
  28.     ${CC} ${CFLAGS} -o $@ nsquery.c ${RES}
  29.  
  30. # test programs and utilities
  31. nstest: ${LIBC}
  32.     @echo "The resolver routines in libc must be compiled with the -DDEBUG"
  33.     @echo "option or nstest will not have any output."
  34.     ${CC} ${CFLAGS} -o $@ nstest.c ${RES}
  35.  
  36. nslookup: FRC
  37.     cd nslookup; make ${MFLAGS} RES=${RES}
  38.  
  39. clean: FRC
  40.     cd nslookup; make ${MFLAGS} clean
  41.     rm -f ${OBJS} core nsquery nstest
  42.  
  43. cleandir: clean
  44.     cd nslookup; make ${MFLAGS} cleandir
  45.     rm -f ${MAN} tags .depend
  46.  
  47. depend: ${SRCS}
  48.     cd nslookup; make ${MFLAGS} depend
  49.     mkdep -p ${CFLAGS} ${SRCS}
  50.  
  51. install: ${MAN}
  52.     cd nslookup; make ${MFLAGS} DESTDIR=${DESTDIR} install
  53.  
  54. lint: ${SRCS}
  55.     cd nslookup; make ${MFLAGS} lint
  56.     lint ${CFLAGS} ${SRCS}
  57.  
  58. tags: ${SRCS}
  59.     cd nslookup; make ${MFLAGS} tags
  60.     ctags ${SRCS}
  61.  
  62. FRC:
  63.