home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume18 / mush6.4 / part02 / makefile.bsd < prev    next >
Encoding:
Makefile  |  1989-03-12  |  1.3 KB  |  44 lines

  1. # makefile.bsd    (c) copyright 1986    (Dan Heller)
  2. # sunOS-4.0 users should add -DSIGRET=void to the CFLAGS line below.
  3. #
  4. HDRS= mush.h config.h-dist strings.h bindings.h options.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 help.c viewopts.c curses.c curs_io.c bind.c file.c strings.c \
  9.       lock.c macros.c options.c addrs.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 help.o viewopts.o curses.o curs_io.o bind.o \
  13.       lock.o macros.o options.o addrs.o
  14.  
  15. HELP_FILES= README README-6.0 README-6.1 README-6.2 README-6.3 README-6.4 \
  16.     mush.1 Mailrc Gnurc cmd_help sample.mushrc advanced.mushrc
  17.  
  18. MAKES= makefile.bsd makefile.xenix makefile.sys.v
  19.  
  20. CFLAGS= -O -DCURSES -DBSD
  21. LDFLAGS= -s
  22. LINTFLAGS= -bxah -Dlint -DCURSES -DBSD
  23. LIBES= -lcurses -ltermlib
  24.  
  25. mush: $(OBJS)
  26.     @echo loading...
  27.     @cc $(LDFLAGS) $(OBJS) $(LIBES) -o mush
  28.  
  29. tape:
  30.     @tar cv $(MAKES) $(HDRS) $(SRCS) $(HELP_FILES)
  31.  
  32. tar:
  33.     @tar fcv MUSH $(MAKES) $(HDRS) $(SRCS) $(HELP_FILES)
  34.  
  35. tarmail:
  36.     tar fcv - $(MAKES) $(HDRS) $(SRCS) $(HELP_FILES) | \
  37.     compress | btoa > mush.tarmail
  38.  
  39. lint:
  40.     lint $(LINTFLAGS) $(SRCS)
  41.  
  42. clean:
  43.     rm -f *.o core mush
  44.