xref: /illumos-gate/usr/src/cmd/scsi/sestopo/Makefile.com (revision d17be682a2c70b4505d43c830bbd2603da11918d)
1275c9da8Seschrock#
2275c9da8Seschrock# CDDL HEADER START
3275c9da8Seschrock#
4275c9da8Seschrock# The contents of this file are subject to the terms of the
5275c9da8Seschrock# Common Development and Distribution License (the "License").
6275c9da8Seschrock# You may not use this file except in compliance with the License.
7275c9da8Seschrock#
8275c9da8Seschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9275c9da8Seschrock# or http://www.opensolaris.org/os/licensing.
10275c9da8Seschrock# See the License for the specific language governing permissions
11275c9da8Seschrock# and limitations under the License.
12275c9da8Seschrock#
13275c9da8Seschrock# When distributing Covered Code, include this CDDL HEADER in each
14275c9da8Seschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15275c9da8Seschrock# If applicable, add the following below this CDDL HEADER, with the
16275c9da8Seschrock# fields enclosed by brackets "[]" replaced with your own identifying
17275c9da8Seschrock# information: Portions Copyright [yyyy] [name of copyright owner]
18275c9da8Seschrock#
19275c9da8Seschrock# CDDL HEADER END
20275c9da8Seschrock#
21275c9da8Seschrock
22275c9da8Seschrock#
23275c9da8Seschrock# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24275c9da8Seschrock# Use is subject to license terms.
25275c9da8Seschrock#
26275c9da8Seschrock
27275c9da8Seschrock.KEEP_STATE:
28275c9da8Seschrock.SUFFIXES:
29275c9da8Seschrock
30275c9da8SeschrockPROG = sestopo
31275c9da8SeschrockSRCS = $(PROG:%=../common/%.c)
32275c9da8SeschrockOBJS = $(PROG:%=%.o)
33275c9da8Seschrock
34275c9da8Seschrockinclude ../../../Makefile.cmd
35275c9da8Seschrock
36275c9da8SeschrockROOTLIBSCSI = $(ROOT)/usr/lib/scsi
37275c9da8SeschrockROOTPROG = $(ROOTLIBSCSI)/$(PROG)
38275c9da8Seschrock
39275c9da8Seschrock$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
40275c9da8SeschrockCPPFLAGS += -I. -I../common
41*d17be682SRichard LoweCFLAGS += $(CTF_FLAGS) $(CCVERBOSE)
427014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
43275c9da8SeschrockLDLIBS += -L$(ROOT)/usr/lib/scsi -lses -lnvpair
44275c9da8SeschrockLDFLAGS += -R/usr/lib/scsi
45275c9da8Seschrock
46275c9da8Seschrockall: $(PROG)
47275c9da8Seschrock
48275c9da8Seschrock$(PROG): $(OBJS)
49275c9da8Seschrock	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
50275c9da8Seschrock	$(CTFMERGE) -L VERSION -o $@ $(OBJS)
51275c9da8Seschrock	$(POST_PROCESS)
52275c9da8Seschrock
53275c9da8Seschrock%.o: ../common/%.c
54275c9da8Seschrock	$(COMPILE.c) $<
55275c9da8Seschrock	$(CTFCONVERT_O)
56275c9da8Seschrock
57275c9da8Seschrockclean:
58275c9da8Seschrock	$(RM) $(OBJS)
59275c9da8Seschrock
60275c9da8Seschrocklint: lint_SRCS
61275c9da8Seschrock
62275c9da8Seschrock$(ROOTLIBSCSI)/%: %
63275c9da8Seschrock	$(INS.file)
64275c9da8Seschrock
65275c9da8Seschrockinstall_h:
66275c9da8Seschrock
67275c9da8Seschrockinstall: all $(ROOTPROG)
68275c9da8Seschrock
69275c9da8Seschrockinclude ../../../Makefile.targ
70