1*ac88567aSHyon Kim# 2*ac88567aSHyon Kim# CDDL HEADER START 3*ac88567aSHyon Kim# 4*ac88567aSHyon Kim# The contents of this file are subject to the terms of the 5*ac88567aSHyon Kim# Common Development and Distribution License (the "License"). 6*ac88567aSHyon Kim# You may not use this file except in compliance with the License. 7*ac88567aSHyon Kim# 8*ac88567aSHyon Kim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*ac88567aSHyon Kim# or http://www.opensolaris.org/os/licensing. 10*ac88567aSHyon Kim# See the License for the specific language governing permissions 11*ac88567aSHyon Kim# and limitations under the License. 12*ac88567aSHyon Kim# 13*ac88567aSHyon Kim# When distributing Covered Code, include this CDDL HEADER in each 14*ac88567aSHyon Kim# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*ac88567aSHyon Kim# If applicable, add the following below this CDDL HEADER, with the 16*ac88567aSHyon Kim# fields enclosed by brackets "[]" replaced with your own identifying 17*ac88567aSHyon Kim# information: Portions Copyright [yyyy] [name of copyright owner] 18*ac88567aSHyon Kim# 19*ac88567aSHyon Kim# CDDL HEADER END 20*ac88567aSHyon Kim# 21*ac88567aSHyon Kim 22*ac88567aSHyon Kim# 23*ac88567aSHyon Kim# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 24*ac88567aSHyon Kim# 25*ac88567aSHyon Kim 26*ac88567aSHyon Kim.KEEP_STATE: 27*ac88567aSHyon Kim.SUFFIXES: 28*ac88567aSHyon Kim 29*ac88567aSHyon KimPROG = smp 30*ac88567aSHyon KimSRCS = $(PROG:%=../common/%.c) 31*ac88567aSHyon KimOBJS = $(PROG:%=%.o) 32*ac88567aSHyon Kim 33*ac88567aSHyon Kiminclude ../../../Makefile.cmd 34*ac88567aSHyon Kim 35*ac88567aSHyon KimROOTLIBSCSI = $(ROOT)/usr/lib/scsi 36*ac88567aSHyon KimROOTPROG = $(ROOTLIBSCSI)/$(PROG) 37*ac88567aSHyon Kim 38*ac88567aSHyon Kim$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 39*ac88567aSHyon KimCPPFLAGS += -I. -I../common 40*ac88567aSHyon KimCFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST) 41*ac88567aSHyon KimLDLIBS += -L$(ROOT)/usr/lib/scsi -lsmp 42*ac88567aSHyon KimLDFLAGS += -R/usr/lib/scsi 43*ac88567aSHyon Kim 44*ac88567aSHyon Kimall: $(PROG) 45*ac88567aSHyon Kim 46*ac88567aSHyon Kim$(PROG): $(OBJS) 47*ac88567aSHyon Kim $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 48*ac88567aSHyon Kim $(CTFMERGE) -L VERSION -o $@ $(OBJS) 49*ac88567aSHyon Kim $(POST_PROCESS) 50*ac88567aSHyon Kim 51*ac88567aSHyon Kim%.o: ../common/%.c 52*ac88567aSHyon Kim $(COMPILE.c) $< 53*ac88567aSHyon Kim $(CTFCONVERT_O) 54*ac88567aSHyon Kim 55*ac88567aSHyon Kimclean: 56*ac88567aSHyon Kim $(RM) $(OBJS) 57*ac88567aSHyon Kim 58*ac88567aSHyon Kimlint: lint_SRCS 59*ac88567aSHyon Kim 60*ac88567aSHyon Kim$(ROOTLIBSCSI)/%: % 61*ac88567aSHyon Kim $(INS.file) 62*ac88567aSHyon Kim 63*ac88567aSHyon Kiminstall_h: 64*ac88567aSHyon Kim 65*ac88567aSHyon Kiminstall: all $(ROOTPROG) 66*ac88567aSHyon Kim 67*ac88567aSHyon Kiminclude ../../../Makefile.targ 68