1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# ident "%Z%%M% %I% %E% SMI" 26# 27 28LIBRARY= scsi.a 29VERS= .1 30 31GEN_OBJECTS += \ 32 cfga_ctl.o \ 33 cfga_cvt.o \ 34 cfga_list.o \ 35 cfga_scsi.o \ 36 cfga_utils.o \ 37 cfga_rcm.o 38OPL_OBJECTS = opl_dev_led.o 39OBJECTS += $(GEN_OBJECTS) $(OPL_OBJECTS) 40 41# include library definitions 42include $(SRC)/lib/Makefile.lib 43 44ROOTLIBDIR= $(ROOT)/usr/platform/SUNW,SPARC-Enterprise/lib/cfgadm 45ROOTLIBDIR64= $(ROOTLIBDIR)/$(MACH64) 46 47SRCDIR = ../../common 48 49SRCS= $(GEN_OBJECTS:%.o=../../common/%.c) $(OPL_OBJECTS:%.o=../common/%.c) 50 51LIBS= $(DYNLIB) 52 53CFLAGS += $(CCVERBOSE) 54 55LDLIBS += -lc -ldevice -ldevinfo -lrcm 56 57.KEEP_STATE: 58 59all: $(LIBS) 60 61lint: lintcheck 62 63# Install rules 64 65$(ROOTLIBDIR)/%: % $(ROOTLIBDIR) 66 $(INS.file) 67 68$(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64) 69 $(INS.file) 70 71$(ROOTLIBDIR) $(ROOTLIBDIR64): 72 $(INS.dir) 73 74# include library targets 75include $(SRC)/lib//Makefile.targ 76 77pics/%.o: ../common/%.c 78 $(COMPILE.c) -o $@ $< 79 $(POST_PROCESS_O) 80 81pics/%.o: ../../common/%.c 82 $(COMPILE.c) -o $@ $< 83 $(POST_PROCESS_O) 84