dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / cmd-inet / usr.bin / Makefile
blob7ec169fd59b862f2483e8f0f89844663cde210ed
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>
29 PROG= finger rdate ruptime rwho whois
30 ALL= $(PROG)
31 SRCS= $(ALL:%=%.c)
33 SUBDIRS= chat dns-sd ftp netstat \
34 pppd pppdump pppstats talk telnet tftp
35 SUBDIR1= talk
36 MSGSUBDIRS= talk
38 include ../../Makefile.cmd
39 include ../Makefile.cmd-inet
41 CLOBBERFILES += $(ALL)
43 all:= TARGET= all
44 install:= TARGET= install
45 clean:= TARGET= clean
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
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)