xref: /illumos-gate/usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/Makefile.com (revision 1a220b56b93ff1dc80855691548503117af4cc10)
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#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/Makefile.com
29#
30
31LIBRARY= scsi.a
32VERS= .1
33
34GEN_OBJECTS += \
35	cfga_ctl.o \
36	cfga_cvt.o \
37	cfga_list.o \
38	cfga_scsi.o \
39	cfga_utils.o \
40	cfga_rcm.o
41OPL_OBJECTS = opl_dev_led.o
42OBJECTS += $(GEN_OBJECTS) $(OPL_OBJECTS)
43
44# include library definitions
45include $(SRC)/lib/Makefile.lib
46
47ROOTLIBDIR=	$(ROOT)/usr/platform/SUNW,SPARC-Enterprise/lib/cfgadm
48ROOTLIBDIR64=	$(ROOTLIBDIR)/$(MACH64)
49
50MAPFILE=	$(MAPDIR)/mapfile
51CLOBBERFILES +=	$(MAPFILE)
52
53SRCS=	$(GEN_OBJECTS:%.o=../../common/%.c) $(OPL_OBJECTS:%.o=../common/%.c)
54
55LIBS=	$(DYNLIB)
56
57CFLAGS +=	$(CCVERBOSE)
58
59DYNFLAGS +=	-M $(MAPFILE)
60LDLIBS +=	-lc -ldevice -ldevinfo -lrcm
61
62.KEEP_STATE:
63
64all:	$(LIBS)
65
66lint:   lintcheck
67
68$(DYNLIB):	$(MAPFILE)
69
70$(MAPFILE):
71	@cd $(MAPDIR); $(MAKE) mapfile
72
73# Install rules
74
75$(ROOTLIBDIR)/%: % $(ROOTLIBDIR)
76	$(INS.file)
77
78$(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64)
79	$(INS.file)
80
81$(ROOTLIBDIR) $(ROOTLIBDIR64):
82	$(INS.dir)
83
84# include library targets
85include $(SRC)/lib//Makefile.targ
86
87pics/%.o: ../common/%.c
88	$(COMPILE.c) -o $@ $<
89	$(POST_PROCESS_O)
90
91pics/%.o: ../../common/%.c
92	$(COMPILE.c) -o $@ $<
93	$(POST_PROCESS_O)
94