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. 337c478bd9Sstevel@tonic-gate 341e49577aSRod Evanspics/%.o: ../../$(TRG_PLATFORM)/common/%.s 351e49577aSRod Evans $(COMPILE.s) $< -o $@ 363eca6103SJohn Levon $(POST_PROCESS_S_O) 377c478bd9Sstevel@tonic-gate 381e49577aSRod Evanspics/%.o: ../../$(ALT_PLATFORM)/common/%.s 391e49577aSRod Evans $(COMPILE.s) $< -o $@ 403eca6103SJohn Levon $(POST_PROCESS_S_O) 417c478bd9Sstevel@tonic-gate 421e49577aSRod Evans# Combine all pic objects into one relocatable object. Assign any capabilities 431e49577aSRod Evans# to this object, and define the interface. 447c478bd9Sstevel@tonic-gate 451e49577aSRod Evanspics/objcap.o: $(PICS) $(MAPFILE-CAP) 46*85f4cb87SRichard Lowe $(LD) -r -o $@ $(MAPOPT-CAP) $(BREDUCE) $(PICS) 471e49577aSRod Evans $(POST_PROCESS_OBJCAP_O) 487c478bd9Sstevel@tonic-gate 491e49577aSRod Evans# Convert the combined object capabilities object into a symbol capabilities 501e49577aSRod Evans# object. 517c478bd9Sstevel@tonic-gate 521e49577aSRod Evanspics/symcap.o: $(OBJCAP) 531e49577aSRod Evans $(LD) -r -o $@ -z symbolcap $(OBJCAP) 547c478bd9Sstevel@tonic-gate 551e49577aSRod Evansinclude ../../../Makefile.targ 56