Makefile.com revision 5088:26c540f30cd3
1231990Smp# 259243Sobrien# CDDL HEADER START 359243Sobrien# 459243Sobrien# The contents of this file are subject to the terms of the 559243Sobrien# Common Development and Distribution License (the "License"). 659243Sobrien# You may not use this file except in compliance with the License. 759243Sobrien# 859243Sobrien# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 959243Sobrien# or http://www.opensolaris.org/os/licensing. 1059243Sobrien# See the License for the specific language governing permissions 1159243Sobrien# and limitations under the License. 1259243Sobrien# 1359243Sobrien# When distributing Covered Code, include this CDDL HEADER in each 1459243Sobrien# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1559243Sobrien# If applicable, add the following below this CDDL HEADER, with the 1659243Sobrien# fields enclosed by brackets "[]" replaced with your own identifying 1759243Sobrien# information: Portions Copyright [yyyy] [name of copyright owner] 1859243Sobrien# 1959243Sobrien# CDDL HEADER END 2059243Sobrien# 2159243Sobrien# 22167465Smp# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23167465Smp# Use is subject to license terms. 24167465Smp# 2559243Sobrien# ident "%Z%%M% %I% %E% SMI" 26167465Smp# 27167465Smp 2859243Sobrieninclude ../../../../../lib/Makefile.lib 2959243Sobrieninclude ../../../Makefile.com 3059243Sobrien 3159243SobrienCAP_LIB= cap.so 3259243SobrienCAP_OBJ= cap_msg.o cap32.o cap64.o 3359243Sobrien 3459243SobrienDYN_LIB= dyn.so 3559243SobrienDYN_OBJ= dyn_msg.o dyn32.o dyn64.o 3659243Sobrien 37167465SmpEHDR_LIB= ehdr.so 3859243SobrienEHDR_OBJ= ehdr_msg.o ehdr32.o ehdr64.o 3959243Sobrien 4059243SobrienPHDR_LIB= phdr.so 4159243SobrienPHDR_OBJ= phdr_msg.o phdr32.o phdr64.o 4259243Sobrien 4359243SobrienSHDR_LIB= shdr.so 4459243SobrienSHDR_OBJ= shdr_msg.o shdr32.o shdr64.o 4559243Sobrien 4659243SobrienSYM_LIB= sym.so 4759243SobrienSYM_OBJ= sym_msg.o sym32.o sym64.o 4859243Sobrien 4959243SobrienSYMINFO_LIB= syminfo.so 5059243SobrienSYMINFO_OBJ= syminfo_msg.o syminfo32.o syminfo64.o 51167465Smp 5259243SobrienELFEDITLIBS= $(CAP_LIB) $(DYN_LIB) $(EHDR_LIB) $(PHDR_LIB) \ 5359243Sobrien $(SHDR_LIB) $(SYM_LIB) $(SYMINFO_LIB) 5459243Sobrien 5559243SobrienPICDIR= pics 5659243Sobrien 5759243SobrienCAP_PICS= $(CAP_OBJ:%.o=$(PICDIR)/%.o) 58167465SmpDYN_PICS= $(DYN_OBJ:%.o=$(PICDIR)/%.o) 5959243SobrienEHDR_PICS= $(EHDR_OBJ:%.o=$(PICDIR)/%.o) 60167465SmpPHDR_PICS= $(PHDR_OBJ:%.o=$(PICDIR)/%.o) 6159243SobrienSHDR_PICS= $(SHDR_OBJ:%.o=$(PICDIR)/%.o) 6259243SobrienSYM_PICS= $(SYM_OBJ:%.o=$(PICDIR)/%.o) 6359243SobrienSYMINFO_PICS= $(SYMINFO_OBJ:%.o=$(PICDIR)/%.o) 6459243Sobrien 65167465SmpLDLIBS += $(ELFLIBDIR) -lelf $(LDDBGLIBDIR) $(LDDBG_LIB) \ 6659243Sobrien $(CONVLIBDIR) $(CONV_LIB) -lc 6759243Sobrien 6859243Sobrien$(CAP_LIB):= PICS = $(CAP_PICS) 6959243Sobrien$(DYN_LIB):= PICS = $(DYN_PICS) 7059243Sobrien$(EHDR_LIB):= PICS = $(EHDR_PICS) 7159243Sobrien$(PHDR_LIB):= PICS = $(PHDR_PICS) 7259243Sobrien$(SHDR_LIB):= PICS = $(SHDR_PICS) 7359243Sobrien$(SYM_LIB):= PICS = $(SYM_PICS) 7459243Sobrien$(SYMINFO_LIB):= PICS = $(SYMINFO_PICS) 7559243Sobrien 7659243Sobrien$(CAP_LIB):= SONAME = $(CAP_LIB) 7759243Sobrien$(DYN_LIB):= SONAME = $(DYN_LIB) 7859243Sobrien$(EHDR_LIB):= SONAME = $(EHDR_LIB) 7959243Sobrien$(PHDR_LIB):= SONAME = $(PHDR_LIB) 8059243Sobrien$(SHDR_LIB):= SONAME = $(SHDR_LIB) 8159243Sobrien$(SYM_LIB):= SONAME = $(SYM_LIB) 8259243Sobrien$(SYMINFO_LIB):= SONAME = $(SYMINFO_LIB) 83167465Smp 8459243Sobrien# All the modules use a shared mapfile 8559243SobrienMAPFILES = ../common/mapfile-vers 8659243Sobrien 8759243SobrienCPPFLAGS += -I../../../include -I../../../include/$(MACH) \ 88167465Smp -I../$(SRCBASE)/lib/libc/inc -D_REENTRANT 8959243SobrienLLDFLAGS = '-R$$ORIGIN/../../../lib' 90231990SmpLLDFLAGS64 = '-R$$ORIGIN/../../../../lib/$(MACH64)' 9159243SobrienLDFLAGS += $(USE_PROTO) $(LLDFLAGS) 92145479SmpDYNFLAGS += $(VERSREF) 93145479Smp 94145479SmpLINTFLAGS += -uaxs $(LDLIBS) 95145479SmpLINTFLAGS64 += -uaxs $(LDLIBS64) 96131962Smp 97131962SmpBLTDEFS = $(ELFEDITLIBS:%.so=%_msg.h) 9859243SobrienBLTDATA = $(ELFEDITLIBS:%.so=%_msg.c) 9959243SobrienBLTFILES = $(BLTDEFS) $(BLTDATA) 10059243Sobrien 10159243SobrienCLEANFILES += $(BLTFILES) $(LINTOUT) $(PICDIR)/* 10259243SobrienCLOBBERFILES += $(ELFEDITLIBS) 10359243Sobrien 10459243SobrienROOTELFEDITDIR= $(ROOT)/usr/lib/elfedit 10559243SobrienROOTELFEDITDIR64= $(ROOT)/usr/lib/elfedit/$(MACH64) 10659243SobrienROOTELFEDITLIBS= $(ROOTELFEDITDIR)/$(MTARG)$(CAP_LIB) \ 107145479Smp $(ROOTELFEDITDIR)/$(MTARG)$(DYN_LIB) \ 10859243Sobrien $(ROOTELFEDITDIR)/$(MTARG)$(EHDR_LIB) \ 10959243Sobrien $(ROOTELFEDITDIR)/$(MTARG)$(PHDR_LIB) \ 11059243Sobrien $(ROOTELFEDITDIR)/$(MTARG)$(SHDR_LIB) \ 11159243Sobrien $(ROOTELFEDITDIR)/$(MTARG)$(SYM_LIB) \ 11259243Sobrien $(ROOTELFEDITDIR)/$(MTARG)$(SYMINFO_LIB) 11359243Sobrien 11459243Sobrien 11559243SobrienFILEMODE= 0755 11659243Sobrien 11759243Sobrien.PARALLEL: $(ELFEDITLIBS) 11859243Sobrien