Makefile revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# CDDL HEADER START
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# The contents of this file are subject to the terms of the
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# Common Development and Distribution License (the "License").
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# You may not use this file except in compliance with the License.
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# See the License for the specific language governing permissions
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# and limitations under the License.
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# When distributing Covered Code, include this CDDL HEADER in each
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# If applicable, add the following below this CDDL HEADER, with the
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# fields enclosed by brackets "[]" replaced with your own identifying
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# information: Portions Copyright [yyyy] [name of copyright owner]
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# CDDL HEADER END
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# Use is subject to license terms.
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# ident "%Z%%M% %I% %E% SMI"
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# objects are grouped by source directory
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# local objects
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter# This macro should ALWAYS be empty; native APIs are already 'large file'.
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter# This macro should ALWAYS be empty; native APIs are already 'large file'.
1319e71fd1680ca4864afe0b1aca2b8c8e4a1ee4Stef Walter# objects from source under ../port
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# This macro should ALWAYS be empty; native APIs are already 'large file'.
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter# This macro should ALWAYS be empty; native APIs are already 'large file'.
msgsys.o \
nfssys.o \
openat.o \
ppriv.o \
sbrk.o \
semsys.o \
shmsys.o \
sidsys.o \
signal.o \
time.o \
ustat.o \
PORTREGEX= \
glob.o \
regcmp.o \
regex.o \
MOSTOBJS= \
$(STRETS) \
$(CRTOBJS) \
$(DYNOBJS) \
$(FPOBJS) \
$(FPOBJS64) \
$(FPASMOBJS) \
$(ATOMICOBJS) \
$(COMOBJS) \
$(GENOBJS) \
$(PORTFP) \
$(PORTGEN) \
$(PORTGEN64) \
$(PORTI18N) \
$(PORTI18N_COND) \
$(PORTPRINT) \
$(PORTPRINT_W) \
$(PORTREGEX) \
$(PORTSTDIO) \
$(PORTSTDIO64) \
$(PORTSTDIO_W) \
$(PORTSYS) \
$(PORTSYS64) \
$(AIOOBJS) \
$(RTOBJS) \
$(TPOOLOBJS) \
$(THREADSOBJS) \
$(THREADSMACHOBJS) \
$(THREADSASMOBJS) \
$(UNWINDMACHOBJS) \
$(UNWINDASMOBJS) \
$(COMSYSOBJS) \
$(SYSOBJS) \
$(COMSYSOBJS64) \
$(SYSOBJS64) \
$(VALUES)
TRACEOBJS= \
# Since libc contains no C++ code, linking with the minimal crti.o and
# crtn.o modules is safe and avoids the problems described above.
# NOTE: libc_i18n.a will be part of libc.so.1. Therefore, the compilation
CLEANFILES= \
assym.h \
genassym \
$(ALTPICS)
SRCS= \
$(THREADSOBJS:%.o=../port/threads/%.c) \
$(UNWINDMACHOBJS:%.o=../port/unwind/%.c) \
# $(DYNLIB) $(LIB_PIC) := DYNOBJS = _rtbootld.o
TIL= \
aio.o \
alloc.o \
atexit.o \
atfork.o \
cancel.o \
errno.o \
lwp.o \
ma.o \
rand.o \
rwlock.o \
scalls.o \
sema.o \
spawn.o \
stack.o \
synch.o \
thr.o \
tls.o \
tsd.o \
IL= \
# Files in fp subdirectory which need __quad.il inline template
QIL= \
_Q_add.o \
_Q_cmp.o \
_Q_div.o \
_Q_fcc.o \
_Q_mul.o \
_Q_sub.o \
# Files in crt subdirectory which need muldiv64.il inline template
#CIL= mul64.o divrem64.o
$(PORTSTDIO_W:%=pics/%) := \
$(PORTPRINT_W:%=pics/%) := \
$(PORTI18N_COND:%=pics/%) := \
lint:
#$(CIL:%=pics/%): $(LIBCBASE)/crt/muldiv64.il
$(BUILD.AR)
#crt/_rtbootld.s: crt/_rtboot.s crt/_rtld.c
# $(RM) crt/_rtld.s
# assym.h build rules
# XXX A hack. Perhaps this should be 'CPPFLAGS.native' and
# live in Makefile.master
./genassym >>$@