home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1557 / Makefile < prev   
Encoding:
Makefile  |  1990-12-28  |  2.0 KB  |  67 lines

  1. # simped - a simple, easy to use (line oriented) editor.
  2. #
  3. # Copyright (C) 1990 by Jay Konigsberg:  (uucp: jak@sactoh0)
  4. #                                        (paper mail not available)
  5. #
  6. # Permission to use, copy, modify, and distribute this  software  and  its
  7. # documentation is hereby  granted,  provided  that  the  above  copyright
  8. # notice appear in all copies  and that  both  the  copyright  notice  and
  9. # this permission notice appear in supporting documentation. This software
  10. # is provided "as is" without express or implied  warranty.  However,  the
  11. # author retains all Copyright priviliges and rights  to  renumeration  if
  12. # this software is sold.
  13.  
  14. #
  15. # LINELEN - The length of a line across the screen. This value must be
  16. #           at least 5 characters less than the screen width to allow
  17. #           for the line number prompt at the left. 6 in better.
  18. LINELEN=74
  19.  
  20. #
  21. # PAUSE   - This is the number of lines that will be listed upon
  22. #           entering the editor with an existing file, or when
  23. #           the L)ist command is used. The H)elp command suggests
  24. #           it will be "about a half a screen".
  25. PAUSE=15
  26.  
  27. #
  28. # BELL    - Choose the bell character for your system, ascii is default.
  29. #
  30. BELL=\007
  31.  
  32. #
  33. # Complier - choose your C complier. gcc -O -traditional is preferred
  34.  
  35. CC=cc -O
  36. #CC=gcc -O -traditional
  37. #CC=gcc -O -Wall -Wshadow -Wpointer-arith
  38. #CC=cc -g
  39.  
  40. CFLAGS=-DLINELEN=$(LINELEN) -DPAUSE=$(PAUSE) -DBELL=$(BELL)
  41.  
  42. #EXEC=a.out
  43. EXEC=simped
  44.  
  45. OBJS=main.o cleanup.o getline.o listtext.o allocate.o commands.o\
  46. addlines.o deleteline.o getlinenum.o savefile.o editline.o position.o\
  47. modify.o help.o options.o
  48.  
  49. FILES=main.c cleanup.c getline.c listtext.c allocate.c commands.c\
  50. addlines.c deleteline.c getlinenum.c savefile.c editline.c position.c\
  51. modify.c help.c options.c
  52.  
  53. $(EXEC): $(OBJS)
  54.     $(CC) $(CFLAGS) $(OBJS) -o $(EXEC)
  55.  
  56. $(OBJS):
  57.  
  58. clean:
  59.     rm -f $(OBJS) core MANIFEST simped?.ar
  60.  
  61. ship: tar
  62.     compress simped.tar
  63.     echo simped.tar.Z created
  64.  
  65. tar:
  66.     tar cvf simped.tar $(FILES) Makefile simped.doc one mod simped.h
  67.