home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / relay / makefile < prev    next >
Makefile  |  1995-04-27  |  951b  |  45 lines

  1. MORECFLAGS=-I. -DFLUSHEVERY=6
  2. # =()<@<INCLUDE>@>()=
  3. .include "../include/config.make"
  4.  
  5. BINS=relaynews
  6. PROGS=$(BINS) relayrun
  7. DEST=$(NEWSBIN)/relay
  8. ALL=$(PROGS)
  9.  
  10. OBJ=relaynews.o active.o article.o control.o \
  11.     fileart.o fsys.o hdrdefs.o hdrparse.o \
  12.     hdrmunge.o history.o io.o procart.o sys.o transmit.o trbatch.o \
  13.     ihave.o morefds.o
  14.  
  15. all:    $(ALL)
  16.     $(MX) $(PROGS)
  17.  
  18. setup:
  19.  
  20. install:    $(PROGS)
  21.     $(MKDIR) $(DEST)
  22.     $(TO) $(DEST) $(PROGS)
  23.     : any relay/staleness file is obsolete and will foul things up
  24.     rm -f $(DEST)/staleness
  25.  
  26. cmp:    $(PROGS)
  27.     @$(IN) $(DEST) $(PROGS)
  28.     : check that relaynews is NOT set-uid
  29.     test " `ls -l $(DEST)/relaynews | awk '$$1 ~ /s/`" = " " ;
  30.     : check that obsolete staleness program is NOT present
  31.     test ! -f $(DEST)/staleness ;
  32.  
  33. relaynews: $(OBJ) $(LIB)
  34.     $(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o $@
  35.  
  36. r:    $(PROGS)
  37.     $(MX) regress/regress
  38.     (cd regress; sh regress)
  39.  
  40. rclean:
  41.     rm -rf regress/tmp
  42.  
  43. clean:    rclean
  44.     rm -f core a.out relaynews *.o    
  45.