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 / makefile.org < prev    next >
Makefile  |  1993-08-24  |  2KB  |  55 lines

  1. #
  2. # Copyright (c) 1988 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 this notice is preserved and that due credit is given
  7. # to the University of California at Berkeley. The name of the University
  8. # may not be used to endorse or promote products derived from this
  9. # software without specific prior written permission. This software
  10. # is provided ``as is'' without express or implied warranty.
  11. #
  12. #    from @(#)Makefile    5.16 (Berkeley) 3/14/88
  13. #
  14. SRCS=    herror.c res_comp.c res_debug.c res_init.c res_mkquery.c res_query.c \
  15.     res_send.c named/gethostnamadr.c named/sethostent.c \
  16.     mktemp.c strcasecmp.c strpbrk.c strerror.c
  17. OBJS=    herror.o res_comp.o res_debug.o res_init.o res_mkquery.o res_query.o \
  18.     res_send.o gethostnamadr.o sethostent.o \
  19.     mktemp.o strcasecmp.o strpbrk.o strerror.o
  20. DEFS=    -DDEBUG
  21. CFLAGS=    -O ${DEFS}
  22.  
  23. libresolv.a: ${OBJS}
  24.     ar cru libresolv.a ${OBJS}
  25.  
  26. install: libresolv.a
  27.     install -o bin -g bin -m 644 libresolv.a ${DESTDIR}/usr/lib
  28.     ranlib ${DESTDIR}/usr/lib/libresolv.a
  29.  
  30. .c.o:
  31.     ${CC} ${CFLAGS} -c $*.c
  32.     -ld -x -r $*.o
  33.     mv a.out $*.o
  34.  
  35. gethostnamadr.o: named/gethostnamadr.c
  36.     ${CC} -c ${CFLAGS} named/gethostnamadr.c
  37.     -ld -x -r gethostnamadr.o
  38.     mv a.out gethostnamadr.o
  39.  
  40. sethostent.o: named/sethostent.c
  41.     ${CC} -c ${CFLAGS} named/sethostent.c
  42.     -ld -x -r sethostent.o
  43.     mv a.out sethostent.o
  44.  
  45. clean: FRC
  46.     rm -f *.o errs a.out core libresolv.a tags
  47.  
  48. depend: FRC
  49.     mkdep ${CFLAGS} ${SRCS}
  50.  
  51. FRC:
  52.  
  53. # DO NOT DELETE THIS LINE -- mkdep uses it.
  54. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  55.