Makefile.lib (da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968) | Makefile.lib (f6acbf7c6543dc0aab58cae1df419f0147c46d77) |
---|---|
1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 5 unchanged lines hidden (view full) --- 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# | 1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 5 unchanged lines hidden (view full) --- 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# |
22# Copyright 2007 Sun Microsystems, Inc. All rights reserved. | 22# Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
23# Use is subject to license terms. 24# 25# ident "%Z%%M% %I% %E% SMI" 26# 27 28# 29# Definitions common to libraries. 30# --- 135 unchanged lines hidden (view full) --- 166SONAME= $(DYNLIB) 167# For most libraries, we should be able to resolve all symbols at link time, 168# either within the library or as dependencies, all text should be pure, and 169# combining relocations into one relocation table reduces startup costs. 170# All options are tunable to allow overload/omission from lower makefiles. 171 172 173HSONAME= -h$(SONAME) | 23# Use is subject to license terms. 24# 25# ident "%Z%%M% %I% %E% SMI" 26# 27 28# 29# Definitions common to libraries. 30# --- 135 unchanged lines hidden (view full) --- 166SONAME= $(DYNLIB) 167# For most libraries, we should be able to resolve all symbols at link time, 168# either within the library or as dependencies, all text should be pure, and 169# combining relocations into one relocation table reduces startup costs. 170# All options are tunable to allow overload/omission from lower makefiles. 171 172 173HSONAME= -h$(SONAME) |
174DYNFLAGS= $(HSONAME) $(ZTEXT) $(ZDEFS) $(ZCOMBRELOC) \ | 174DYNFLAGS= $(HSONAME) $(ZTEXT) $(ZDEFS) $(ZCOMBRELOC) $(BDIRECT) \ |
175 $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) 176 177LDLIBS= $(LDLIBS.lib) 178 179OBJS= $(OBJECTS:%=objs/%) 180PICS= $(OBJECTS:%=pics/%) 181 182# Declare that all library .o's can all be made in parallel. --- 59 unchanged lines hidden (view full) --- 242 243SONAMECCC= $(DYNLIBCCC) 244HSONAMECCC= -h $(SONAMECCC) 245# 246# Keep in sync with the standard DYNFLAGS 247# 248$(DYNLIBCCC):= DYNFLAGS = $(HSONAMECCC) $(ZTEXT) $(ZDEFS) $(ZCOMBRELOC) \ 249 $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) \ | 175 $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) 176 177LDLIBS= $(LDLIBS.lib) 178 179OBJS= $(OBJECTS:%=objs/%) 180PICS= $(OBJECTS:%=pics/%) 181 182# Declare that all library .o's can all be made in parallel. --- 59 unchanged lines hidden (view full) --- 242 243SONAMECCC= $(DYNLIBCCC) 244HSONAMECCC= -h $(SONAMECCC) 245# 246# Keep in sync with the standard DYNFLAGS 247# 248$(DYNLIBCCC):= DYNFLAGS = $(HSONAMECCC) $(ZTEXT) $(ZDEFS) $(ZCOMBRELOC) \ 249 $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) \ |
250 $(NORUNPATH) | 250 $(BDIRECT) $(NORUNPATH) |
251 252 253# build rule for "portable" source 254objs/%.o pics/%.o: %.c 255 $(COMPILE.c) -o $@ $< 256 $(POST_PROCESS_O) 257 258objs/%.o pics/%.o: %.cc --- 30 unchanged lines hidden --- | 251 252 253# build rule for "portable" source 254objs/%.o pics/%.o: %.c 255 $(COMPILE.c) -o $@ $< 256 $(POST_PROCESS_O) 257 258objs/%.o pics/%.o: %.cc --- 30 unchanged lines hidden --- |