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

  1. # simped - a simple, easy to use (line oriented) editor.
  2.  
  3. # Copyright (C) 1990 Jay Konigsberg (uucp: jak@sactoh0)
  4. #                                   (paper mail not available)
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public Licence as published by
  8. # the Free Software Foundation; either version 1, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distrubited in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without evev the implied warranty of
  13. # MERCHANTABILITY or FITTNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have recieved a copy of the GNU General Public Licence
  17. # along with this program; if not, write to the Free Software
  18. # Foundation Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # While I am not directly connected with GNU, I hope the preceeding
  21. # says enough. (They did say I could copy it)
  22. #                                                 Jay
  23.  
  24.  
  25. #
  26. # LINELEN - The length of a line across the screen. This value must be
  27. #           at least 5 characters less than the screen width to allow
  28. #           for the line number prompt at the left. 6 in better.
  29. LINELEN=74
  30.  
  31. #
  32. # PAUSE   - This is the number of lines that will be listed upon
  33. #           entering the editor with an existing file, or when
  34. #           the L)ist command is used. The H)elp command suggests
  35. #           it will be "about a half a screen".
  36. PAUSE=15
  37.  
  38. #
  39. # BELL    - Choose the bell character for your system, ascii is default.
  40. #
  41. BELL=\007
  42.  
  43. #
  44. # Complier - choose your C complier. gcc -O -traditional is preferred
  45.  
  46. CC=cc -O
  47. #CC=gcc -O -traditional
  48. #CC=gcc -O -Wall -Wshadow -Wpointer-arith
  49. #CC=cc -g
  50.  
  51. CFLAGS=-DLINELEN=$(LINELEN) -DPAUSE=$(PAUSE) -DBELL=$(BELL)
  52.  
  53. #EXEC=a.out
  54. EXEC=simped
  55.  
  56. FILES=main.o cleanup.o getline.o listtext.o allocate.o commands.o\
  57. addlines.o deleteline.o getlinenum.o savefile.o editline.o position.o\
  58. modify.o help.o
  59.  
  60. $(EXEC): $(FILES)
  61.     $(CC) $(CFLAGS) $(FILES) -o $(EXEC)
  62.  
  63. $(FILES):
  64.  
  65. clean:
  66.     rm -f $(FILES) core MANIFEST simped?.ar
  67.  
  68. ship: tar
  69.     compress simped.tar
  70.     echo simped.tar.Z created
  71.  
  72. tar: shar
  73.     tar cvf simped.tar simped?.ar
  74.     rm simped?.ar
  75.  
  76.  
  77. shar:
  78.     sharsplit -l 24000 -m -r -o simped main.c cleanup.c getline.c \
  79.     listtext.c allocate.c commands.c addlines.c deleteline.c \
  80.     getlinenum.c savefile.c editline.c position.c modify.c help.c \
  81.     Makefile simped.doc one mod simped.h
  82.     rm MANIFEST
  83.