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 / RES / NAMED / Makefile < prev    next >
Makefile  |  1993-08-24  |  2KB  |  68 lines

  1. #
  2. # Copyright (c) 1988 The 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    6.4 (Berkeley) 6/6/87
  18. #
  19.  
  20. OBJS=    gethostnamadr.o sethostent.o
  21.  
  22. SRCS=    gethostnamadr.c sethostent.c
  23.  
  24. CFLAGS= -O ${DEFS} 
  25. TAGSFILE= tags
  26. DESTDIR=
  27.  
  28. .c.o:
  29.     ${CC} -p -c ${CFLAGS} $*.c
  30.     -ld -X -r $*.o
  31.     mv a.out profiled/$*.o
  32.     ${CC} ${CFLAGS} -c $*.c
  33.     -ld -x -r $*.o
  34.     mv a.out $*.o
  35.  
  36. hostlib hostlib_p: ${OBJS} 
  37.     @echo "building profiled hostlib"
  38.     @cd profiled; ar cru ../hostlib_p ${OBJS}
  39.     @echo "building normal hostlib"
  40.     @ar cru hostlib ${OBJS}
  41.  
  42. tags:
  43.     cwd=`pwd`; \
  44.     for i in ${SRCS}; do \
  45.         ctags -a -f ${TAGSFILE} $$cwd/$$i; \
  46.     done
  47.  
  48. clean:
  49.     rm -f *.o errs a.out core hostlib hostlib_p profiled/*.o tags
  50.  
  51. depend:
  52.     mkdep ${CFLAGS} ${SRCS}
  53.  
  54. # DO NOT DELETE THIS LINE -- mkdep uses it.
  55. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  56.  
  57. gethostnamadr.o: gethostnamadr.c /usr/include/sys/param.h
  58. gethostnamadr.o: /usr/include/sys/types.h /usr/include/signal.h
  59. gethostnamadr.o: /usr/include/machine/trap.h /usr/include/machine/machparam.h
  60. gethostnamadr.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
  61. gethostnamadr.o: /usr/include/ctype.h /usr/include/netdb.h /usr/include/stdio.h
  62. gethostnamadr.o: /usr/include/errno.h /usr/include/arpa/inet.h
  63. gethostnamadr.o: /usr/include/arpa/nameser.h /usr/include/resolv.h
  64. sethostent.o: sethostent.c /usr/include/sys/types.h /usr/include/arpa/nameser.h
  65. sethostent.o: /usr/include/netinet/in.h /usr/include/resolv.h
  66.  
  67. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  68.