17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5f841f6adSraf# Common Development and Distribution License (the "License").
6f841f6adSraf# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
211e49577aSRod Evans
227c478bd9Sstevel@tonic-gate#
231e49577aSRod Evans# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
247c478bd9Sstevel@tonic-gate#
253eca6103SJohn Levon# Copyright (c) 2019, Joyent, Inc.
263eca6103SJohn Levon#
277c478bd9Sstevel@tonic-gate
281e49577aSRod Evans$(SYMCAP):	$(OBJCAP)
291e49577aSRod Evans$(OBJCAP):	$(PICS)
301e49577aSRod Evans$(PICS):	pics
317c478bd9Sstevel@tonic-gate
321e49577aSRod Evans# Assemble the original source file.
33*5d9d9091SRichard Lowepics/%.o:	../../$(TRG_PLATFORM)/common/%.S
341e49577aSRod Evans		$(COMPILE.s) $< -o $@
353eca6103SJohn Levon		$(POST_PROCESS_S_O)
367c478bd9Sstevel@tonic-gate
37*5d9d9091SRichard Lowepics/%.o:	../../$(ALT_PLATFORM)/common/%.S
381e49577aSRod Evans		$(COMPILE.s) $< -o $@
393eca6103SJohn Levon		$(POST_PROCESS_S_O)
407c478bd9Sstevel@tonic-gate
411e49577aSRod Evans# Combine all pic objects into one relocatable object.  Assign any capabilities
421e49577aSRod Evans# to this object, and define the interface.
437c478bd9Sstevel@tonic-gate
441e49577aSRod Evanspics/objcap.o:	$(PICS) $(MAPFILE-CAP)
4585f4cb87SRichard Lowe		$(LD) -r -o $@ $(MAPOPT-CAP) $(BREDUCE) $(PICS)
461e49577aSRod Evans		$(POST_PROCESS_OBJCAP_O)
477c478bd9Sstevel@tonic-gate
481e49577aSRod Evans# Convert the combined object capabilities object into a symbol capabilities
491e49577aSRod Evans# object.
507c478bd9Sstevel@tonic-gate
511e49577aSRod Evanspics/symcap.o:	$(OBJCAP)
521e49577aSRod Evans		$(LD) -r -o $@ -z symbolcap $(OBJCAP)
537c478bd9Sstevel@tonic-gate
541e49577aSRod Evansinclude		../../../Makefile.targ
55