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.xenix < prev    next >
Makefile  |  1992-10-30  |  2KB  |  76 lines

  1. #
  2. # makefile for Xenix machines.  See "MODEL" below for your xenix type.
  3. # some .c files may require the -LARGE compiler flag.  Examples below.
  4. # This makefile assumes an 80386 machine.  If you have an 80286, see
  5. # notes below.  This makefile was built for SCO/microsoft xenix --if you
  6. # are running some other kind of xenix, you might need to change the
  7. # CFLAGS and LDFLAGS options.
  8. #
  9. HDRS= mush.h config.h-dist strings.h bindings.h options.h version.h glob.h pop.h
  10. SRCS1= main.c init.c misc.c execute.c
  11. SRCS2= signals.c msgs.c pick.c viewopts.c
  12. SRCS3= sort.c expr.c folders.c dates.c
  13. SRCS4= loop.c bind.c options.c
  14. SRCS5= commands.c commands2.c setopts.c hdrs.c
  15. SRCS6= mail.c print.c
  16. SRCS7= curses.c curs_io.c
  17. SRCS8= file.c strings.c malloc.c
  18. SRCS9= lock.c macros.c addrs.c glob.c pop.c pmush.c xcreat.c
  19. OBJS= main.o init.o misc.o mail.o hdrs.o execute.o commands.o print.o file.o \
  20.       signals.o setopts.o msgs.o pick.o sort.o expr.o strings.o \
  21.       folders.o dates.o loop.o viewopts.o bind.o curses.o curs_io.o \
  22.       lock.o macros.o options.o addrs.o malloc.o glob.o command2.o \
  23.       pop.o pmush.o xcreat.o
  24. HELP_FILES= README README-7.0 README-7.1 README-7.2.0 README-7.2.2 \
  25.     README-7.2.4 mush.1 cmd_help Mushrc Mailrc Gnurc \
  26.     sample.mushrc advanced.mushrc digestify
  27.  
  28. # Memory model.  Use -M3e for 80386 machines.
  29. # Use -M2le -Mt32 -LARGE for 80286 machines.
  30. MODEL= -M3e
  31.  
  32. #
  33. # 80286 xenix may use this LDFLAGS define:
  34. #LDFLAGS= -X -lx -M2le -Mt32 -F 8000 -SEG 256 -LARGE
  35. LDFLAGS= -X -lx -M3
  36.  
  37. CFLAGS= $(MODEL) -O -DSYSV -DCURSES -DREGCMP -DUSG 
  38. LIBS= -lcurses -ltermlib
  39. OTHERLIBS=
  40. # Use some variant of this one if you #define MMDF in config.h
  41. #OTHERLIBS=/usr/src/mmdf/lib/libmmdf.a
  42.  
  43. mush: $(OBJS)
  44.     @echo loading...
  45.     @cc $(LDFLAGS) $(OBJS) $(LIBS) $(OTHERLIBS) -o mush
  46.  
  47. $(OBJS): config.h mush.h
  48. loop.o: version.h
  49.  
  50. # For 80286 machines, use these two lines...
  51. # misc.o:    misc.c
  52. #     cc $(CFLAGS) -LARGE -c misc.c
  53.  
  54. bind.o:    bind.c
  55.     cc $(CFLAGS) -LARGE -c bind.c
  56.  
  57. clean:
  58.     rm -f *.o core mush
  59.  
  60. BINDIR= /usr/local/bin
  61. LIBDIR= /usr/local/lib
  62. MRCDIR= /usr/lib
  63. MANDIR= /usr/local/man/man1
  64. MANEXT= 1
  65.  
  66. install: mush
  67.     cp mush $(BINDIR)
  68.     strip $(BINDIR)/mush
  69.     chmod 0755 $(BINDIR)/mush
  70.     cp mush.1 $(MANDIR)/mush.$(MANEXT)
  71.     chmod 0644 $(MANDIR)/mush.$(MANEXT)
  72.     cp cmd_help $(LIBDIR)
  73.     chmod 0644 $(LIBDIR)/cmd_help
  74.     cp Mushrc $(MRCDIR)/Mushrc
  75.     chmod 0644 $(MRCDIR)/Mushrc
  76.