Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
486N/A#
486N/A# CDDL HEADER START
486N/A#
486N/A# The contents of this file are subject to the terms of the
486N/A# Common Development and Distribution License (the "License").
486N/A# You may not use this file except in compliance with the License.
486N/A#
486N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
486N/A# or http://www.opensolaris.org/os/licensing.
486N/A# See the License for the specific language governing permissions
486N/A# and limitations under the License.
486N/A#
486N/A# When distributing Covered Code, include this CDDL HEADER in each
486N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
486N/A# If applicable, add the following below this CDDL HEADER, with the
486N/A# fields enclosed by brackets "[]" replaced with your own identifying
486N/A# information: Portions Copyright [yyyy] [name of copyright owner]
486N/A#
486N/A# CDDL HEADER END
873N/A#
486N/A#
486N/A#
486N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
486N/A# Use is subject to license terms.
486N/A#
830N/A
486N/A
486N/ABINPROG= mail
619N/A
619N/APROG= $(BINPROG)
619N/A
619N/AGREP= grep
619N/A
619N/Ainclude ../Makefile.cmd
619N/A
619N/ACLOBBERFILES= $(PROG)
619N/ACLEANFILES= $(MAILOBJS)
619N/A
619N/AMAILOBJS= add_recip.o cat.o ckdlivopts.o \
619N/A cksaved.o clr_hinfo.o copyback.o copylet.o \
619N/A copymt.o createmf.o del_recipl.o Dout.o delete.o \
619N/A done.o doopen.o dumpaff.o dumprcv.o \
619N/A errmsg.o gendeliv.o getarg.o getcomment.o \
486N/A gethead.o goback.o init.o \
486N/A isheader.o isit.o islocal.o istext.o legal.o \
486N/A lock.o main.o mkdead.o mta_ercode.o \
486N/A new_recipl.o parse.o pckaffspot.o pckrcvspot.o \
486N/A pickFrom.o pipletr.o poplist.o printhdr.o printmail.o \
486N/A pushlist.o savehdrs.o sel_disp.o sendlist.o \
619N/A sendmail.o setsig.o \
486N/A stamp.o Tout.o
619N/A
619N/AMAILSRC= $(MAILOBJS:%.o=%.c)
486N/A
486N/ACPROG= mail
619N/ACPROGSRC= $(CPROG:%=_%.c)
619N/A
619N/A# ROOT directories
619N/AROOTMAILD= $(ROOTLIB)/mail
619N/AROOTINC= $(ROOT)/usr/include
619N/A
619N/A# installed modules
619N/AROOTBINPROG= $(BINPROG:%=$(ROOTBIN)/%)
486N/A
486N/AROOTSYMLINKS= $(ROOTBIN)/rmail
619N/A
486N/A
486N/AEDITPATH= \
486N/A sed -e 's!REAL_PATH!/usr/bin!g' \
486N/A -e 's!USR_SHARE_LIB!/usr/share/lib!g' \
486N/A -e 's!VAR_MAIL!/var/mail!g' < $? > $@
486N/A
486N/ACPPFLAGS = -DSVR4 -I. $(CPPFLAGS.master)
486N/A
486N/ALDLIBS += -lmail -lsocket
486N/A
486N/A# mail defines its own delete() - reduce symbols to locals to remove name clash.
486N/ALDFLAGS += $(MAPFILE.NGB:%=-M%)
486N/A
486N/A# conditional assignments
486N/A#
486N/Aall:= TARGET= all
486N/Ainstall:= TARGET= install
486N/Aclean:= TARGET= clean
486N/Aclobber:= TARGET= clobber
486N/Alint:= TARGET= lint
486N/A
486N/A# file modes, owners and groups for the install target
486N/A#
486N/A
486N/A
486N/A$(ROOTBIN)/mail := FILEMODE = 02511
486N/A
486N/A
486N/A# install rules
486N/A$(ROOTINC)/% : %
486N/A $(INS.file)
486N/A
486N/A.KEEP_STATE:
486N/A
486N/A.PARALLEL: $(MAILOBJS) $(OBJS)
536N/A
536N/Aall: $(PROG)
536N/A
536N/Amail: $(MAILOBJS)
1181N/A $(LINK.c) -o $@ $(MAILOBJS) $(LDLIBS)
1181N/A $(POST_PROCESS)
1181N/A
1181N/Ainstall: all .WAIT $(ROOTBINPROG) $(ROOTSYMLINKS)
1181N/A
1181N/A# ROOTSYMLINKS
1181N/A#
1181N/A$(ROOTBIN)/rmail:
1181N/A $(RM) $@; $(SYMLINK) mail $@
1181N/A
1181N/Alint:
1181N/A $(LINT.c) $(MAILSRC)
1181N/A
1181N/Aclean:
1181N/A $(RM) $(OBJS) $(MAILOBJS)
1181N/A
1181N/Aclobber:
1181N/A $(RM) $(OBJS) $(MAILOBJS) mail
1181N/A