109fe1b16Sdnielsen# 209fe1b16Sdnielsen# CDDL HEADER START 309fe1b16Sdnielsen# 409fe1b16Sdnielsen# The contents of this file are subject to the terms of the 509fe1b16Sdnielsen# Common Development and Distribution License (the "License"). 609fe1b16Sdnielsen# You may not use this file except in compliance with the License. 709fe1b16Sdnielsen# 809fe1b16Sdnielsen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 909fe1b16Sdnielsen# or http://www.opensolaris.org/os/licensing. 1009fe1b16Sdnielsen# See the License for the specific language governing permissions 1109fe1b16Sdnielsen# and limitations under the License. 1209fe1b16Sdnielsen# 1309fe1b16Sdnielsen# When distributing Covered Code, include this CDDL HEADER in each 1409fe1b16Sdnielsen# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1509fe1b16Sdnielsen# If applicable, add the following below this CDDL HEADER, with the 1609fe1b16Sdnielsen# fields enclosed by brackets "[]" replaced with your own identifying 1709fe1b16Sdnielsen# information: Portions Copyright [yyyy] [name of copyright owner] 1809fe1b16Sdnielsen# 1909fe1b16Sdnielsen# CDDL HEADER END 2009fe1b16Sdnielsen# 2109fe1b16Sdnielsen# 2209fe1b16Sdnielsen# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2309fe1b16Sdnielsen# Use is subject to license terms. 2409fe1b16Sdnielsen# 2509fe1b16Sdnielsen 2609fe1b16SdnielsenLIBRARY= scsi.a 2709fe1b16SdnielsenVERS= .1 2809fe1b16Sdnielsen 2909fe1b16SdnielsenGEN_OBJECTS += \ 3009fe1b16Sdnielsen cfga_ctl.o \ 3109fe1b16Sdnielsen cfga_cvt.o \ 3209fe1b16Sdnielsen cfga_list.o \ 3309fe1b16Sdnielsen cfga_scsi.o \ 3409fe1b16Sdnielsen cfga_utils.o \ 3509fe1b16Sdnielsen cfga_rcm.o 3609fe1b16SdnielsenOPL_OBJECTS = opl_dev_led.o 3709fe1b16SdnielsenOBJECTS += $(GEN_OBJECTS) $(OPL_OBJECTS) 3809fe1b16Sdnielsen 3909fe1b16Sdnielsen# include library definitions 4009fe1b16Sdnielseninclude $(SRC)/lib/Makefile.lib 4109fe1b16Sdnielsen 4209fe1b16SdnielsenROOTLIBDIR= $(ROOT)/usr/platform/SUNW,SPARC-Enterprise/lib/cfgadm 4309fe1b16SdnielsenROOTLIBDIR64= $(ROOTLIBDIR)/$(MACH64) 4409fe1b16Sdnielsen 45f808c858SrafSRCDIR = ../../common 4609fe1b16Sdnielsen 4709fe1b16SdnielsenSRCS= $(GEN_OBJECTS:%.o=../../common/%.c) $(OPL_OBJECTS:%.o=../common/%.c) 4809fe1b16Sdnielsen 4909fe1b16SdnielsenLIBS= $(DYNLIB) 5009fe1b16Sdnielsen 5109fe1b16SdnielsenCFLAGS += $(CCVERBOSE) 52*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 53*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 54*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-address 55*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts 5609fe1b16Sdnielsen 5709fe1b16SdnielsenLDLIBS += -lc -ldevice -ldevinfo -lrcm 5809fe1b16Sdnielsen 5909fe1b16Sdnielsen.KEEP_STATE: 6009fe1b16Sdnielsen 6109fe1b16Sdnielsenall: $(LIBS) 6209fe1b16Sdnielsen 6309fe1b16Sdnielsenlint: lintcheck 6409fe1b16Sdnielsen 6509fe1b16Sdnielsen# Install rules 6609fe1b16Sdnielsen 6709fe1b16Sdnielsen$(ROOTLIBDIR)/%: % $(ROOTLIBDIR) 6809fe1b16Sdnielsen $(INS.file) 6909fe1b16Sdnielsen 7009fe1b16Sdnielsen$(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64) 7109fe1b16Sdnielsen $(INS.file) 7209fe1b16Sdnielsen 7309fe1b16Sdnielsen$(ROOTLIBDIR) $(ROOTLIBDIR64): 7409fe1b16Sdnielsen $(INS.dir) 7509fe1b16Sdnielsen 7609fe1b16Sdnielsen# include library targets 7709fe1b16Sdnielseninclude $(SRC)/lib//Makefile.targ 7809fe1b16Sdnielsen 7909fe1b16Sdnielsenpics/%.o: ../common/%.c 8009fe1b16Sdnielsen $(COMPILE.c) -o $@ $< 8109fe1b16Sdnielsen $(POST_PROCESS_O) 8209fe1b16Sdnielsen 8309fe1b16Sdnielsenpics/%.o: ../../common/%.c 8409fe1b16Sdnielsen $(COMPILE.c) -o $@ $< 8509fe1b16Sdnielsen $(POST_PROCESS_O) 86