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 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 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# 23# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28 29LIBRARY= rtld.a 30VERS= .1 31 32COMOBJS= rtld.o 33BLTOBJ= msg.o 34 35OBJECTS= $(BLTOBJ) $(COMOBJS) 36 37# include library definitions 38include $(SRC)/lib/Makefile.lib 39include $(SRC)/cmd/sgs/Makefile.com 40 41SGSMSGALL= rtld.msg 42 43MAPFILE= ../common/mapfile 44SRCS= $(OBJECTS:%.o=../common/%.c) 45 46BLTDEFS= msg.h 47BLTDATA= msg.c 48BLTFILES= $(BLTDEFS) $(BLTDATA) 49 50SGSMSGTARG= ../common/rtld.msg 51SGSMSGALL= ../common/rtld.msg 52SGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA) 53 54LINTFLAGS += -u -erroff=E_NAME_DECL_NOT_USED_DEF2 55LINTFLAGS64 += -u -erroff=E_NAME_DECL_NOT_USED_DEF2 56 57LINTSRCS= $(COMOBJS:%.o=../common/%.c) $(BLTDATA) 58 59GROUP= sys 60FILEMODE= 555 61 62DYNLIB= ld.so 63 64LIBS = $(DYNLIB) $(LINTLIB) 65$(VAR_POUND_2)LIBS += $(LIBRARY) 66 67# definitions for lint 68 69CPPFLAGS += -I. -I../common -I../../common -I../../../include \ 70 -I../../../include/$(MACH) \ 71 -I$(SRC)/lib/libc/inc \ 72 -I$(SRC)/uts/common/krtld \ 73 -I$(SRC)/common/sgsrtcid \ 74 -I$(SRC)/uts/$(ARCH)/sys 75 76DYNFLAGS += $(VERSREF) -M $(MAPFILE) 77LDLIBS += $(CONVLIBDIR) $(CONV_LIB) -lc 78 79ROOTMDBLIB= $(ROOT)/usr/lib/mdb/proc 80ROOTMDBLIB64= $(ROOTMDBLIB)/$(MACH64) 81ROOTMDBLIBS= $(ROOTMDBLIB)/$(MTARG)$(DYNLIB) 82 83CLEANFILES += $(LINTOUTS) $(BLTFILES) 84