83 lines
2.5 KiB
Text
83 lines
2.5 KiB
Text
$NetBSD: patch-ag,v 1.3 2006/01/08 17:04:58 joerg Exp $
|
|
|
|
*** /dev/null Fri Sep 4 13:38:54 1998
|
|
--- makefile.netbsd Fri Sep 4 13:36:36 1998
|
|
***************
|
|
*** 0 ****
|
|
--- 1,76 ----
|
|
+ # makefile.netbsd
|
|
+ #
|
|
+ HDRS= mush.h config.h-dist strings.h bindings.h options.h version.h glob.h pop.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 command2.c \
|
|
+ pop.c pmush.c xcreat.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 command2.o \
|
|
+ pop.o pmush.o xcreat.o
|
|
+
|
|
+ HELP_FILES= README README-7.0 README-7.1 README-7.2.0 README-7.2.2 \
|
|
+ README-7.2.4 mush.1 cmd_help Mushrc Mailrc Gnurc \
|
|
+ sample.mushrc advanced.mushrc digestify
|
|
+
|
|
+ MAKES= makefile.bsdi makefile.bsd makefile.xenix makefile.sys.v makefile.hpux makefile.sun makefile.solaris makefile.freebsd
|
|
+
|
|
+ CFLAGS= -O2 -DPOSIX -DCURSES -DBSD -DBSD44 -DSIGRET=void -DBASENAME -DENV_MAIL -DMSGS_DYNAMIC
|
|
+ LDFLAGS=
|
|
+ LINTFLAGS= -bxah -Dlint -DCURSES -DBSD
|
|
+ LIBS= -lcurses -ltermlib
|
|
+ OTHERLIBS=
|
|
+ # Use some variant of this one if you #define MMDF in config.h
|
|
+ #OTHERLIBS=/usr/src/mmdf/lib/libmmdf.a
|
|
+
|
|
+ all: mush
|
|
+
|
|
+ mush: $(OBJS)
|
|
+ @echo loading...
|
|
+ @$(CC) $(LDFLAGS) $(OBJS) $(LIBS) $(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= @PREFIX@/bin
|
|
+ LIBDIR= @PREFIX@/share/misc
|
|
+ MRCDIR= @PREFIX@/share/misc
|
|
+ MANDIR= @MANDIR@/man1
|
|
+ MANEXT= 1
|
|
+
|
|
+ install: mush
|
|
+ cp mush $(BINDIR)
|
|
+ strip $(BINDIR)/mush
|
|
+ chmod 0755 $(BINDIR)/mush
|
|
+ cp cmd_help $(LIBDIR)
|
|
+ chmod 0644 $(LIBDIR)/cmd_help
|
|
+ cp Mushrc $(MRCDIR)/Mushrc
|
|
+ chmod 0644 $(MRCDIR)/Mushrc
|
|
+ cp mush.1 $(MANDIR)/mush.$(MANEXT)
|
|
+ chmod 0644 $(MANDIR)/mush.$(MANEXT)
|
|
+
|
|
+
|
|
+ glob: glob.c
|
|
+ $(CC) $(CFLAGS) -DTEST -DTEST2 glob.c $(LIBS) $(OTHERLIBS) -o glob
|
|
+
|
|
+
|