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]
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>
29 PROG
= finger rdate ruptime rwho whois
33 SUBDIRS
= chat dns-sd ftp netstat \
34 pppd pppdump pppstats talk telnet tftp
38 include ..
/..
/Makefile.cmd
39 include ..
/Makefile.cmd-inet
41 CLOBBERFILES
+= $(ALL
)
44 install:= TARGET
= install
46 clobber:= TARGET
= clobber
48 CPPFLAGS
+= -DSYSV
-DSTRNET
-DBSD_COMP
-I
$(CMDINETCOMMONDIR
)
49 CERRWARN
+= -Wno-parentheses
50 CERRWARN
+= -Wno-uninitialized
51 CERRWARN
+= -Wno-unused-function
53 # Enable large file support for reading the lastlog file.
54 finger
:= CPPFLAGS
+= -D_FILE_OFFSET_BITS
=64
56 finger
:= LDLIBS
+= -lncurses
60 all: $(ALL
) $(SUBDIRS
)
62 install: all .WAIT
$(ROOTPROG
) $(SUBDIRS
)
65 @cd
$@
; pwd
; $(MAKE
) $(MFLAGS
) $(TARGET
)
69 clean: $(SUBDIRS
) clean_local
73 clobber: $(SUBDIRS
) clobber_local
74 clobber_local
: clean_local