home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-05-02 | 2.0 KB | 69 lines |
- # makefile.bsd (c) copyright 1986 (Dan Heller)
- # SunOS users should add -DSUN_3_5 or -DSUN_4_0 to the CFLAGS line below.
- #
- HDRS= mush.h config.h-dist strings.h bindings.h options.h version.h glob.h
-
- SRCS= main.c init.c misc.c mail.c hdrs.c execute.c commands.c print.c dates.c \
- signals.c setopts.c msgs.c pick.c sort.c expr.c folders.c \
- loop.c viewopts.c curses.c curs_io.c bind.c file.c strings.c \
- lock.c macros.c options.c addrs.c malloc.c glob.c
- OBJS= main.o init.o misc.o mail.o hdrs.o execute.o commands.o print.o file.o \
- signals.o setopts.o msgs.o pick.o sort.o expr.o strings.o \
- folders.o dates.o loop.o viewopts.o curses.o curs_io.o bind.o \
- lock.o macros.o options.o addrs.o malloc.o glob.o
-
- HELP_FILES= README README-7.0 README-7.1 mush.1 cmd_help \
- Mushrc Mailrc Gnurc sample.mushrc advanced.mushrc digestify
-
- MAKES= makefile.bsd makefile.xenix makefile.sys.v makefile.hpux makefile.sun
-
- # See the README for changes needed to compile under Ultrix.
- # In particular, you may need -DSIGRET=void and/or -ltermcap.
- CFLAGS= -O -DCURSES -DBSD
- LDFLAGS=
- LINTFLAGS= -bxah -Dlint -DCURSES -DBSD
- LIBES= -lcurses -ltermlib
- OTHERLIBS=
- # Use some variant of this one if you #define MMDF in config.h
- #OTHERLIBS=/usr/src/mmdf/lib/libmmdf.a
-
- mush: $(OBJS)
- @echo loading...
- @cc $(LDFLAGS) $(OBJS) $(LIBES) $(OTHERLIBS) -o mush
-
- $(OBJS): config.h mush.h
- loop.o: version.h
-
- tape:
- @tar cv $(MAKES) $(HDRS) $(SRCS) $(HELP_FILES)
-
- tar:
- @tar fcv MUSH $(MAKES) $(HDRS) $(SRCS) $(HELP_FILES)
-
- tarmail:
- tar fcv - $(MAKES) $(HDRS) $(SRCS) $(HELP_FILES) | \
- compress | btoa > mush.tarmail
-
- lint:
- lint $(LINTFLAGS) $(SRCS)
-
- clean:
- rm -f *.o core mush
-
- BINDIR= /usr/local/bin
- LIBDIR= /usr/local/lib
- MRCDIR= /usr/lib
- MANDIR= /usr/local/man/man1
- MANEXT= 1
-
- install: mush
- mv mush $(BINDIR)
- strip $(BINDIR)/mush
- chmod 0755 $(BINDIR)/mush
- cp mush.1 $(MANDIR)/mush.$(MANEXT)
- chmod 0644 $(MANDIR)/mush.$(MANEXT)
- cp cmd_help $(LIBDIR)
- chmod 0644 $(LIBDIR)/cmd_help
- cp Mushrc $(MRCDIR)/Mushrc
- chmod 0644 $(MRCDIR)/Mushrc
-