home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / libstdio / makefile < prev    next >
Makefile  |  1994-09-17  |  1KB  |  51 lines

  1. MORECFLAGS='-DPTR_TYPE=unsigned char *'
  2. # =()<@<INCLUDE>@>()=
  3. .include "../include/config.make"
  4.  
  5. OBJS=fgets.o fputs.o rdwr.o
  6. ALL=$(OBJS)
  7.  
  8. u:    $(ALL)
  9.     $(UPDATE) $(OBJS)
  10.  
  11. maybe:
  12.     @-if $(MAKE) r ; \
  13.     then $(MAKE) u ; \
  14.     else \
  15.     echo ; \
  16.     echo ; \
  17.     echo "Don't panic."'  (That "Stop." you just saw is not an order!)' ; \
  18.     echo 'It would appear that you cannot use our stdio speedups due' ; \
  19.     echo 'to system incompatibility.  They may be superfluous; systems' ; \
  20.     echo 'modern enough to be incompatible often have a fast stdio.' ; \
  21.     echo 'In any case, C News runs properly without the speedups.' ; \
  22.     fi
  23.  
  24. o:    $(OBJS)
  25.  
  26. cmp:    $(ALL)
  27.     $(LIBCMP) $(OBJS)
  28.  
  29. rsetup:    $(OBJS) stdiock.stock stdiock.fast runtrials
  30.     $(MX) stdiock.stock stdiock.fast runtrials
  31.  
  32. r:    rclean rsetup
  33.     : run first with stdout directed to a plain file
  34.     ./runtrials >junk
  35.     : and again with stdout directed to a tty, we hope.
  36.     : do not panic.  you can ignore the output of runtrials.
  37.     : only its exit status really matters.
  38.     ./runtrials
  39.  
  40. stdiock.stock:    stdiock.o
  41.     $(CC) $(LDFLAGS) stdiock.o -o $@
  42.  
  43. stdiock.fast:    stdiock.o $(OBJS)
  44.     $(CC) $(LDFLAGS) stdiock.o $(OBJS) -o $@
  45.  
  46. rclean:
  47.     rm -f stdiock stdiock.fast stdiock.stock junk
  48.  
  49. clean:    rclean
  50.     rm -f *.o junk *mon.out
  51.