Merge illumos-gate
[unleashed.git] / usr / src / cmd / cmd-inet / usr.bin / Makefile
blobd0ed16dbfed25b9841221b2e4de0e47d89199775
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 2011 Nexenta Systems, Inc. All rights reserved.
26 # Copyright 2016 Toomas Soome <tsoome@me.com>
27 # Copyright (c) 2018, Joyent, Inc.
30 PROG= finger rdate ruptime rwho whois
31 ALL= $(PROG)
32 SRCS= $(ALL:%=%.c)
34 SUBDIRS= chat dns-sd ftp netstat \
35 pppd pppdump pppstats talk telnet tftp
36 SUBDIR1= talk
37 MSGSUBDIRS= talk
39 include ../../Makefile.cmd
40 include ../Makefile.cmd-inet
42 CLOBBERFILES += $(ALL)
44 all:= TARGET= all
45 install:= TARGET= install
46 clean:= TARGET= clean
47 clobber:= TARGET= clobber
49 CPPFLAGS += -DSYSV -DSTRNET -DBSD_COMP -I$(CMDINETCOMMONDIR)
50 CERRWARN += -Wno-parentheses
51 CERRWARN += -Wno-uninitialized
52 CERRWARN += -Wno-unused-function
54 ruptime := SMOFF += leaks
56 finger := LDLIBS += -lncurses
58 .KEEP_STATE:
60 all: $(ALL) $(SUBDIRS)
62 install: all .WAIT $(ROOTPROG) $(SUBDIRS)
64 $(SUBDIRS): FRC
65 @cd $@; pwd; $(MAKE) $(MFLAGS) $(TARGET)
67 FRC:
69 clean: $(SUBDIRS) clean_local
70 clean_local:
71 $(RM) $(CLEANFILES)
73 clobber: $(SUBDIRS) clobber_local
74 clobber_local: clean_local
75 $(RM) $(CLOBBERFILES)