19512fe8ahl#
29512fe8ahl# CDDL HEADER START
39512fe8ahl#
49512fe8ahl# The contents of this file are subject to the terms of the
59512fe8ahl# Common Development and Distribution License (the "License").
69512fe8ahl# You may not use this file except in compliance with the License.
79512fe8ahl#
89512fe8ahl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99512fe8ahl# or http://www.opensolaris.org/os/licensing.
109512fe8ahl# See the License for the specific language governing permissions
119512fe8ahl# and limitations under the License.
129512fe8ahl#
139512fe8ahl# When distributing Covered Code, include this CDDL HEADER in each
149512fe8ahl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159512fe8ahl# If applicable, add the following below this CDDL HEADER, with the
169512fe8ahl# fields enclosed by brackets "[]" replaced with your own identifying
179512fe8ahl# information: Portions Copyright [yyyy] [name of copyright owner]
189512fe8ahl#
199512fe8ahl# CDDL HEADER END
209512fe8ahl#
219512fe8ahl
229512fe8ahl#
2373427c5ahl# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
249512fe8ahl# Use is subject to license terms.
259512fe8ahl#
265661bb7John Levon# Copyright (c) 2018, Joyent, Inc.
279512fe8ahl
2873427c5ahlinclude $(SRC)/cmd/Makefile.cmd
299512fe8ahl
309512fe8ahl.KEEP_STATE:
319512fe8ahl
329512fe8ahlROOTOPTPKG = $(ROOT)/opt/SUNWdtrt
339512fe8ahlROOTBIN = $(ROOTOPTPKG)/bin
349512fe8ahl
3524da5b3rieLDFLAGS += $(ZNODEFS) $(ZTEXTOFF)
36e642872qiaoLDLIBS = $(LDLIBS.cmd)
379512fe8ahl
389512fe8ahlSRCS = badioctl
399512fe8ahlCMDS = $(SRCS:%=$(ROOTBIN)/%)
409512fe8ahl
417014882Richard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration
427014882Richard LoweCERRWARN += -_gcc=-Wno-unused-variable
437014882Richard Lowe
445661bb7John Levon# not linted
455661bb7John LevonSMATCH=off
465661bb7John Levon
479512fe8ahl$(CMDS) := FILEMODE = 0555
489512fe8ahl
499512fe8ahlall: $(SRCS)
509512fe8ahl
519512fe8ahlinstall: $(CMDS)
529512fe8ahl
539512fe8ahlclean lint:
549512fe8ahl
559512fe8ahlclobber:
569512fe8ahl	$(RM) $(SRCS)
579512fe8ahl
589512fe8ahl$(CMDS): $(ROOTBIN) $(SRCS)
599512fe8ahl
609512fe8ahl$(ROOTBIN):
619512fe8ahl	$(INS.dir)
629512fe8ahl
639512fe8ahl$(ROOTBIN)/%: %
649512fe8ahl	$(INS.file)
65