home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mush-7.1.1 / makefile.bsd < prev    next >
Encoding:
Makefile  |  1990-05-02  |  2.0 KB  |  69 lines

  1. # makefile.bsd    (c) copyright 1986    (Dan Heller)
  2. # SunOS users should add -DSUN_3_5 or -DSUN_4_0 to the CFLAGS line below.
  3. #
  4. HDRS= mush.h config.h-dist strings.h bindings.h options.h version.h glob.h
  5.  
  6. SRCS= main.c init.c misc.c mail.c hdrs.c execute.c commands.c print.c dates.c \
  7.       signals.c setopts.c msgs.c pick.c sort.c expr.c folders.c \
  8.       loop.c viewopts.c curses.c curs_io.c bind.c file.c strings.c \
  9.       lock.c macros.c options.c addrs.c malloc.c glob.c
  10. OBJS= main.o init.o misc.o mail.o hdrs.o execute.o commands.o print.o file.o \
  11.       signals.o setopts.o msgs.o pick.o sort.o expr.o strings.o \
  12.       folders.o dates.o loop.o viewopts.o curses.o curs_io.o bind.o \
  13.       lock.o macros.o options.o addrs.o malloc.o glob.o
  14.  
  15. HELP_FILES= README README-7.0 README-7.1 mush.1 cmd_help \
  16.     Mushrc Mailrc Gnurc sample.mushrc advanced.mushrc digestify
  17.  
  18. MAKES= makefile.bsd makefile.xenix makefile.sys.v makefile.hpux makefile.sun
  19.  
  20. # See the README for changes needed to compile under Ultrix.
  21. # In particular, you may need -DSIGRET=void and/or -ltermcap.
  22. CFLAGS= -O -DCURSES -DBSD
  23. LDFLAGS=
  24. LINTFLAGS= -bxah -Dlint -DCURSES -DBSD
  25. LIBES= -lcurses -ltermlib
  26. OTHERLIBS=
  27. # Use some variant of this one if you #define MMDF in config.h
  28. #OTHERLIBS=/usr/src/mmdf/lib/libmmdf.a
  29.  
  30. mush: $(OBJS)
  31.     @echo loading...
  32.     @cc $(LDFLAGS) $(OBJS) $(LIBES) $(OTHERLIBS) -o mush
  33.  
  34. $(OBJS): config.h mush.h
  35. loop.o: version.h
  36.  
  37. tape:
  38.     @tar cv $(MAKES) $(HDRS) $(SRCS) $(HELP_FILES)
  39.  
  40. tar:
  41.     @tar fcv MUSH $(MAKES) $(HDRS) $(SRCS) $(HELP_FILES)
  42.  
  43. tarmail:
  44.     tar fcv - $(MAKES) $(HDRS) $(SRCS) $(HELP_FILES) | \
  45.     compress | btoa > mush.tarmail
  46.  
  47. lint:
  48.     lint $(LINTFLAGS) $(SRCS)
  49.  
  50. clean:
  51.     rm -f *.o core mush
  52.  
  53. BINDIR= /usr/local/bin
  54. LIBDIR= /usr/local/lib
  55. MRCDIR= /usr/lib
  56. MANDIR= /usr/local/man/man1
  57. MANEXT= 1
  58.  
  59. install: mush
  60.     mv mush $(BINDIR)
  61.     strip $(BINDIR)/mush
  62.     chmod 0755 $(BINDIR)/mush
  63.     cp mush.1 $(MANDIR)/mush.$(MANEXT)
  64.     chmod 0644 $(MANDIR)/mush.$(MANEXT)
  65.     cp cmd_help $(LIBDIR)
  66.     chmod 0644 $(LIBDIR)/cmd_help
  67.     cp Mushrc $(MRCDIR)/Mushrc
  68.     chmod 0644 $(MRCDIR)/Mushrc
  69.