home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / dev / curses-2.10.lha / curses / src / Makefile < prev    next >
Makefile  |  1994-02-21  |  4KB  |  135 lines

  1. # -*-Text-*-
  2. #
  3. # Filename     : SRC:lib/curses/src/Makefile
  4. #
  5. # Author       : Simon J Raybould.  (sie@fulcrum.co.uk)
  6. #
  7. # Date         : Friday 23rd August 1991.
  8. #
  9. # Desc         : Makefile for Amiga curses library.
  10. #
  11. #
  12. # THIS CODE IS NOT PUBLIC DOMAIN
  13. # ==============================
  14. # This code is copyright Simon J Raybould 1992, all rights are reserved.
  15. # All code, ideas, data structures and algorithms remain the property of the
  16. # author. Neither the whole nor sections of this code may be used as part
  17. # of other code without the authors consent. If you wish to use some of this
  18. # code then please email me at (sie@fulcrum.bt.co.uk).
  19. #
  20. # This source is not public domain, so you do not have any right to alter it
  21. # or sell it for personal gain. The source is provided purely for reference
  22. # purposes. You may re-compile the source with any compiler you choose.
  23. # You must not distribute altered copies without the authors consent. My
  24. # intention is that the source will help people isolate any bugs much more
  25. # effectively.
  26. #
  27. # Disclaimer
  28. # ==========
  29. #
  30. # No implication is made as to this code being fit for any purpose at all.
  31. # I (the author) shall not be held responsible for any loss of data or damage 
  32. # to property that may result from its use or misuse.
  33. #
  34. #
  35. # Revision History
  36. # ================
  37. #
  38. # $Log: Makefile,v $
  39. # Revision 1.11  1994/02/21  22:18:08  sie
  40. # Added setupterm.c
  41. #
  42. # Revision 1.10  1993/05/17  23:42:07  sie
  43. # tidying up.
  44. #
  45. # Revision 1.9  1993/05/17  23:33:10  sie
  46. # Underscores added to names.
  47. # Changes for version 2.10
  48. #
  49. # Revision 1.8  1992/12/25  22:22:09  sie
  50. # Changes for the GNU C port.
  51. #
  52. # Revision 1.7  92/06/10  23:44:42  sie
  53. # Added serial support.
  54. # Revision 1.6  92/01/28  00:11:43  sie
  55. # removed -q1e1w as these are now defaults.
  56. # Revision 1.5  92/01/28  00:10:40  sie
  57. # compacts the header file.
  58. # Revision 1.4  92/01/25  23:53:48  sie
  59. # clean now removed emacs temporary files as well.
  60. # Revision 1.3  91/12/28  22:49:15  sie
  61. # made "clean" remove the library.
  62. # Revision 1.2  91/09/28  17:53:40  sie
  63. # Put clone on both copy instructions.
  64. # Revision 1.1  91/09/07  11:55:48  sie
  65. # Initial revision
  66. #
  67.  
  68. VER= V2.00
  69. SRCS=    wclrtobot.c flushinp.c wgetstr.c subwin.c mvprintw.c wscanw.c \
  70.     scanw.c mvwscanw.c mvscanw.c printw.c newwin.c _creatwin.c \
  71.     touchwin.c delwin.c mvwin.c scroll.c wsetscrreg.c _scroll.c \
  72.     scrollok.c wnoutrefresh.c doupdate.c echo.c noecho.c beep.c \
  73.     wrefresh.c initscr.c wgetch.c wstandout.c keypad.c flash.c \
  74.     initcolour.c _data.c startcolour.c hascolours.c waddstr.c \
  75.     waddch.c winsch.c wdelch.c wclear.c werase.c clearok.c wclrtoeol.c \
  76.     wstandend.c wattrset.c wattron.c wattroff.c cbreak.c nocbreak.c \
  77.     idlok.c winsertln.c wdeleteln.c nodelay.c resetty.c savetty.c \
  78.     resetterm.c fixterm.c saveterm.c baudrate.c nl.c nonl.c box.c \
  79.     mvwprintw.c _togcur.c wmove.c _zapcur.c _drawcur.c _exit.c endwin.c \
  80.     mvcur.c wprintw.c leaveok.c winch.c _doecho.c _cleanup.c \
  81.     _ansi.c gettmode.c longname.c overlay.c overwrite.c \
  82.     _mergewin.c setterm.c unctrl.c tgetent.c tgetstr.c tputs.c \
  83.     tgoto.c tgetnum.c tgetflag.c setupterm.c
  84.  
  85.  
  86. CC= sc
  87. CP= copy
  88. RM= delete
  89. TAGS= etags
  90. OBJS= $(SRCS:.c=.o)
  91. #DEBUG  = DEFINE DEBUG debug=ff
  92. #TSTOPTS = COVERAGE
  93. CFLAGS = DEFINE NO_SCAN_PROTOS $(DEBUG) $(TSTOPTS)
  94. LIB    = curses.lib
  95. LIBDIR = LLIB:
  96.  
  97. .c.o:
  98.     $(CC) $(CFLAGS) $<
  99.  
  100. all: $(LIB)
  101.  
  102.  
  103. $(LIB): $(OBJS)
  104.     -$(RM) $(LIB)
  105.     join #?.o AS $(LIB)
  106.  
  107. install: $(LIB)
  108.     -$(CP) $(LIB) $(LIBDIR) CLONE
  109.     $(CP) curses.h INCLUDE: CLONE
  110.  
  111. $(OBJS): acurses.h curses.h
  112.  
  113. TAGS: $(SRCS)
  114.     $(TAGS)    $(SRCS)
  115.  
  116. protos: $(SRCS)
  117.     $(CC) GPROTO $(SRCS)
  118.     join #?_protos.h as protos.h
  119.     -$(RM) #?_protos.h #?_protos.h.info
  120.  
  121. clean:
  122.     -$(RM) #?~
  123.     -$(RM) #?.info
  124.     -$(RM) $(OBJS)
  125.     -$(RM) TAGS
  126.     -$(RM) $(LIB)
  127.