home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume24 / mced / part01 / Makefile < prev    next >
Makefile  |  1991-10-26  |  1KB  |  43 lines

  1. #
  2. #    Makefile for mced
  3. #
  4. #    To install this utility do the following:
  5. #           1) Select vi or emacs mode by uncommenting one of the
  6. #              OBJECTS lines below.
  7. #        2) Fill in the BINDIR and MANDIR variables.
  8. #        3) Type "make install" on the command line.
  9. #        4) Type "make clean" on the command line to clean up after install.
  10. #
  11. #
  12. #
  13. # definitions for EMACS EDIT mode:
  14. #OBJECTS = main.o emacs_edit.o getch.o
  15. #
  16. # definitions for VI EDIT mode:
  17. OBJECTS = main.o vi_edit.o getch.o
  18. #
  19. # Where to stick the executable on install
  20. BINDIR=/usr/local/bin
  21. #
  22. # Where to stick the man page on install
  23. MANDIR=/usr/local/man/man1
  24. #
  25. LDFLAGS = -lcurses -ltermcap
  26. #
  27. CFLAGS = -O     ## do not use optimizer on SunOS 4.0.3S ##
  28.  
  29. mced : $(OBJECTS)
  30.     $(CC) $(TARGET_ARCH) $(CFLAGS) $(OBJECTS) -o $@ $(LDFLAGS)
  31.  
  32. man : mced.1
  33.     cat mced.1 | nroff -man > mced.man
  34.  
  35. install : mced
  36.     install -s -c mced $(BINDIR)
  37.     install -m 644 mced.1 $(MANDIR)/mced.1
  38.     ln -s $(MANDIR)/mced.1 $(MANDIR)/=.1
  39.  
  40. clean : 
  41.     rm -f mced core $(OBJECTS)
  42.  
  43.