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

  1. # Makefile for NN version of mini inews.
  2. #
  3. # $RCSfile: Makefile,v $    $Revision: 1.3 $
  4. #
  5. # $Author: news $    $Date: 89/12/21 17:59:52 $
  6. #
  7. # $State: Exp $    $Locker:  $
  8. #
  9. # $Log:    Makefile,v $
  10. # Revision 1.3  89/12/21  17:59:52  news
  11. # Added kit processing, cleanups.
  12. #
  13.  
  14. TARGET    = inews
  15.  
  16. BINDIR    = /usr/lib/news/
  17. SHELL    = /bin/sh
  18.  
  19. CC    = cc
  20. # General definitions here which apply to all -- form -DDEF
  21. DEFS    = -DFOR_NN
  22. # Link libraries -- form -lLIB
  23. LIBS    = ../hostname.o
  24. # Lint definitions -- same as DEFS, but form -D DEF
  25. LDEFS    = -D lint -D FOR_NN
  26. # Lint libraries -- same as LIBS, but form -l LIB
  27. LLIBS    =
  28. # Set to -g for debugging, -O for optimise, or both if compiler handles it
  29. DEBUG    = -O
  30. CFLAGS    = $(DEBUG) $(DEFS) -I.. -I../conf
  31.  
  32. SRCS    = inews.c clientlib.c version.c
  33. OBJS    = inews.o clientlib.o version.o
  34. CLUDES    = clientlib.h conf.h nntp.h
  35. KIT    = Makefile README README.NN $(SRCS) $(CLUDES)
  36.  
  37. $(TARGET): $(OBJS)
  38.     $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
  39.  
  40. $(OBJS):    $(CLUDES)
  41.  
  42. all:    $(TARGET)
  43.  
  44. Manifest:    $(KIT)
  45.     touch Manifest
  46.     rm -f foo
  47.     ls -ls Manifest $(KIT) > foo
  48.     mv foo Manifest
  49.     ls -ls Manifest $(KIT) > foo
  50.     mv foo Manifest
  51.  
  52. kit:    Manifest
  53.     shar Manifest $(KIT) > inews.shar
  54.  
  55. clean:
  56.     rm -f $(OBJS) core lint tags
  57.  
  58. clobber:    clean
  59.     rm -f $(TARGET) Make.Log Manifest $(KIT)
  60.  
  61. lint:    $(SRCS)
  62.     lint -D lint $(LLIBES) $(LDEFS) $(SRCS) > lint
  63.  
  64. tags:    $(SRCS)
  65.     ctags $(SRCS)
  66.  
  67. install:    $(TARGET)
  68.     ../inst inews $(TARGET)
  69. #    install -o news -g news -m 511 -s -c $(TARGET) $(BINDIR)
  70.