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

  1. # Atari TOS / MWC  Makefile for Elvis -- a clone of vi
  2. #
  3. # Use `make` to compile all programs
  4. # Use `make clean` to remove all object files
  5. # Use `make clobber` to remove everything except source & documentation
  6. # Use `make tags` to build new "tags" and "refs" files
  7.  
  8. #PROGS=    elvis ctags ref virec
  9. PROGS=    elvis.ttp ctags.ttp ref.ttp virec.ttp wildcard.ttp shell.ttp
  10. BIN=    a:/
  11. OBJS=    blk.o cmd1.o cmd2.o curses.o cut.o ex.o input.o main.o misc.o\
  12.     modify.o move1.o move2.o move3.o move4.o move5.o opts.o recycle.o\
  13.     redraw.o regexp.o regsub.o system.o tio.o tmp.o vars.o vcmd.o vi.o\
  14.     atari.o sysdos.o tinytcap.o
  15. #    pc.o
  16. EXTRA=
  17. CFLAGS=
  18. LIBS=
  19. CC=    cc -VPEEP
  20.  
  21. all:    $(PROGS)
  22.     @echo '*** all done! ***'
  23.  
  24. elvis.ttp: $(OBJS) $(EXTRA)
  25.     $(CC) -o elvis.ttp $(OBJS) $(EXTRA) $(LIBS)
  26.  
  27. ctags.ttp: ctags.c
  28.     $(CC) $(CFLAGS) ctags.c -o ctags.ttp
  29.  
  30. ref.ttp: ref.c
  31.     $(CC) $(CFLAGS) ref.c -o ref.ttp
  32.  
  33. virec.ttp: virec.c
  34.     $(CC) $(CFLAGS) virec.c -o virec.ttp
  35.  
  36. wildcard.ttp: wildcard.c
  37.     $(CC) $(CFLAGS) wildcard.c -o wildcard.ttp
  38.  
  39. shell.ttp: shell.c
  40.     $(CC) $(CFLAGS) shell.c -o shell.ttp
  41.  
  42. # The file cmd1.c is compiled with the extra flag -DDATE="today's date".
  43. # This date is reported when elvis is run and the :version command is given.
  44. # If you have trouble defining the date in this way, then just comment out
  45. # these two lines so cmd1.c is compiled normally.  The :version command
  46. # won't report the compilation date, but that's really no big deal.
  47. #cmd1.o: cmd1.c vi.h
  48. #    eval $(CC) -c $(CFLAGS) -DDATE=\'\"`date`\"\' cmd1.c
  49.  
  50. # This just says that a change to nomagic.c is effectively a change to regexp.c
  51. regexp.o: nomagic.c
  52.  
  53. ##############################################################################
  54. clean:
  55.     rm -f *.o *.uue core
  56.  
  57. clobber: clean
  58.     rm -f tags refs $(PROGS)
  59.  
  60. which:
  61.     @echo 'Atari TOS with MWC'
  62.  
  63. tags refs: ctags
  64.     ./ctags -r *.[ch]
  65.