Makefile revision 48011479cce51f5534141868012dcb9828a0fd63
1N/A# The contents of this file are subject to the terms of the 1N/A# Common Development and Distribution License (the "License"). 1N/A# You may not use this file except in compliance with the License. 1N/A# See the License for the specific language governing permissions 1N/A# and limitations under the License. 1N/A# When distributing Covered Code, include this CDDL HEADER in each 1N/A# If applicable, add the following below this CDDL HEADER, with the 1N/A# fields enclosed by brackets "[]" replaced with your own identifying 1N/A# information: Portions Copyright [yyyy] [name of copyright owner] 1N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 1N/A# Use is subject to license terms. 1N/A# ident "%Z%%M% %I% %E% SMI" 1N/A# objects are grouped by source directory 1N/A# Preserved solely to ease maintenance of 32-bit and 64-bit library builds 1N/A# This macro should ALWAYS be empty; native APIs are already 'large file'. 1N/A# Preserved solely to ease maintenance of 32-bit and 64-bit library builds 1N/A# This macro should ALWAYS be empty; native APIs are already 'large file'. 1N/A# objects from source under ../port 1N/A# Preserved solely to ease maintenance of 32-bit and 64-bit library builds 1N/A# This macro should ALWAYS be empty; native APIs are already 'large file'. 1N/A# Preserved solely to ease maintenance of 32-bit and 64-bit library builds 1N/A# This macro should ALWAYS be empty; native APIs are already 'large file'. 1N/A# modules whose source is provided in the $(SRC)/lib/common directory. 1N/A# This must be done because otherwise the Sun C compiler would insert 1N/A# its own versions of these modules and those versions contain code 1N/A# to call out to C++ initialization functions. Such C++ initialization 1N/A# functions can call back into libc before thread initialization is 1N/A# complete and this leads to segmentation violations and other problems. 1N/A# Since libc contains no C++ code, linking with the minimal crti.o and 1N/A# crtn.o modules is safe and avoids the problems described above. 1N/A# include common library definitions 1N/A# conditions such as the settings of CFLAGS and CPPFLAGS for the libc_i18n stuff 1N/A# need to be compatible with the ones for the libc stuff. Whenever the changes 1N/A# that affect the compilation conditions of libc happened, those for libc_i18n 1N/A# also need to be updated. 1N/A# This is necessary to avoid problems with calling _ex_unwind(). 1N/A# We probably don't want any inlining anyway. 1N/A# Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...) 1N/A# enables ASSERT() checking in the threads portion of the library. 1N/A# This is automatically enabled for DEBUG builds, not for non-debug builds. 1N/A# Inform the run-time linker about libc specialized initialization 1N/A# Override this top level flag so the compiler builds in its native 1N/A# C99 mode. This has been enabled to support the complex arithmetic 1N/A# libc method of building an archive 1N/A# extra files for the clean target 1N/A# list of C source for lint 1N/A# conditional assignments 1N/A# Files which need the threads .il inline template 1N/A# large-file-aware components that should be built large 1N/A#$(COMSYSOBJS64:%=pics/%) := \ 1N/A# CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 1N/A#$(SYSOBJS64:%=pics/%) := \ 1N/A# CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 1N/A#$(PORTGEN64:%=pics/%) := \ 1N/A# CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 1N/A#$(PORTSTDIO64:%=pics/%) := \ 1N/A# CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 1N/A#$(PORTSYS64:%=pics/%) := \ 1N/A# CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 1N/A# object files that depend on inline template 1N/A# include common libc targets 1N/A# We need to strip out all CTF data from the static library 1N/A# derived C source and related explicit dependencies