1ac88567aSHyon Kim# 2ac88567aSHyon Kim# CDDL HEADER START 3ac88567aSHyon Kim# 4ac88567aSHyon Kim# The contents of this file are subject to the terms of the 5ac88567aSHyon Kim# Common Development and Distribution License (the "License"). 6ac88567aSHyon Kim# You may not use this file except in compliance with the License. 7ac88567aSHyon Kim# 8ac88567aSHyon Kim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9ac88567aSHyon Kim# or http://www.opensolaris.org/os/licensing. 10ac88567aSHyon Kim# See the License for the specific language governing permissions 11ac88567aSHyon Kim# and limitations under the License. 12ac88567aSHyon Kim# 13ac88567aSHyon Kim# When distributing Covered Code, include this CDDL HEADER in each 14ac88567aSHyon Kim# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15ac88567aSHyon Kim# If applicable, add the following below this CDDL HEADER, with the 16ac88567aSHyon Kim# fields enclosed by brackets "[]" replaced with your own identifying 17ac88567aSHyon Kim# information: Portions Copyright [yyyy] [name of copyright owner] 18ac88567aSHyon Kim# 19ac88567aSHyon Kim# CDDL HEADER END 20ac88567aSHyon Kim# 21ac88567aSHyon Kim 22ac88567aSHyon Kim# 23ac88567aSHyon Kim# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 24ac88567aSHyon Kim# 25ac88567aSHyon Kim 26ac88567aSHyon KimLIBRARY = libsmp.a 27ac88567aSHyon KimVERS = .1 28ac88567aSHyon Kim 29ac88567aSHyon KimOBJECTS = \ 30ac88567aSHyon Kim smp_engine.o \ 31ac88567aSHyon Kim smp_errno.o \ 32ac88567aSHyon Kim smp_plugin.o \ 33ac88567aSHyon Kim smp_subr.o 34ac88567aSHyon Kim 35ac88567aSHyon Kiminclude ../../../Makefile.lib 36ac88567aSHyon Kiminclude ../../Makefile.defs 37ac88567aSHyon Kim 38ac88567aSHyon KimSRCS = $(OBJECTS:%.o=../common/%.c) 39ac88567aSHyon KimC99MODE = $(C99_ENABLE) 40ac88567aSHyon KimCPPFLAGS += -I../common -I. -D_REENTRANT 41ac88567aSHyon Kim$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 42ac88567aSHyon KimCFLAGS += $(CCVERBOSE) 43*7014882cSRichard Lowe 44*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 45*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 46*7014882cSRichard Lowe 47ac88567aSHyon KimLDLIBS += \ 48ac88567aSHyon Kim -lumem \ 49ac88567aSHyon Kim -lc 50ac88567aSHyon KimLIBS = $(DYNLIB) $(LINTLIB) 51ac88567aSHyon KimROOTLIBDIR = $(ROOTSCSILIBDIR) 52ac88567aSHyon KimROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64) 53ac88567aSHyon Kim 54ac88567aSHyon KimCLEANFILES += \ 55ac88567aSHyon Kim ../common/smp_errno.c 56ac88567aSHyon Kim 57ac88567aSHyon Kim$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 58ac88567aSHyon Kim 59ac88567aSHyon Kim.KEEP_STATE: 60ac88567aSHyon Kim 61ac88567aSHyon Kimall : $(LIBS) 62ac88567aSHyon Kim 63ac88567aSHyon Kimlint : lintcheck 64ac88567aSHyon Kim 65ac88567aSHyon Kim../common/smp_errno.c: ../common/mkerrno.sh ../common/libsmp.h 66ac88567aSHyon Kim sh ../common/mkerrno.sh < ../common/libsmp.h > $@ 67ac88567aSHyon Kim 68ac88567aSHyon Kimpics/%.o: ../common/%.c 69ac88567aSHyon Kim $(COMPILE.c) -o $@ $< 70ac88567aSHyon Kim $(POST_PROCESS_O) 71ac88567aSHyon Kim 72ac88567aSHyon Kiminclude ../../../Makefile.targ 73ac88567aSHyon Kiminclude ../../Makefile.rootdirs 74