1*12126SHyon.Kim@Sun.COM# 2*12126SHyon.Kim@Sun.COM# CDDL HEADER START 3*12126SHyon.Kim@Sun.COM# 4*12126SHyon.Kim@Sun.COM# The contents of this file are subject to the terms of the 5*12126SHyon.Kim@Sun.COM# Common Development and Distribution License (the "License"). 6*12126SHyon.Kim@Sun.COM# You may not use this file except in compliance with the License. 7*12126SHyon.Kim@Sun.COM# 8*12126SHyon.Kim@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*12126SHyon.Kim@Sun.COM# or http://www.opensolaris.org/os/licensing. 10*12126SHyon.Kim@Sun.COM# See the License for the specific language governing permissions 11*12126SHyon.Kim@Sun.COM# and limitations under the License. 12*12126SHyon.Kim@Sun.COM# 13*12126SHyon.Kim@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 14*12126SHyon.Kim@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*12126SHyon.Kim@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 16*12126SHyon.Kim@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 17*12126SHyon.Kim@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 18*12126SHyon.Kim@Sun.COM# 19*12126SHyon.Kim@Sun.COM# CDDL HEADER END 20*12126SHyon.Kim@Sun.COM# 21*12126SHyon.Kim@Sun.COM 22*12126SHyon.Kim@Sun.COM# 23*12126SHyon.Kim@Sun.COM# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 24*12126SHyon.Kim@Sun.COM# 25*12126SHyon.Kim@Sun.COM 26*12126SHyon.Kim@Sun.COMLIBRARY = libsmp.a 27*12126SHyon.Kim@Sun.COMVERS = .1 28*12126SHyon.Kim@Sun.COM 29*12126SHyon.Kim@Sun.COMOBJECTS = \ 30*12126SHyon.Kim@Sun.COM smp_engine.o \ 31*12126SHyon.Kim@Sun.COM smp_errno.o \ 32*12126SHyon.Kim@Sun.COM smp_plugin.o \ 33*12126SHyon.Kim@Sun.COM smp_subr.o 34*12126SHyon.Kim@Sun.COM 35*12126SHyon.Kim@Sun.COMinclude ../../../Makefile.lib 36*12126SHyon.Kim@Sun.COMinclude ../../Makefile.defs 37*12126SHyon.Kim@Sun.COM 38*12126SHyon.Kim@Sun.COMSRCS = $(OBJECTS:%.o=../common/%.c) 39*12126SHyon.Kim@Sun.COMC99MODE = $(C99_ENABLE) 40*12126SHyon.Kim@Sun.COMCPPFLAGS += -I../common -I. -D_REENTRANT 41*12126SHyon.Kim@Sun.COM$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 42*12126SHyon.Kim@Sun.COMCFLAGS += $(CCVERBOSE) 43*12126SHyon.Kim@Sun.COMLDLIBS += \ 44*12126SHyon.Kim@Sun.COM -lumem \ 45*12126SHyon.Kim@Sun.COM -lc 46*12126SHyon.Kim@Sun.COMLIBS = $(DYNLIB) $(LINTLIB) 47*12126SHyon.Kim@Sun.COMROOTLIBDIR = $(ROOTSCSILIBDIR) 48*12126SHyon.Kim@Sun.COMROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64) 49*12126SHyon.Kim@Sun.COM 50*12126SHyon.Kim@Sun.COMCLEANFILES += \ 51*12126SHyon.Kim@Sun.COM ../common/smp_errno.c 52*12126SHyon.Kim@Sun.COM 53*12126SHyon.Kim@Sun.COM# 54*12126SHyon.Kim@Sun.COM# On SPARC, gcc emits DWARF assembler directives for TLS data that are not 55*12126SHyon.Kim@Sun.COM# understood by the Sun assembler. Until this problem is fixed, we turn down 56*12126SHyon.Kim@Sun.COM# the amount of generated debugging information, which seems to do the trick. 57*12126SHyon.Kim@Sun.COM# 58*12126SHyon.Kim@Sun.COM$(SPARC_BLD)CTF_FLAGS += -_gcc=-g1 59*12126SHyon.Kim@Sun.COM 60*12126SHyon.Kim@Sun.COM$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 61*12126SHyon.Kim@Sun.COM 62*12126SHyon.Kim@Sun.COM.KEEP_STATE: 63*12126SHyon.Kim@Sun.COM 64*12126SHyon.Kim@Sun.COMall : $(LIBS) 65*12126SHyon.Kim@Sun.COM 66*12126SHyon.Kim@Sun.COMlint : lintcheck 67*12126SHyon.Kim@Sun.COM 68*12126SHyon.Kim@Sun.COM../common/smp_errno.c: ../common/mkerrno.sh ../common/libsmp.h 69*12126SHyon.Kim@Sun.COM sh ../common/mkerrno.sh < ../common/libsmp.h > $@ 70*12126SHyon.Kim@Sun.COM 71*12126SHyon.Kim@Sun.COMpics/%.o: ../common/%.c 72*12126SHyon.Kim@Sun.COM $(COMPILE.c) -o $@ $< 73*12126SHyon.Kim@Sun.COM $(POST_PROCESS_O) 74*12126SHyon.Kim@Sun.COM 75*12126SHyon.Kim@Sun.COMinclude ../../../Makefile.targ 76*12126SHyon.Kim@Sun.COMinclude ../../Makefile.rootdirs 77