libstand: gzipfs unused variable
[unleashed.git] / usr / src / cmd / mailx / Makefile
blobae2cbc096283ffa1f6fe48ba943f74e9afdcd8a7
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # Copyright 2014 Joyent, Inc.
27 # cmd/mailx/Makefile
29 PROG= mailx
31 OBJS= myfopen.o aux.o cmd1.o cmd2.o cmd3.o \
32 cmd4.o cmdtab.o collect.o config.o edit.o \
33 init.o fio.o getname.o head.o \
34 hostname.o lex.o list.o lock.o lpaths.o \
35 main.o names.o optim.o popen.o quit.o \
36 receipt.o send.o sigretro.o stralloc.o temp.o \
37 translate.o tty.o usg.local.o vars.o
39 SRCS= $(OBJS:.o=.c)
41 MISC= misc
43 include ../Makefile.cmd
45 # for messaging catalogue file
47 POFILE= mailx.po
48 POFILES= $(SRCS:%.c=%.po)
50 ROOTMAILXD= $(ROOTSHLIB)/mailx
51 ROOTETCMAILD= $(ROOTETC)/mail
52 MAILXHELP= mailx.help mailx.help.~
53 ROOTMAILXHELP= $(MAILXHELP:%=$(ROOTMAILXD)/%)
54 MAILXRC= $(MISC)/mailx.rc
55 ROOTMAILXRC= $(MAILXRC:$(MISC)/%=$(ROOTETCMAILD)/%)
57 $(ROOTPROG) := FILEMODE = 02511
58 $(ROOTMAILXHELP) := FILEMODE = 0644
59 $(ROOTMAILXRC) := FILEMODE = 0644
61 CPPFLAGS= -Ihdr -DUSG -DOPTIM $(CPPFLAGS.master)
62 CERRWARN += -Wno-parentheses
63 CERRWARN += -Wno-uninitialized
64 CERRWARN += -Wno-unused-variable
65 CERRWARN += -Wno-clobbered
66 LDLIBS += -lmail -lcmdutils
67 LDFLAGS += $(MAPFILE.NGB:%=-Wl,-M%)
69 CLOBBERFILES += $(MAILXHELP)
71 # install rules
72 $(ROOTMAILXD)/% : %
73 $(INS.file)
75 $(ROOTETCMAILD)/% : $(MISC)/%
76 $(INS.file)
78 .KEEP_STATE:
80 all: $(PROG) $(MAILXHELP) $(MAILXRC)
82 $(PROG): $(OBJS) $(LIBMAIL)
83 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
84 $(POST_PROCESS)
86 install: all $(ROOTMAILXD) $(ROOTPROG) $(ROOTMAILXHELP) \
87 $(ROOTMAILXRC)
89 $(ROOTMAILXD):
90 $(INS.dir)
92 $(MAILXHELP): $(MISC)/$$@
93 $(GREP) -v '^#.*@(' $(MISC)/$@ > $@
95 $(POFILE): $(POFILES)
96 $(RM) $@
97 cat $(POFILES) > $@
99 clean:
100 $(RM) $(OBJS)
103 include ../Makefile.targ
105 FRC: