Makefile.com revision f3324781c875e2f9865c291e43f86ee710b0c145
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# CDDL HEADER START
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# The contents of this file are subject to the terms of the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Common Development and Distribution License (the "License").
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# You may not use this file except in compliance with the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# or http://www.opensolaris.org/os/licensing.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# See the License for the specific language governing permissions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# and limitations under the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# When distributing Covered Code, include this CDDL HEADER in each
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# If applicable, add the following below this CDDL HEADER, with the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# fields enclosed by brackets "[]" replaced with your own identifying
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# information: Portions Copyright [yyyy] [name of copyright owner]
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# CDDL HEADER END
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Use is subject to license terms.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# ident "%Z%%M% %I% %E% SMI"
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlLIBRARY = libld.a
9512fe850e98fdd448c638ca63fdd92a8a510255ahlVERS = .4
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMOBJS = debug.o globals.o util.o
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMOBJS32 = args32.o entry32.o exit32.o groups32.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ldentry32.o ldlibs32.o ldmain32.o libs32.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl files32.o map32.o order32.o outfile32.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl place32.o relocate32.o resolve32.o sections32.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl sunwmove32.o support32.o syms32.o update32.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl version32.o
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMOBJS64 = args64.o entry64.o exit64.o groups64.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ldentry64.o ldlibs64.o ldmain64.o libs64.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl files64.o map64.o order64.o outfile64.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl place64.o relocate64.o resolve64.o sections64.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl sunwmove64.o support64.o syms64.o update64.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl version64.o
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlTOOLOBJS = alist.o assfail.o findprime.o string_table.o \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl strhash.o
9512fe850e98fdd448c638ca63fdd92a8a510255ahlAVLOBJ = avl.o
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlG_MACHOBJS32 = doreloc32.o
9512fe850e98fdd448c638ca63fdd92a8a510255ahlG_MACHOBJS64 = doreloc64.o
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBLTOBJ = msg.o
9512fe850e98fdd448c638ca63fdd92a8a510255ahlELFCAPOBJ = elfcap.o
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlOBJECTS = $(BLTOBJ) $(G_MACHOBJS32) $(G_MACHOBJS64) \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl $(L_MACHOBJS32) $(L_MACHOBJS64) \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl $(COMOBJS) $(COMOBJS32) $(COMOBJS64) \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl $(TOOLOBJS) $(E_TOOLOBJS) $(AVLOBJ) $(ELFCAPOBJ)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlinclude $(SRC)/lib/Makefile.lib
9512fe850e98fdd448c638ca63fdd92a8a510255ahlinclude $(SRC)/cmd/sgs/Makefile.com
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlSRCDIR = ../common
9512fe850e98fdd448c638ca63fdd92a8a510255ahlELFCAP= $(SRC)/common/elfcap
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Building SUNWonld results in a call to the `package' target. Requirements
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# needed to run this application on older releases are established:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# dlopen/dlclose requires libdl.so.1 prior to 5.10
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#
9512fe850e98fdd448c638ca63fdd92a8a510255ahlDLLIB = $(VAR_DL_LIB)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlpackage := DLLIB = $(VAR_PKG_DL_LIB)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCPPFLAGS += -DUSE_LIBLD_MALLOC -I$(SRCBASE)/lib/libc/inc \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl -I$(SRCBASE)/uts/common/krtld -I$(ELFCAP) \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl $(VAR_LIBLD_CPPFLAGS) -DDO_RELOC_LIBLD
9512fe850e98fdd448c638ca63fdd92a8a510255ahlLDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(LDDBGLIBDIR) $(LDDBG_LIB) \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl $(ELFLIBDIR) -lelf $(DLLIB) -lc
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlLINTFLAGS += -u -D_REENTRANT
9512fe850e98fdd448c638ca63fdd92a8a510255ahlLINTFLAGS64 += -u -D_REENTRANT
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlDYNFLAGS += $(BDIRECT) $(VERSREF) \
9512fe850e98fdd448c638ca63fdd92a8a510255ahl $(ZLAZYLOAD) $(USE_PROTO) '-R$$ORIGIN'
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahl$(VAR_POUND_3)DEFS=
9512fe850e98fdd448c638ca63fdd92a8a510255ahlnative:= DYNFLAGS += $(CONVLIBDIR)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBLTDEFS = msg.h
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBLTDATA = msg.c
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBLTMESG = $(SGSMSGDIR)/libld
9512fe850e98fdd448c638ca63fdd92a8a510255ahl
9512fe850e98fdd448c638ca63fdd92a8a510255ahlBLTFILES = $(BLTDEFS) $(BLTDATA) $(BLTMESG)
SGSMSGCOM = ../common/libld.msg
SGSMSGSPARC = ../common/libld.sparc.msg
SGSMSGINTEL = ../common/libld.intel.msg
SGSMSGTARG = $(SGSMSGCOM)
SGSMSGALL = $(SGSMSGCOM) $(SGSMSGSPARC) $(SGSMSGINTEL)
SGSMSGFLAGS1 = $(SGSMSGFLAGS) -m $(BLTMESG)
SGSMSGFLAGS2 = $(SGSMSGFLAGS) -h $(BLTDEFS) -d $(BLTDATA) -n libld_msg
CHKSRCS = $(SRCBASE)/uts/common/krtld/reloc.h \
$(COMOBJS32:%32.o=../common/%.c) \
$(L_MACHOBJS32:%32.o=../common/%.c) \
$(L_MACHOBJS64:%64.o=../common/%.c)
SRCS = ../common/llib-lld
LIBSRCS = $(TOOLOBJS:%.o=$(SGSTOOLS)/common/%.c) \
$(E_TOOLOBJS:%.o=$(SGSTOOLS)/common/%.c) \
$(COMOBJS:%.o=../common/%.c) \
$(AVLOBJS:%.o=$(VAR_AVLDIR)/%.c) \
$(BLTDATA)
LINTSRCS = $(LIBSRCS) ../common/lintsup.c
LINTSRCS32 = $(COMOBJS32:%32.o=../common/%.c) \
$(L_MACHOBJS32:%32.o=../common/%.c)
LINTSRCS64 = $(COMOBJS64:%64.o=../common/%.c) \
$(L_MACHOBJS64:%64.o=../common/%.c)
CLEANFILES += $(LINTOUTS) $(BLTFILES)
CLOBBERFILES += $(DYNLIB) $(LINTLIBS) $(LIBLINKS)
ROOTFS_DYNLIB = $(DYNLIB:%=$(ROOTFS_LIBDIR)/%)