# Sccs Id = "@(#)Makefile.11 1.3 %G%";
# If you are compiling this for a nonseparate I/D machine,
# change the definitions of LDFLAGS, CFLAGS, LIBES,
# SIGRETROSRC, and SIGRETROOBJ
# make Mail40 rather than Mail
# Mail is too large to fit on a nonseparate I/D machine without
# If you do not have a vfork system call or do not support
# job control, you must change the definition of OPTIONS.
OPTIONS= -DV7 -DVMUNIX # vfork and job control
#OPTIONS= -DV7 # no vfork or no job control
LDFLAGS= -i # for separate I/D machines
#LDFLAGS= -n # for nonseparate I/D machines
CFLAGS= -O ${OPTIONS} ${INCLUDES} # for separate I/D machines
#CFLAGS= -O -V ${OPTIONS} ${INCLUDES} # for nonseparate I/D machines
LIBES= -ljobs -lc # for separate I/D machines
#LIBES= -lovjobs -lovc # for nonseparate I/D machines
SIGRETROSRC= # for those with job control
SIGRETROOBJ= # for those with job control
#SIGRETROSRC= sigretro.c # for those without job control
#SIGRETROOBJ= sigretro.o # for those without job control
OBJS=aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o config.o edit.o fio.o \
getname.o head.o v7.local.o lock.o lex.o list.o main.o \
names.o optim.o popen.o quit.o send.o strings.o temp.o tty.o \
vars.o version.o errlst.o str.o ${SIGRETROOBJ}
SRCS=aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c config.c edit.c fio.c \
getname.c head.c v7.local.c lock.c lex.c list.c main.c \
names.c optim.c popen.c quit.c send.c strings.c temp.c tty.c vars.c \
errlst.c version.c ${SIGRETROSRC}
HDRS=rcv.h configdefs.h def.h glob.h v7.local.h local.h
# Special massaging of C files for sharing of strings
${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
@${CC} ${LDFLAGS} -o Mail ${OBJS} ${LIBES}
@ld -X /lib/crt0.o ${LDFLAGS} -o Mail \
-Z getname.o names.o optim.o popen.o send.o strings.o temp.o \
-Z edit.o head.o lex.o list.o lock.o main.o quit.o tty.o \
-Z cmd1.o cmd2.o cmd3.o collect.o ${SIGRETROOBJ} \
-L aux.o cmdtab.o config.o errlst.o fio.o \
install -s Mail ${DESTDIR}/usr/ucb
cp misc/Mail.help* ${DESTDIR}/usr/lib
cd ${DESTDIR}/usr/ucb; rm -f mail; ln Mail mail
rm -f Mail a.out fmt x.c xs.c core
$(CC) fmt.c head.c -O -o fmt
$(CC) -c $(CFLAGS) config.c
$(CC) -c $(CFLAGS) cmdtab.c
${CC} -E ${CFLAGS} errlst.c | ${XSTR} -c -
@wc rcv.h def.h glob.h local.h v7.local.h $(SRCS)
@grep -c \; rcv.h def.h glob.h local.h v7.local.h $(SRCS)