Makefile revision b9bd317cda1afb3a01f4812de73e8cec888cbbd7
1058N/A#
2362N/A# CDDL HEADER START
1058N/A#
1058N/A# The contents of this file are subject to the terms of the
1058N/A# Common Development and Distribution License (the "License").
1058N/A# You may not use this file except in compliance with the License.
1058N/A#
1058N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1058N/A# or http://www.opensolaris.org/os/licensing.
1058N/A# See the License for the specific language governing permissions
1058N/A# and limitations under the License.
1058N/A#
1058N/A# When distributing Covered Code, include this CDDL HEADER in each
1058N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1058N/A# If applicable, add the following below this CDDL HEADER, with the
1058N/A# fields enclosed by brackets "[]" replaced with your own identifying
1058N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1058N/A#
2362N/A# CDDL HEADER END
2362N/A#
2362N/A#
1058N/A# ident "%Z%%M% %I% %E% SMI"
1058N/A#
1058N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1058N/A# Use is subject to license terms.
1058N/A#
1058N/A# cmd/sgs/nm/sparc/Makefile
1058N/A#
1058N/A
1058N/APROG= nm
1058N/AXPG4PROG= nm
1058N/A
1058N/AARFORMAT= PORTAR
1058N/A
1058N/Ainclude ../../../Makefile.cmd
1058N/Ainclude ../../Makefile.com
1058N/A
1058N/ACOMOBJS= nm.o
1058N/A
1058N/AOBJS= $(COMOBJS)
1058N/AXPG4OBJS= objs.xpg4/nm.o
1058N/A
1058N/ASRCS= $(COMOBJS:%.o=../common/%.c)
1058N/A
1058N/ALLDFLAGS= '-R$$ORIGIN/../../lib'
1058N/AINCLIST= -I../../include -I../../include/sparc \
1058N/A -I$(SRCBASE)/uts/$(ARCH)/sys
1058N/ADEFLIST= -DTARGET=SPARC -DSPARC=1 -D$(ARFORMAT) -DELF
1058N/ACPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
1058N/ALDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf
1058N/ALINTFLAGS= -x $(LDLIBS)
1058N/ALINTSRCS= $(SRCS)
1058N/ACLEANFILES += $(LINTOUTS)
1058N/Aobjs.xpg4/%.o := CPPFLAGS += -DXPG4
1058N/A
1058N/A
1058N/A# Building SUNWonld results in a call to the `package' target. Requirements
1058N/A# needed to run this application on older releases are established:
1058N/A# i18n support requires libintl.so.1 prior to 2.6
1058N/A
1058N/Apackage := LDLIBS += /usr/lib/libintl.so.1
1058N/A
1058N/A
1058N/Aobjs.xpg4/%.o: ../common/%.c
1058N/A $(COMPILE.c) -o $@ $<
1058N/A
1058N/A%.o: ../common/%.c
1058N/A $(COMPILE.c) $<
1058N/A
1058N/A.KEEP_STATE:
1058N/A
1058N/Aall: $(PROG) $(XPG4)
1058N/A
1058N/A$(PROG): $(OBJS)
1058N/A $(LINK.c) $(OBJS) -o $@ $(LLDFLAGS) $(LDLIBS)
1058N/A $(POST_PROCESS)
1058N/A
1058N/A$(XPG4): $(XPG4OBJS)
1058N/A $(LINK.c) $(XPG4OBJS) -o $@ $(LDLIBS)
1058N/A $(POST_PROCESS)
1058N/A
1058N/A$(XPG4OBJS): objs.xpg4
1058N/A
1058N/Aobjs.xpg4:
1058N/A -@mkdir -p $@
1058N/A
1058N/Apackage \
1058N/Ainstall: all $(VAR_SGSBINPROG) $(ROOTXPG4PROG) $(VAR_SGSCCSLINK)
1058N/A
1058N/Aclean:
1058N/A $(RM) $(OBJS) $(XPG4OBJS) $(CLEANFILES)
1058N/A
1058N/Alint: $(LINTOUT32) $(SGSLINTOUT)
1058N/A
1058N/Ainclude ../../../Makefile.targ
1058N/Ainclude ../../Makefile.targ
1058N/A