home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / nn.tar / nn-6.5.1 / contrib / nnsub / Makefile < prev    next >
Makefile  |  1995-04-29  |  2KB  |  56 lines

  1. #
  2. # create program nnsub
  3. #
  4. # define the smbol DEFS in accordance to your system
  5. #
  6. # define the symbol DEST as the directory in everybody's searchpath
  7. # where the program should reside
  8. #
  9. # install the file nnsub.1 manually in the directory for local
  10. # manpages (By us this is /usr/local/man/man1)
  11.  
  12. # this I use on convex
  13. # DEFS= -pcc
  14. # this should be used on SysV boxes, also HP/UX
  15. DEFS= -DSYSV
  16. # possible DEFS are:
  17. #    ACTIVE        pathname of file containing active newsgroups
  18. #    DEFRC        pathname of default .newsrc (see nn INSTALL)
  19. #    ERR_EXIT    value for error exit
  20. #    NCOLS        number of colums on a terminal screen (80)
  21. #    NEWSGROUPS    pathname of file with short descriptions
  22. #    NEWSRC        file .newsrc
  23. #    NLINES        number of lines in a screen menu (22)
  24. #    NNTP        hostname of nntp server
  25. #    OLDRC        filename to save old .newsrc
  26. #    PORT        port number for nntp, see file /etc/services
  27. #    SYSV        compile and run on System V UNIX
  28. #    TEMPRC        temporary template to write new .newsrc
  29. #    TIMEOUT        timeout value while waiting for server reply
  30. #    iShwfac        interval for writing a dot if debugging
  31. #    iSlen        length of string buffer
  32. #    iMeuGrpart    max space to be used to write groupname in menu
  33.  
  34. SUBS= avl.o Findsub.o strsave.o
  35. DEST=/usr/local/bin
  36. CC=   cc
  37. CFLAGS= -O $(DEFS)
  38. LDFLAGS=
  39.  
  40. .c.o:
  41.     $(CC) $(CFLAGS) -c $*.c
  42.  
  43. nnsub:    nnsub.o $(SUBS)
  44.     $(CC) -o nnsub nnsub.o $(SUBS)
  45.  
  46. install: nnsub
  47.     mv nnsub $(DEST)
  48.     strip $(DEST)/nnsub
  49.     chmod 551 $(DEST)/nnsub
  50.  
  51. clean:
  52.     rm -f nnsub core *.o a.out
  53.  
  54. nnsub.o:    patchlevel.h version.h avl.h nnsub.c
  55. avl.o:        avl.h avl.c
  56.