home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume8 / se / part05 / libchangetty / makefile < prev   
Encoding:
Makefile  |  1987-01-25  |  734 b   |  39 lines

  1. # $Header: makefile,v 1.2 86/07/11 15:23:24 osadr Exp $
  2. # $Log:    makefile,v $
  3. # Revision 1.2  86/07/11  15:23:24  osadr
  4. # Changed to ensure the proper 'ar' program is used.
  5. # Revision 1.1  86/05/06  13:31:30  osadr
  6. # Initial revision
  7. # makefile for libchangetty.a -- terminal resetting functions
  8.  
  9. TARGET= libchangetty.a
  10. SRCS= changetty.c
  11. OBJS= changetty.o
  12. PRINTS= $(SRCS) makefile
  13.  
  14. CFLAGS= -O `cat ../flags`
  15.  
  16. $(TARGET): $(OBJS) ../flags
  17.     /bin/ar ruv $(TARGET) $(OBJS)
  18.     if test -r /usr/bin/ranlib; then /usr/bin/ranlib $(TARGET); fi
  19.  
  20. clean:
  21.     rm -fr $(OBJS)
  22.  
  23. clobber: clean
  24.     rm -fr $(TARGET) print2
  25.  
  26. print:
  27.     prt $(PRINTS) | lpr -b 'tty lib'
  28.     touch print2
  29.  
  30. print2: $(PRINTS)
  31.     prt $? | lpr -b 'new tty lib'
  32.     touch print2
  33.