Makefile.com revision 7014882c6a3672fd0e5d60200af8643ae53c5928
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim#
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# CDDL HEADER START
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim#
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# The contents of this file are subject to the terms of the
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# Common Development and Distribution License (the "License").
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# You may not use this file except in compliance with the License.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim#
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# or http://www.opensolaris.org/os/licensing.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# See the License for the specific language governing permissions
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# and limitations under the License.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim#
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# When distributing Covered Code, include this CDDL HEADER in each
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# If applicable, add the following below this CDDL HEADER, with the
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# fields enclosed by brackets "[]" replaced with your own identifying
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# information: Portions Copyright [yyyy] [name of copyright owner]
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim#
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# CDDL HEADER END
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim#
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim#
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim#
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimLIBRARY = libsmp.a
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimVERS = .1
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimOBJECTS = \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim smp_engine.o \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim smp_errno.o \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim smp_plugin.o \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim smp_subr.o
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kiminclude ../../../Makefile.lib
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kiminclude ../../Makefile.defs
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimSRCS = $(OBJECTS:%.o=../common/%.c)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimC99MODE = $(C99_ENABLE)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimCPPFLAGS += -I../common -I. -D_REENTRANT
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimCFLAGS += $(CCVERBOSE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-type-limits
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimLDLIBS += \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim -lumem \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim -lc
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimLIBS = $(DYNLIB) $(LINTLIB)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimROOTLIBDIR = $(ROOTSCSILIBDIR)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon KimCLEANFILES += \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim ../common/smp_errno.c
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim.KEEP_STATE:
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kimall : $(LIBS)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kimlint : lintcheck
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim../common/smp_errno.c: ../common/mkerrno.sh ../common/libsmp.h
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim sh ../common/mkerrno.sh < ../common/libsmp.h > $@
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kimpics/%.o: ../common/%.c
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(COMPILE.c) -o $@ $<
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim $(POST_PROCESS_O)
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kiminclude ../../../Makefile.targ
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kiminclude ../../Makefile.rootdirs