xref: /titanic_54/usr/src/lib/libsmbios/Makefile.com (revision 84ab085a13f931bc78e7415e7ce921dbaa14fcb3)
1*84ab085aSmws#
2*84ab085aSmws# CDDL HEADER START
3*84ab085aSmws#
4*84ab085aSmws# The contents of this file are subject to the terms of the
5*84ab085aSmws# Common Development and Distribution License, Version 1.0 only
6*84ab085aSmws# (the "License").  You may not use this file except in compliance
7*84ab085aSmws# with the License.
8*84ab085aSmws#
9*84ab085aSmws# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*84ab085aSmws# or http://www.opensolaris.org/os/licensing.
11*84ab085aSmws# See the License for the specific language governing permissions
12*84ab085aSmws# and limitations under the License.
13*84ab085aSmws#
14*84ab085aSmws# When distributing Covered Code, include this CDDL HEADER in each
15*84ab085aSmws# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*84ab085aSmws# If applicable, add the following below this CDDL HEADER, with the
17*84ab085aSmws# fields enclosed by brackets "[]" replaced with your own identifying
18*84ab085aSmws# information: Portions Copyright [yyyy] [name of copyright owner]
19*84ab085aSmws#
20*84ab085aSmws# CDDL HEADER END
21*84ab085aSmws#
22*84ab085aSmws#
23*84ab085aSmws# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*84ab085aSmws# Use is subject to license terms.
25*84ab085aSmws#
26*84ab085aSmws#ident	"%Z%%M%	%I%	%E% SMI"
27*84ab085aSmws
28*84ab085aSmwsLIBRARY = libsmbios.a
29*84ab085aSmwsVERS = .1
30*84ab085aSmws
31*84ab085aSmwsCOMMON_OBJS = \
32*84ab085aSmws	smb_error.o \
33*84ab085aSmws	smb_info.o \
34*84ab085aSmws	smb_open.o
35*84ab085aSmws
36*84ab085aSmwsLIB_OBJS = \
37*84ab085aSmws	smb_lib.o \
38*84ab085aSmws	smb_subr.o \
39*84ab085aSmws	smb_tables.o
40*84ab085aSmws
41*84ab085aSmwsOBJECTS = $(COMMON_OBJS) $(LIB_OBJS)
42*84ab085aSmws
43*84ab085aSmwsinclude ../../Makefile.lib
44*84ab085aSmws
45*84ab085aSmwsCOMMON_SRCDIR = ../../../common/smbios
46*84ab085aSmwsCOMMON_HDR = $(SRC)/uts/common/sys/smbios.h
47*84ab085aSmws
48*84ab085aSmwsSRCS = $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c) $(LIB_OBJS:%.o=../common/%.c)
49*84ab085aSmwsLIBS = $(DYNLIB) $(LINTLIB)
50*84ab085aSmws
51*84ab085aSmwsSRCDIR = ../common
52*84ab085aSmwsSPECMAPFILE = $(MAPDIR)/mapfile
53*84ab085aSmwsCLEANFILES += ../common/smb_tables.c
54*84ab085aSmws
55*84ab085aSmwsCPPFLAGS += -I../common -I$(COMMON_SRCDIR)
56*84ab085aSmwsCFLAGS += $(CCVERBOSE)
57*84ab085aSmwsLDLIBS += -lc
58*84ab085aSmws
59*84ab085aSmws$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
60*84ab085aSmws
61*84ab085aSmws.KEEP_STATE:
62*84ab085aSmws
63*84ab085aSmwsall: $(LIBS)
64*84ab085aSmws
65*84ab085aSmwslint: lintcheck
66*84ab085aSmws
67*84ab085aSmwsinclude ../../Makefile.targ
68*84ab085aSmws
69*84ab085aSmwsobjs/%.o pics/%.o: ../../../common/smbios/%.c
70*84ab085aSmws	$(COMPILE.c) -o $@ $<
71*84ab085aSmws	$(POST_PROCESS_O)
72*84ab085aSmws
73*84ab085aSmws../common/smb_tables.c: $(COMMON_SRCDIR)/mktables.sh $(COMMON_HDR)
74*84ab085aSmws	sh $(COMMON_SRCDIR)/mktables.sh $(COMMON_HDR) > $@
75