home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0636.ZIP / CCE_0636 / CURSES / CRSSRC12.ZOO / widget / Makefile.unx < prev    next >
Makefile  |  1991-05-03  |  1KB  |  55 lines

  1. #
  2. #
  3. #
  4. #
  5.  
  6. #/*****************************************************************************
  7. #/*  FILE:        makefile
  8. #/*  DATE:        August 1988.
  9. #/*  AUTHOR:        Richard A. Culshaw.
  10. #/* DISCLAIMER:        This file is deemed to be public-domain, on the simple
  11. #/*            provisos that this section remains in this file and
  12. #/*            that code using it do not do so for monetary gain.
  13. #/*            Neither the author, nor the authors employees at the
  14. #/*            time of developing this code, accept any liability or
  15. #/*            responsibility for the use, abuse or misuse of this
  16. #/*            code.
  17. #/*****************************************************************************/
  18.  
  19. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
  20. CROSSLIB = $(CROSSDIR)/lib
  21. CROSSBIN = $(CROSSDIR)/bin
  22.  
  23. # Use -g if you want large, but sdb-,gdb-,dbx-able objects.
  24. OPTIONS= -O -I.
  25. CFLAGS = $(OPTIONS)
  26. CC = cc
  27. AR = ar
  28.  
  29. # BSD systems, in particular, will want -lcurses -ltermcap.
  30. CURSES=  -lcurses -ltermcap
  31.  
  32. # SYS5 systems, in particular, do not have ranlib(1) for their libraries.
  33. # So define this as, for example, touch, if you don't have ranlib.
  34. RANLIB= ranlib
  35.  
  36. WDGTLIB= widget.a
  37.  
  38. all: ${WDGTLIB}
  39.  
  40. widget.a: widgetlib.o widget.h
  41.     rm -f $@
  42.     $(AR) rv $@ widgetlib.o
  43.     $(RANLIB) $@
  44.  
  45. wpage:  wpage.o
  46.     $(CC) ${OPTIONS} -o $@ wpage.o widget.a ${CURSES}
  47.  
  48. clean:
  49.     rm -f wpage *.o widget.a
  50.  
  51. widgetlib.o : widgetlib.c widget.h
  52. wpage.o : wpage.c widget.h always
  53. #dummy
  54. always:
  55.