Makefile revision 02bc52be7430b2f7fafe1a2c981bff49ef11d6fa
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# CDDL HEADER START
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# The contents of this file are subject to the terms of the
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# Common Development and Distribution License (the "License").
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# You may not use this file except in compliance with the License.
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# See the License for the specific language governing permissions
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# and limitations under the License.
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# When distributing Covered Code, include this CDDL HEADER in each
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# If applicable, add the following below this CDDL HEADER, with the
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# fields enclosed by brackets "[]" replaced with your own identifying
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# information: Portions Copyright [yyyy] [name of copyright owner]
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# CDDL HEADER END
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# Use is subject to license terms.
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# ident "%Z%%M% %I% %E% SMI"
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# objects are grouped by source directory
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# local objects
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# This macro should ALWAYS be empty; native APIs are already 'large file'.
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# This macro should ALWAYS be empty; native APIs are already 'large file'.
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# objects from source under ../port
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# Preserved solely to ease maintenance of 32-bit and 64-bit library builds
b379f220491c0f1b07e7619fec53bb5efcde5fdcSean Wilcox# This macro should ALWAYS be empty; native APIs are already 'large file'.
putw.o \
rewind.o \
scanf.o \
setbuf.o \
system.o \
ungetc.o \
mse.o \
vscanf.o \
PORTI18N= \
putws.o \
wcstol.o \
wcswcs.o \
wscat.o \
wschr.o \
wscmp.o \
wscpy.o \
wscspn.o \
wsdup.o \
wslen.o \
wsncat.o \
wsncmp.o \
wsncpy.o \
wspbrk.o \
wsrchr.o \
wsspn.o \
wstod.o \
wstok.o \
wstol.o \
wstoll.o \
wsxfrm.o \
wcsstr.o \
_ctype.o \
AIOOBJS= \
aio.o \
RTOBJS= \
mqueue.o \
sched.o \
sem.o \
shm.o \
TPOOLOBJS= \
THREADSOBJS= \
alloc.o \
cancel.o \
rwlock.o \
scalls.o \
sema.o \
spawn.o \
synch.o \
thr.o \
tls.o \
UNICODEOBJS= \
PORTSYS= \
execl.o \
execle.o \
execv.o \
fcntl.o \
fsmisc.o \
fsync.o \
label.o \
lockf.o \
lwp.o \
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) \
$(XATTROBJS) \
$(COMOBJS) \
$(GENOBJS) \
$(PORTFP) \
$(PORTGEN) \
$(PORTGEN64) \
$(PORTI18N) \
$(PORTI18N_COND) \
$(PORTPRINT) \
$(PORTPRINT_W) \
$(PORTREGEX) \
$(PORTSTDIO) \
$(PORTSTDIO64) \
$(PORTSTDIO_W) \
$(PORTSYS) \
$(PORTSYS64) \
$(AIOOBJS) \
$(RTOBJS) \
$(TPOOLOBJS) \
$(THREADSOBJS) \
$(THREADSMACHOBJS) \
$(THREADSASMOBJS) \
$(UNICODEOBJS) \
$(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 >>$@