home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NNTP-1.000 / NNTP-1 / nntp.1.5.11t / xmit / Makefile < prev    next >
Encoding:
Makefile  |  1993-10-17  |  1.4 KB  |  67 lines

  1. #
  2. # Makefile for nntpxmit
  3. #
  4.  
  5. SRVRSRC = nntpxmit.c remote.c llist.c get_tcp_conn.c xmitauth.c ../server/fakesyslog.c ../server/strcasecmp.c
  6.  
  7. SRVROBJ = nntpxmit.o remote.o llist.o get_tcp_conn.o xmitauth.o fakesyslog.o strcasecmp.o #/tcp/src/buildsaddr.o
  8.  
  9. SRVRINC = ../common/conf.h ../common/nntp.h nntpxmit.h get_tcp_conn.h \
  10.     llist.h sysexits.h ../common/nntp.h ../server/fakesyslog.h
  11.  
  12. SRCS    = ${SRVRSRC}
  13.  
  14. LIBS    =
  15.  
  16. CFLAGS    = -O 
  17.  
  18. # Where nntpxmit is going to live
  19.  
  20. DESTDIR    = /usr/lib/news
  21.  
  22. all:    nntpxmit shlock
  23.  
  24. nntpxmit: ${SRVROBJ} ${SRVRINC}
  25.     ${CC} ${CFLAGS} -o nntpxmit ${SRVROBJ} ${LIBS}
  26.  
  27. shlock: shlock.c
  28.     cc ${CFLAGS} -DNNTPSRC -o shlock shlock.c
  29.  
  30. ${SRVROBJ}: ${SRVRINC}
  31.  
  32. install: nntpxmit shlock
  33.     cp nntpxmit ${DESTDIR}/nntpxmit
  34.     cp shlock ${DESTDIR}/shlock
  35.     chmod 755 ${DESTDIR}/nntpxmit
  36.     chmod 755 ${DESTDIR}/shlock
  37.  
  38. lint:
  39.     lint ${SRVRSRC}
  40.  
  41. clean:
  42.     -rm -f *.o nntpxmit shlock make*.out a.out
  43.  
  44. distrib: clean
  45.     rm -rf RCS save tags
  46.  
  47. check:
  48.     ci -l *.[ch] Makefile
  49.  
  50. tags:    ${SRVRSRC} ${SRVRINC}
  51.     ctags ${SRVRSRC} ${SRVRINC}
  52.  
  53. fakesyslog.o: ../server/fakesyslog.c ../server/fakesyslog.h
  54.     ${CC} ${CFLAGS} -c ../server/fakesyslog.c
  55.  
  56. strcasecmp.o: ../server/strcasecmp.c 
  57.     ${CC} ${CFLAGS} -c ../server/strcasecmp.c
  58.  
  59. nntpxmit.o: nntpxmit.c nntpxmit.h llist.h ../common/conf.h
  60.  
  61. get_tcp_conn.o: get_tcp_conn.c get_tcp_conn.h ../common/conf.h
  62.  
  63. remote.o: remote.c nntpxmit.h get_tcp_conn.h ../common/conf.h
  64.  
  65. llist.o: llist.c llist.h
  66.  
  67.