1d29b2c44Sab# 2d29b2c44Sab# CDDL HEADER START 3d29b2c44Sab# 4d29b2c44Sab# The contents of this file are subject to the terms of the 5d29b2c44Sab# Common Development and Distribution License (the "License"). 6d29b2c44Sab# You may not use this file except in compliance with the License. 7d29b2c44Sab# 8d29b2c44Sab# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d29b2c44Sab# or http://www.opensolaris.org/os/licensing. 10d29b2c44Sab# See the License for the specific language governing permissions 11d29b2c44Sab# and limitations under the License. 12d29b2c44Sab# 13d29b2c44Sab# When distributing Covered Code, include this CDDL HEADER in each 14d29b2c44Sab# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d29b2c44Sab# If applicable, add the following below this CDDL HEADER, with the 16d29b2c44Sab# fields enclosed by brackets "[]" replaced with your own identifying 17d29b2c44Sab# information: Portions Copyright [yyyy] [name of copyright owner] 18d29b2c44Sab# 19d29b2c44Sab# CDDL HEADER END 20d29b2c44Sab# 21d29b2c44Sab 22d29b2c44Sab# 2369112eddSAli Bahrami# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 24d29b2c44Sab# Use is subject to license terms. 25d29b2c44Sab# 26cf9a187cSAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 27cf9a187cSAndy Fiddaman# 28d29b2c44Sab 29d29b2c44SabPROG= elfedit 30d29b2c44Sab 31d29b2c44Sabinclude $(SRC)/cmd/Makefile.cmd 32d29b2c44Sabinclude $(SRC)/cmd/sgs/Makefile.com 33d29b2c44Sab 34d29b2c44SabCOMOBJ = elfedit.o sys.o util.o elfconst.o 35d29b2c44Sab 36d29b2c44SabCOMOBJ32 = elfedit_machelf32.o util_machelf32.o 37d29b2c44Sab 38d29b2c44SabCOMOBJ64 = elfedit_machelf64.o util_machelf64.o 39d29b2c44Sab 40d29b2c44SabBLTOBJ = msg.o 41d29b2c44Sab 424f680cc6SAli BahramiOBJS= $(BLTOBJ) $(COMOBJ) $(COMOBJ32) $(COMOBJ64) 43d29b2c44Sab 44d29b2c44SabMAPFILE= ../common/mapfile-vers 45d29b2c44Sab 46d29b2c44SabCPPFLAGS= -I. -I../common -I../../include -I../../include/$(MACH) \ 4769b1fd3fSRichard Lowe -I$(SRC)/lib/libc/inc -I$(SRC)/uts/$(ARCH)/sys \ 4869112eddSAli Bahrami $(CPPFLAGS.master) -I$(ELFCAP) 49*e9db39ceSRichard LoweLLDFLAGS = '-R$$ORIGIN/../../lib' 50*e9db39ceSRichard LoweLLDFLAGS64 = '-R$$ORIGIN/../../../lib/$(MACH64)' 5185f4cb87SRichard LoweLDFLAGS += $(VERSREF) -Wl,-M$(MAPFILE) $(LLDFLAGS) 5269b1fd3fSRichard LoweLDLIBS += $(ELFLIBDIR) -lelf $(LDDBGLIBDIR) -llddbg \ 5369b1fd3fSRichard Lowe $(CONVLIBDIR) -lconv -ltecla 545801b0f0SToomas SoomeNATIVE_LIBS += libtecla.so 55d29b2c44Sab 56d29b2c44SabBLTDEFS = msg.h 57d29b2c44SabBLTDATA = msg.c 58d29b2c44SabBLTMESG = $(SGSMSGDIR)/elfedit 59d29b2c44Sab 60d29b2c44SabBLTFILES = $(BLTDEFS) $(BLTDATA) $(BLTMESG) 61d29b2c44Sab 62d29b2c44SabSGSMSGCOM = ../common/elfedit.msg 63d29b2c44SabSGSMSGTARG = $(SGSMSGCOM) 64d29b2c44SabSGSMSGALL = $(SGSMSGCOM) 65d29b2c44SabSGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n elfedit_msg 66d29b2c44Sab 67d29b2c44SabSRCS = $(COMOBJ:%.o=../common/%.c) \ 68d29b2c44Sab $(COMOBJ32:%32.o=../common/%.c) \ 694f680cc6SAli Bahrami $(BLTDATA) 70d29b2c44Sab 71cf9a187cSAndy FiddamanCLEANFILES += $(BLTFILES) 72