184ab085aSmws# 284ab085aSmws# CDDL HEADER START 384ab085aSmws# 484ab085aSmws# The contents of this file are subject to the terms of the 5*f808c858Sraf# Common Development and Distribution License (the "License"). 6*f808c858Sraf# You may not use this file except in compliance with the License. 784ab085aSmws# 884ab085aSmws# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 984ab085aSmws# or http://www.opensolaris.org/os/licensing. 1084ab085aSmws# See the License for the specific language governing permissions 1184ab085aSmws# and limitations under the License. 1284ab085aSmws# 1384ab085aSmws# When distributing Covered Code, include this CDDL HEADER in each 1484ab085aSmws# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1584ab085aSmws# If applicable, add the following below this CDDL HEADER, with the 1684ab085aSmws# fields enclosed by brackets "[]" replaced with your own identifying 1784ab085aSmws# information: Portions Copyright [yyyy] [name of copyright owner] 1884ab085aSmws# 1984ab085aSmws# CDDL HEADER END 2084ab085aSmws# 2184ab085aSmws# 22*f808c858Sraf# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2384ab085aSmws# Use is subject to license terms. 2484ab085aSmws# 2584ab085aSmws# ident "%Z%%M% %I% %E% SMI" 26*f808c858Sraf# 2784ab085aSmws 2884ab085aSmwsLIBRARY = libsmbios.a 2984ab085aSmwsVERS = .1 3084ab085aSmws 3184ab085aSmwsCOMMON_OBJS = \ 3284ab085aSmws smb_error.o \ 3384ab085aSmws smb_info.o \ 3484ab085aSmws smb_open.o 3584ab085aSmws 3684ab085aSmwsLIB_OBJS = \ 3784ab085aSmws smb_lib.o \ 3884ab085aSmws smb_subr.o \ 3984ab085aSmws smb_tables.o 4084ab085aSmws 4184ab085aSmwsOBJECTS = $(COMMON_OBJS) $(LIB_OBJS) 4284ab085aSmws 4384ab085aSmwsinclude ../../Makefile.lib 4484ab085aSmws 4584ab085aSmwsCOMMON_SRCDIR = ../../../common/smbios 4684ab085aSmwsCOMMON_HDR = $(SRC)/uts/common/sys/smbios.h 4784ab085aSmws 4884ab085aSmwsSRCS = $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c) $(LIB_OBJS:%.o=../common/%.c) 4984ab085aSmwsLIBS = $(DYNLIB) $(LINTLIB) 5084ab085aSmws 5184ab085aSmwsSRCDIR = ../common 52*f808c858Sraf 5384ab085aSmwsCLEANFILES += ../common/smb_tables.c 5484ab085aSmws 5584ab085aSmwsCPPFLAGS += -I../common -I$(COMMON_SRCDIR) 5684ab085aSmwsCFLAGS += $(CCVERBOSE) 5784ab085aSmwsLDLIBS += -lc 5884ab085aSmws 5984ab085aSmws$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 6084ab085aSmws 6184ab085aSmws.KEEP_STATE: 6284ab085aSmws 6384ab085aSmwsall: $(LIBS) 6484ab085aSmws 6584ab085aSmwslint: lintcheck 6684ab085aSmws 6784ab085aSmwsinclude ../../Makefile.targ 6884ab085aSmws 6984ab085aSmwsobjs/%.o pics/%.o: ../../../common/smbios/%.c 7084ab085aSmws $(COMPILE.c) -o $@ $< 7184ab085aSmws $(POST_PROCESS_O) 7284ab085aSmws 7384ab085aSmws../common/smb_tables.c: $(COMMON_SRCDIR)/mktables.sh $(COMMON_HDR) 7484ab085aSmws sh $(COMMON_SRCDIR)/mktables.sh $(COMMON_HDR) > $@ 75