home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume4 / curses-widgets / makefile next >
Encoding:
Makefile  |  1989-02-03  |  1.1 KB  |  38 lines

  1. /*****************************************************************************
  2. /*  FILE:        makefile
  3. /*  DATE:        August 1988.
  4. /*  AUTHOR:        Richard A. Culshaw.
  5. /* DISCLAIMER:        This file is deemed to be public-domain, on the simple
  6. /*            provisos that this section remains in this file and
  7. /*            that code using it do not do so for monetary gain.
  8. /*            Neither the author, nor the authors employees at the
  9. /*            time of developing this code, accept any liability or
  10. /*            responsibility for the use, abuse or misuse of this
  11. /*            code.
  12. /*****************************************************************************/
  13.  
  14. # Use -g if you want large, but sdb-,gdb-,dbx-able objects.
  15. OPTIONS= -O
  16.  
  17. # BSD systems, in particular, will want -lcurses -ltermcap.
  18. CURSES=  -lcurses
  19.  
  20. # SYS5 systems, in particular, do not have ranlib(1) for their libraries.
  21. # So define this as, for example, touch, if you don't have ranlib.
  22. RANLIB= touch
  23.  
  24. WDGTLIB= widgetlib.a
  25.  
  26. all: wpage
  27.  
  28. widgetlib.a: widgetlib.o widget.h
  29.     ar crv $@ widgetlib.o
  30.     ${RANLIB} $@
  31.     rm -f widgetlib.o
  32.  
  33. wpage: widgetlib.a wpage.o
  34.     cc ${OPTION} -o $@ wpage.o ${WDGTLIB} ${CURSES}
  35.  
  36. clean:
  37.     rm -f wpage *.o *.a
  38.