1*275c9da8Seschrock# 2*275c9da8Seschrock# CDDL HEADER START 3*275c9da8Seschrock# 4*275c9da8Seschrock# The contents of this file are subject to the terms of the 5*275c9da8Seschrock# Common Development and Distribution License (the "License"). 6*275c9da8Seschrock# You may not use this file except in compliance with the License. 7*275c9da8Seschrock# 8*275c9da8Seschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*275c9da8Seschrock# or http://www.opensolaris.org/os/licensing. 10*275c9da8Seschrock# See the License for the specific language governing permissions 11*275c9da8Seschrock# and limitations under the License. 12*275c9da8Seschrock# 13*275c9da8Seschrock# When distributing Covered Code, include this CDDL HEADER in each 14*275c9da8Seschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*275c9da8Seschrock# If applicable, add the following below this CDDL HEADER, with the 16*275c9da8Seschrock# fields enclosed by brackets "[]" replaced with your own identifying 17*275c9da8Seschrock# information: Portions Copyright [yyyy] [name of copyright owner] 18*275c9da8Seschrock# 19*275c9da8Seschrock# CDDL HEADER END 20*275c9da8Seschrock# 21*275c9da8Seschrock 22*275c9da8Seschrock# 23*275c9da8Seschrock# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24*275c9da8Seschrock# Use is subject to license terms. 25*275c9da8Seschrock# 26*275c9da8Seschrock#ident "%Z%%M% %I% %E% SMI" 27*275c9da8Seschrock 28*275c9da8Seschrock.KEEP_STATE: 29*275c9da8Seschrock.SUFFIXES: 30*275c9da8Seschrock 31*275c9da8SeschrockPROG = sestopo 32*275c9da8SeschrockSRCS = $(PROG:%=../common/%.c) 33*275c9da8SeschrockOBJS = $(PROG:%=%.o) 34*275c9da8Seschrock 35*275c9da8Seschrockinclude ../../../Makefile.cmd 36*275c9da8Seschrock 37*275c9da8SeschrockROOTLIBSCSI = $(ROOT)/usr/lib/scsi 38*275c9da8SeschrockROOTPROG = $(ROOTLIBSCSI)/$(PROG) 39*275c9da8Seschrock 40*275c9da8Seschrock$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 41*275c9da8SeschrockCPPFLAGS += -I. -I../common 42*275c9da8SeschrockCFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST) 43*275c9da8SeschrockLDLIBS += -L$(ROOT)/usr/lib/scsi -lses -lnvpair 44*275c9da8SeschrockLDFLAGS += -R/usr/lib/scsi 45*275c9da8Seschrock 46*275c9da8Seschrockall: $(PROG) 47*275c9da8Seschrock 48*275c9da8Seschrock$(PROG): $(OBJS) 49*275c9da8Seschrock $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 50*275c9da8Seschrock $(CTFMERGE) -L VERSION -o $@ $(OBJS) 51*275c9da8Seschrock $(POST_PROCESS) 52*275c9da8Seschrock 53*275c9da8Seschrock%.o: ../common/%.c 54*275c9da8Seschrock $(COMPILE.c) $< 55*275c9da8Seschrock $(CTFCONVERT_O) 56*275c9da8Seschrock 57*275c9da8Seschrockclean: 58*275c9da8Seschrock $(RM) $(OBJS) 59*275c9da8Seschrock 60*275c9da8Seschrocklint: lint_SRCS 61*275c9da8Seschrock 62*275c9da8Seschrock$(ROOTLIBSCSI)/%: % 63*275c9da8Seschrock $(INS.file) 64*275c9da8Seschrock 65*275c9da8Seschrockinstall_h: 66*275c9da8Seschrock 67*275c9da8Seschrockinstall: all $(ROOTPROG) 68*275c9da8Seschrock 69*275c9da8Seschrockinclude ../../../Makefile.targ 70