xref: /titanic_50/usr/src/lib/libdevid/Makefile.com (revision 0e42dee69ed771bf604dd1789fca9d77b5bbe302)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY=	libdevid.a
30VERS=		.1
31OBJECTS=	deviceid.o devid.o devid_scsi.o
32
33include ../../Makefile.lib
34include ../../Makefile.rootfs
35
36SRCS =		../deviceid.c $(SRC)/common/devid/devid.c \
37		$(SRC)/common/devid/devid_scsi.c
38$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
39LIBS =		$(DYNLIB) $(LINTLIB)
40#
41# Libraries added to the next line must be present in miniroot
42#
43LDLIBS +=	-ldevinfo -lc
44
45SRCDIR =	..
46MAPDIR =	../spec/$(TRANSMACH)
47SPECMAPFILE =	$(MAPDIR)/mapfile
48
49CFLAGS +=	$(CCVERBOSE)
50
51.KEEP_STATE:
52
53all: $(LIBS)
54
55lint: lintcheck
56
57include ../../Makefile.targ
58
59pics/devid.o:	 $(SRC)/common/devid/devid.c
60	$(COMPILE.c) -o $@ $(SRC)/common/devid/devid.c
61	$(POST_PROCESS_O)
62
63pics/devid_scsi.o:	 $(SRC)/common/devid/devid_scsi.c
64	$(COMPILE.c) -o $@ $(SRC)/common/devid/devid_scsi.c
65	$(POST_PROCESS_O)
66