Makefile revision 2352:9cdfed81bb1c
1254721Semaste# 2254721Semaste# CDDL HEADER START 3254721Semaste# 4254721Semaste# The contents of this file are subject to the terms of the 5254721Semaste# Common Development and Distribution License (the "License"). 6254721Semaste# You may not use this file except in compliance with the License. 7254721Semaste# 8254721Semaste# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9254721Semaste# or http://www.opensolaris.org/os/licensing. 10254721Semaste# See the License for the specific language governing permissions 11254721Semaste# and limitations under the License. 12254721Semaste# 13254721Semaste# When distributing Covered Code, include this CDDL HEADER in each 14254721Semaste# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15254721Semaste# If applicable, add the following below this CDDL HEADER, with the 16254721Semaste# fields enclosed by brackets "[]" replaced with your own identifying 17254721Semaste# information: Portions Copyright [yyyy] [name of copyright owner] 18254721Semaste# 19254721Semaste# CDDL HEADER END 20254721Semaste# 21254721Semaste# 22254721Semaste# ident "%Z%%M% %I% %E% SMI" 23254721Semaste# 24254721Semaste# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 25254721Semaste# Use is subject to license terms. 26254721Semaste# 27254721Semaste# cmd/sgs/nm/sparc/Makefile 28254721Semaste# 29254721Semaste 30254721SemastePROG= nm 31254721SemasteXPG4PROG= nm 32254721Semaste 33254721SemasteARFORMAT= PORTAR 34254721Semaste 35254721Semasteinclude ../../../Makefile.cmd 36254721Semasteinclude ../../Makefile.com 37254721Semaste 38254721SemasteCOMOBJS= nm.o 39254721Semaste 40254721SemasteOBJS= $(COMOBJS) 41254721SemasteXPG4OBJS= objs.xpg4/nm.o 42254721Semaste 43254721SemasteSRCS= $(COMOBJS:%.o=../common/%.c) 44254721Semaste 45254721SemasteLLDFLAGS= '-R$$ORIGIN/../../lib' 46254721SemasteINCLIST= -I../../include -I../../include/sparc \ 47254721Semaste -I$(SRCBASE)/uts/$(ARCH)/sys 48254721SemasteDEFLIST= -DTARGET=SPARC -DSPARC=1 -D$(ARFORMAT) -DELF 49254721SemasteCPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) 50254721SemasteLDLIBS += -L ../../sgsdemangler/sparc -ldemangle \ 51254721Semaste $(CONVLIBDIR) $(CONV_LIB) -lelf 52254721SemasteLINTFLAGS= -x $(LDLIBS) 53254721SemasteLINTSRCS= $(SRCS) 54254721SemasteCLEANFILES += $(LINTOUT) 55254721Semasteobjs.xpg4/%.o := CPPFLAGS += -DXPG4 56254721Semaste 57254721Semaste 58254721Semaste# Building SUNWonld results in a call to the `package' target. Requirements 59254721Semaste# needed to run this application on older releases are established: 60254721Semaste# i18n support requires libintl.so.1 prior to 2.6 61254721Semaste 62254721Semastepackage := LDLIBS += /usr/lib/libintl.so.1 63254721Semaste 64254721Semaste 65254721Semasteobjs.xpg4/%.o: ../common/%.c 66254721Semaste $(COMPILE.c) -o $@ $< 67254721Semaste 68254721Semaste%.o: ../common/%.c 69254721Semaste $(COMPILE.c) $< 70254721Semaste 71254721Semaste.KEEP_STATE: 72254721Semaste 73254721Semasteall: $(PROG) $(XPG4) 74254721Semaste 75254721Semaste$(PROG): $(OBJS) ../../sgsdemangler/sparc/libdemangle.a 76254721Semaste $(LINK.c) $(OBJS) -o $@ $(LLDFLAGS) $(LDLIBS) 77254721Semaste $(POST_PROCESS) 78254721Semaste 79254721Semaste$(XPG4): $(XPG4OBJS) 80254721Semaste $(LINK.c) $(XPG4OBJS) -o $@ $(LDLIBS) 81254721Semaste $(POST_PROCESS) 82254721Semaste 83254721Semaste$(XPG4OBJS): objs.xpg4 84254721Semaste 85254721Semasteobjs.xpg4: 86254721Semaste -@mkdir -p $@ 87254721Semaste 88254721Semastepackage \ 89254721Semasteinstall: all $(ROOTCCSBINPROG) $(ROOTXPG4PROG) 90254721Semaste 91254721Semasteclean: 92254721Semaste $(RM) $(OBJS) $(XPG4OBJS) $(CLEANFILES) 93254721Semaste 94254721Semastelint: $(LINTOUT32) $(SGSLINTOUT) 95254721Semaste 96254721Semasteinclude ../../Makefile.targ 97254721Semaste