home *** CD-ROM | disk | FTP | other *** search
/ ftp.freefriends.org / ftp.freefriends.org.tar / ftp.freefriends.org / arnold / Source / mush.rstevens.tar.gz / mush.tar / makefile.sun < prev    next >
Makefile  |  1992-10-30  |  3KB  |  73 lines

  1. # makefile.sun    (c) copyright 1986    (Dan Heller)
  2. #
  3. # Note that the default SunOS version for mush is 4.1.  If you have an
  4. # older version of SunOS, you must explicitly define SUN_3_5 or SUN_4_0.
  5. #
  6. HDRS= mush.h config.h-dist strings.h bindings.h options.h version.h glob.h pop.h
  7.  
  8. SRCS= addrs.c bind.c commands.c curs_io.c curses.c dates.c doproc.c \
  9.       execute.c expr.c file.c fkeys.c folders.c glob.c hdrs.c init.c lock.c \
  10.       loop.c macros.c mail.c main.c malloc.c misc.c misc_frame.c msgs.c \
  11.       options.c panels.c pick.c print.c hdr_sw.c setopts.c signals.c sort.c \
  12.       strings.c tool.c tooledit.c viewopts.c command2.c pop.c pmush.c xcreat.c
  13.  
  14. OBJS= addrs.o bind.o commands.o curs_io.o curses.o dates.o doproc.o \
  15.       execute.o expr.o file.o fkeys.o folders.o glob.o hdrs.o init.o lock.o \
  16.       loop.o macros.o mail.o main.o malloc.o misc.o misc_frame.o msgs.o \
  17.       options.o panels.o pick.o print.o hdr_sw.o setopts.o signals.o sort.o \
  18.       strings.o tool.o tooledit.o viewopts.o command2.o pop.o pmush.o xcreat.o
  19.  
  20. IMAGES= mail.icon.1 mail.icon.2
  21.  
  22. HELP_FILES= README README-7.0 README-7.1 README-7.2.0 README-7.2.2 \
  23.             README-7.2.4 mush.1 cmd_help tool_help Mushrc Mailrc Gnurc \
  24.         advanced.mushrc sample.mushrc digestify
  25.  
  26. MAKES= makefile.sun makefile.bsd makefile.sys.v makefile.xenix makefile.hpux
  27.  
  28. # If your SunOS version is 3.5, add -DSUN_3_5 to CFLAGS.
  29. # If your SunOS version is 4.0, add -DSUN_4_0 to CFLAGS.
  30. # If you are not using SUNTOOL, use makefile.bsd and add one of
  31. #    -DSUN_3_5, -DSUN_4_0, or -DSUN_4_1 to CFLAGS there.
  32. CFLAGS= -O -DSUNTOOL -DCURSES -DBSD
  33. LDFLAGS=
  34. LIBS= -lcurses -ltermlib -lsuntool -lsunwindow -lpixrect
  35. OTHERLIBS=
  36. # Use some variant of this one if you #define MMDF in config.h
  37. #OTHERLIBS=/usr/src/mmdf/lib/libmmdf.a
  38. LINTFLAGS= -bxah -Dlint
  39.  
  40. mush: $(OBJS)
  41.     @echo loading...
  42.     @cc $(LDFLAGS) $(OBJS) $(LIBS) $(OTHERLIBS) -o mush
  43.  
  44. $(OBJS): config.h mush.h
  45. loop.o: version.h
  46.  
  47. lint:
  48.     lint $(LINTFLAGS) $(SRCS) -DSUNTOOL -DCURSES -DBSD
  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.     rm -f $(BINDIR)/mushtool
  64.     ln -s $(BINDIR)/mush $(BINDIR)/mushtool
  65.     cp mush.1 $(MANDIR)/mush.$(MANEXT)
  66.     chmod 0644 $(MANDIR)/mush.$(MANEXT)
  67.     cp tool_help $(LIBDIR)
  68.     chmod 0644 $(LIBDIR)/tool_help
  69.     cp cmd_help $(LIBDIR)
  70.     chmod 0644 $(LIBDIR)/cmd_help
  71.     cp Mushrc $(MRCDIR)/Mushrc
  72.     chmod 0644 $(MRCDIR)/Mushrc
  73.