184ab085aSmws# 284ab085aSmws# CDDL HEADER START 384ab085aSmws# 484ab085aSmws# The contents of this file are subject to the terms of the 5f808c858Sraf# Common Development and Distribution License (the "License"). 6f808c858Sraf# 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# 22f808c858Sraf# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2384ab085aSmws# Use is subject to license terms. 2484ab085aSmws# 2584ab085aSmws 2684ab085aSmwsLIBRARY = libsmbios.a 2784ab085aSmwsVERS = .1 2884ab085aSmws 2984ab085aSmwsCOMMON_OBJS = \ 3084ab085aSmws smb_error.o \ 3184ab085aSmws smb_info.o \ 3284ab085aSmws smb_open.o 3384ab085aSmws 3484ab085aSmwsLIB_OBJS = \ 3584ab085aSmws smb_lib.o \ 3684ab085aSmws smb_subr.o \ 3784ab085aSmws smb_tables.o 3884ab085aSmws 3984ab085aSmwsOBJECTS = $(COMMON_OBJS) $(LIB_OBJS) 4084ab085aSmws 4184ab085aSmwsinclude ../../Makefile.lib 4284ab085aSmws 4384ab085aSmwsCOMMON_SRCDIR = ../../../common/smbios 4484ab085aSmwsCOMMON_HDR = $(SRC)/uts/common/sys/smbios.h 4584ab085aSmws 4684ab085aSmwsSRCS = $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c) $(LIB_OBJS:%.o=../common/%.c) 4784ab085aSmwsLIBS = $(DYNLIB) $(LINTLIB) 4884ab085aSmws 4984ab085aSmwsSRCDIR = ../common 50f808c858Sraf 5184ab085aSmwsCLEANFILES += ../common/smb_tables.c 5284ab085aSmws 5384ab085aSmwsCPPFLAGS += -I../common -I$(COMMON_SRCDIR) 5484ab085aSmwsCFLAGS += $(CCVERBOSE) 55*c325726fSToomas SoomeLDLIBS += -ldevinfo -lc 5684ab085aSmws 5784ab085aSmws$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 5884ab085aSmws 5984ab085aSmws.KEEP_STATE: 6084ab085aSmws 6184ab085aSmwsall: $(LIBS) 6284ab085aSmws 6384ab085aSmwslint: lintcheck 6484ab085aSmws 6584ab085aSmwsinclude ../../Makefile.targ 6684ab085aSmws 6784ab085aSmwsobjs/%.o pics/%.o: ../../../common/smbios/%.c 6884ab085aSmws $(COMPILE.c) -o $@ $< 6984ab085aSmws $(POST_PROCESS_O) 7084ab085aSmws 7184ab085aSmws../common/smb_tables.c: $(COMMON_SRCDIR)/mktables.sh $(COMMON_HDR) 7284ab085aSmws sh $(COMMON_SRCDIR)/mktables.sh $(COMMON_HDR) > $@ 73