Makefile revision 196c7f05d2deba7404e90ad67f3861185c78ca2d
250N/A#
250N/A# CDDL HEADER START
250N/A#
250N/A# The contents of this file are subject to the terms of the
250N/A# Common Development and Distribution License (the "License").
250N/A# You may not use this file except in compliance with the License.
250N/A#
250N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
250N/A# or http://www.opensolaris.org/os/licensing.
250N/A# See the License for the specific language governing permissions
250N/A# and limitations under the License.
250N/A#
250N/A# When distributing Covered Code, include this CDDL HEADER in each
250N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
250N/A# If applicable, add the following below this CDDL HEADER, with the
250N/A# fields enclosed by brackets "[]" replaced with your own identifying
250N/A# information: Portions Copyright [yyyy] [name of copyright owner]
250N/A#
250N/A# CDDL HEADER END
250N/A#
3817N/A#
250N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
250N/A# Use is subject to license terms.
250N/A#
250N/A# Copyright 2014 Joyent, Inc.
250N/A#
250N/A# cmd/mailx/Makefile
618N/A
250N/APROG= mailx
844N/A
844N/AOBJS= myfopen.o aux.o cmd1.o cmd2.o cmd3.o \
250N/A cmd4.o cmdtab.o collect.o config.o edit.o \
1258N/A init.o fio.o getname.o head.o \
250N/A hostname.o lex.o list.o lock.o lpaths.o \
2899N/A main.o names.o optim.o popen.o quit.o \
2899N/A receipt.o send.o sigretro.o stralloc.o temp.o \
3817N/A translate.o tty.o usg.local.o vars.o
3817N/A
3817N/ASRCS= $(OBJS:.o=.c)
250N/A
250N/AMISC= misc
250N/A
250N/Ainclude ../Makefile.cmd
250N/A#
250N/A# for messaging catalogue file
250N/A#
250N/APOFILE= mailx.po
250N/APOFILES= $(SRCS:%.c=%.po)
250N/A
250N/AROOTMAILXD= $(ROOTSHLIB)/mailx
250N/AROOTETCMAILD= $(ROOTETC)/mail
250N/AMAILXHELP= mailx.help mailx.help.~
250N/AROOTMAILXHELP= $(MAILXHELP:%=$(ROOTMAILXD)/%)
250N/AMAILXRC= $(MISC)/mailx.rc
250N/AUCBMAILRC= $(MISC)/Mail.rc
250N/AROOTMAILXRC= $(MAILXRC:$(MISC)/%=$(ROOTETCMAILD)/%)
250N/AROOTUCBMAILRC= $(UCBMAILRC:$(MISC)/%=$(ROOTETCMAILD)/%)
250N/AROOTUCBMAIL= $(ROOT)/usr/ucb/mail
250N/AROOTUCBCAPMAIL= $(ROOT)/usr/ucb/Mail
250N/A
250N/A$(ROOTPROG) := FILEMODE = 02511
250N/A$(ROOTMAILXHELP) := FILEMODE = 0644
250N/A$(ROOTMAILXRC) := FILEMODE = 0644
250N/A$(ROOTUCBMAILRC) := FILEMODE = 0644
250N/A
250N/ACPPFLAGS= -Ihdr -DUSG -DOPTIM $(CPPFLAGS.master)
250N/ACERRWARN += -_gcc=-Wno-parentheses
250N/ACERRWARN += -_gcc=-Wno-uninitialized
250N/ACERRWARN += -_gcc=-Wno-unused-variable
250N/ACERRWARN += -_gcc=-Wno-clobbered
250N/ALINTFLAGS= -hb
1938N/ALDLIBS += -lmail -lcmdutils
1938N/ALDFLAGS += $(MAPFILE.NGB:%=-M%)
3477N/A
3477N/ACLOBBERFILES += $(MAILXHELP)
250N/A
250N/A# install rules
250N/A$(ROOTMAILXD)/% : %
250N/A $(INS.file)
250N/A
250N/A$(ROOTETCMAILD)/% : $(MISC)/%
250N/A $(INS.file)
3817N/A
3817N/A.KEEP_STATE:
all: $(PROG) $(MAILXHELP) $(MAILXRC) $(UCBMAILRC)
$(PROG): $(OBJS) $(LIBMAIL)
$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
install: all $(ROOTMAILXD) $(ROOTPROG) $(ROOTMAILXHELP) \
$(ROOTMAILXRC) $(ROOTUCBMAIL) $(ROOTUCBCAPMAIL) $(ROOTUCBMAILRC)
$(ROOTUCBMAIL) $(ROOTUCBCAPMAIL):
$(RM) $@; $(SYMLINK) ../bin/mailx $@
$(ROOTMAILXD):
$(INS.dir)
$(MAILXHELP): $(MISC)/$$@
$(GREP) -v '^#.*@(' $(MISC)/$@ > $@
$(POFILE): $(POFILES)
$(RM) $@
cat $(POFILES) > $@
clean:
$(RM) $(OBJS)
lint: lint_SRCS
include ../Makefile.targ
FRC: