17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 55aefb655Srie# Common Development and Distribution License (the "License"). 65aefb655Srie# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 2108278a5eSRod Evans 227c478bd9Sstevel@tonic-gate# 23*cd3e9333SAli Bahrami# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateinclude ../../../../lib/Makefile.lib 277c478bd9Sstevel@tonic-gateinclude ../../Makefile.com 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateNO_ASM_WARN= -erroff=E_ASM_DISABLES_OPTIMIZATION 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gateSGSPROTO= ../../proto/$(MACH) 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateTRUSSLIB= truss.so.1 347c478bd9Sstevel@tonic-gateTRUSSSRC= truss.c 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gateSYMBINDREP= symbindrep.so.1 377c478bd9Sstevel@tonic-gateSYMBINDREPSRC= symbindrep.c 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gatePERFLIB= perfcnt.so.1 407c478bd9Sstevel@tonic-gatePERFSRC= perfcnt.c hash.c 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gateWHOLIB= who.so.1 437c478bd9Sstevel@tonic-gateWHOSRC= who.c 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gateBINDLIB= bindings.so.1 467c478bd9Sstevel@tonic-gateBINDSRC= bindings.c 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gateONSCRIPTS= perfcnt symbindrep 497c478bd9Sstevel@tonic-gateONPROGS= dumpbind 507c478bd9Sstevel@tonic-gateONLIBS= $(SYMBINDREP) $(PERFLIB) $(BINDLIB) 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gateUSRSCRIPTS= sotruss whocalls 537c478bd9Sstevel@tonic-gateCCSLIBS= $(TRUSSLIB) $(WHOLIB) 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gatePICDIR= pics 567c478bd9Sstevel@tonic-gateOBJDIR= objs 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gateTRUSSPICS= $(TRUSSSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o 597c478bd9Sstevel@tonic-gatePERFPICS= $(PERFSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o 607c478bd9Sstevel@tonic-gateWHOPICS= $(WHOSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o 617c478bd9Sstevel@tonic-gateSYMBINDREPPICS= $(SYMBINDREPSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o 627c478bd9Sstevel@tonic-gateBINDPICS= $(BINDSRC:%.c=$(PICDIR)/%.o) $(PICDIR)/env.o 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gate$(WHOPICS):= SEMANTICCHK= 657c478bd9Sstevel@tonic-gate 665aefb655SrieLDLIBS += $(CONVLIBDIR) $(CONV_LIB) 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gate$(TRUSSLIB):= PICS = $(TRUSSPICS) 697c478bd9Sstevel@tonic-gate$(PERFLIB):= PICS = $(PERFPICS) 707c478bd9Sstevel@tonic-gate$(WHOLIB):= PICS = $(WHOPICS) 717c478bd9Sstevel@tonic-gate$(SYMBINDREP):= PICS = $(SYMBINDREPPICS) 727c478bd9Sstevel@tonic-gate$(BINDLIB):= PICS = $(BINDPICS) 737c478bd9Sstevel@tonic-gate 7422337b4bSrie$(TRUSSLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc 7522337b4bSrie$(PERFLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc 7622337b4bSrie$(WHOLIB):= LDLIBS += $(ELFLIBDIR) -lelf $(ZRECORD) -lmapmalloc $(DLLIB) -lc 7722337b4bSrie$(SYMBINDREP):= LDLIBS += $(ZRECORD) -lmapmalloc -lc 7822337b4bSrie$(BINDLIB):= LDLIBS += $(ZRECORD) -lmapmalloc -lc 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate$(TRUSSLIB):= SONAME = $(TRUSSLIB) 817c478bd9Sstevel@tonic-gate$(PERFLIB):= SONAME = $(PERFLIB) 827c478bd9Sstevel@tonic-gate$(WHOLIB):= SONAME = $(WHOLIB) 837c478bd9Sstevel@tonic-gate$(SYMBINDREP):= SONAME = $(SYMBINDREP) 847c478bd9Sstevel@tonic-gate$(BINDLIB):= SONAME = $(BINDLIB) 857c478bd9Sstevel@tonic-gate 86*cd3e9333SAli Bahrami$(TRUSSLIB):= MAPFILES = ../common/mapfile-vers-truss 87*cd3e9333SAli Bahrami$(PERFLIB):= MAPFILES = ../common/mapfile-vers-perfcnt 88*cd3e9333SAli Bahrami$(WHOLIB):= MAPFILES = ../common/mapfile-vers-who 89*cd3e9333SAli Bahrami$(SYMBINDREP):= MAPFILES = ../common/mapfile-vers-symbindrep 90*cd3e9333SAli Bahrami$(BINDLIB):= MAPFILES = ../common/mapfile-vers-bindings 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate$(ROOTCCSLIB) := DIRMODE = 755 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gateCPPFLAGS += -D_REENTRANT 9508278a5eSRod EvansLDFLAGS += $(CC_USE_PROTO) 96f808c858SrafDYNFLAGS += $(VERSREF) 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gateLINTFLAGS += -uaxs $(LDLIBS) 997c478bd9Sstevel@tonic-gateLINTFLAGS64 += -uaxs $(LDLIBS) 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gateCLEANFILES += $(LINTOUT) $(OBJDIR)/* $(PICDIR)/* 1027c478bd9Sstevel@tonic-gateCLOBBERFILES += $(ONSCRIPTS) $(ONPROGS) $(ONLIBS) $(CCSLIBS) $(USRSCRIPTS) 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gateROOTONLDLIB= $(ROOT)/opt/SUNWonld/lib 1057c478bd9Sstevel@tonic-gateROOTONLDLIBS= $(ONLIBS:%=$(ROOTONLDLIB)/%) 1067c478bd9Sstevel@tonic-gateROOTONLDLIB64= $(ROOTONLDLIB)/$(MACH64) 1077c478bd9Sstevel@tonic-gateROOTONLDLIBS64= $(ONLIBS:%=$(ROOTONLDLIB64)/%) 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gateROOTONLDBIN= $(ROOT)/opt/SUNWonld/bin 1107c478bd9Sstevel@tonic-gateROOTONLDBINPROG= $(ONSCRIPTS:%=$(ROOTONLDBIN)/%) \ 1117c478bd9Sstevel@tonic-gate $(ONPROGS:%=$(ROOTONLDBIN)/%) 1127c478bd9Sstevel@tonic-gate 1137c478bd9Sstevel@tonic-gateROOTCCSLIB= $(ROOT)/usr/lib/link_audit 1147c478bd9Sstevel@tonic-gateROOTCCSLIB64= $(ROOT)/usr/lib/link_audit/$(MACH64) 1157c478bd9Sstevel@tonic-gateROOTCCSLIBS= $(CCSLIBS:%=$(ROOTCCSLIB)/%) 1167c478bd9Sstevel@tonic-gateROOTCCSLIBS64= $(CCSLIBS:%=$(ROOTCCSLIB64)/%) 1177c478bd9Sstevel@tonic-gate 1187c478bd9Sstevel@tonic-gateROOTUSRBIN= $(ROOT)/usr/bin 1197c478bd9Sstevel@tonic-gateROOTUSRBINS= $(USRSCRIPTS:%=$(ROOTUSRBIN)/%) 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gateFILEMODE= 0755 1227c478bd9Sstevel@tonic-gate 1237c478bd9Sstevel@tonic-gate.PARALLEL: $(LIBS) $(PROGS) $(SCRIPTS) $(TRUSSPICS) $(PERFPICS) \ 1247c478bd9Sstevel@tonic-gate $(WHOPICS) $(SYMBINDREPPICS) $(BINDPICS) 125