304N/A#
304N/A# CDDL HEADER START
1276N/A#
304N/A# The contents of this file are subject to the terms of the
1356N/A# Common Development and Distribution License (the "License").
304N/A# You may not use this file except in compliance with the License.
304N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/A# cmd/sgs/nm/i386/Makefile
304N/A#
304N/A
304N/APROG= nm
304N/AXPG4PROG= nm
493N/A
304N/AARFORMAT= PORTAR
970N/A
970N/Ainclude ../../../Makefile.cmd
970N/Ainclude ../../Makefile.com
1356N/A
970N/ACOMOBJS= nm.o
304N/A
1408N/AOBJS= $(COMOBJS)
304N/AXPG4OBJS= objs.xpg4/nm.o
911N/A
1408N/ASRCS= $(COMOBJS:%.o=../common/%.c)
1408N/A
1408N/ALLDFLAGS = '-R$$ORIGIN/../../lib'
911N/AINCLIST= -I../../include -I../../include/i386 \
304N/A -I$(SRCBASE)/uts/$(ARCH)/sys
304N/ADEFLIST= -DTARGET=I386 -DI386=1 -D$(ARFORMAT) -DELF
304N/ACPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) -I$(ELFCAP)
304N/A
1276N/ACERRWARN += -_gcc=-Wno-uninitialized
493N/A
304N/ALDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf
970N/ALINTFLAGS += -x $(LDLIBS)
970N/ALINTSRCS= $(SRCS)
970N/ACLEANFILES += $(LINTOUTS)
304N/Aobjs.xpg4/%.o := CPPFLAGS += -DXPG4
$(DEMOBJS):= DEFLIST = -DELF_OBJ
objs.xpg4/%.o: ../common/%.c
$(COMPILE.c) -o $@ $<
%.o: ../common/%.c
$(COMPILE.c) $<
.KEEP_STATE:
all: $(PROG) $(XPG4)
$(PROG): $(OBJS)
$(LINK.c) $(OBJS) -o $@ $(LLDFLAGS) $(LDLIBS)
$(POST_PROCESS)
$(XPG4): $(XPG4OBJS)
$(LINK.c) $(XPG4OBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
$(XPG4OBJS): objs.xpg4
objs.xpg4:
-@mkdir -p $@
package \
install: all $(VAR_SGSBINPROG) $(ROOTXPG4PROG) $(VAR_SGSCCSLINK)
clean:
$(RM) $(OBJS) $(XPG4OBJS) $(CLEANFILES)
lint: $(LINTOUT32) $(SGSLINTOUT)
include ../../../Makefile.targ
include ../../Makefile.targ