Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
70N/A#
70N/A# CDDL HEADER START
70N/A#
70N/A# The contents of this file are subject to the terms of the
911N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
70N/A#
70N/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
919N/A#
70N/A
70N/APROG= nm
70N/AXPG4PROG= nm
70N/A
493N/AARFORMAT= PORTAR
70N/A
70N/Ainclude ../../../Makefile.cmd
493N/Ainclude ../../Makefile.com
70N/A
911N/ACOMOBJS= nm.o
911N/A
911N/AOBJS= $(COMOBJS)
911N/AXPG4OBJS= objs.xpg4/nm.o
70N/A
70N/ASRCS= $(COMOBJS:%.o=../common/%.c)
70N/A
70N/ALLDFLAGS = '-R$$ORIGIN/../../lib'
70N/AINCLIST= -I../../include -I../../include/i386 \
493N/A -I$(SRCBASE)/uts/$(ARCH)/sys
493N/ADEFLIST= -DTARGET=I386 -DI386=1 -D$(ARFORMAT) -DELF
98N/ACPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) -I$(ELFCAP)
70N/A
CERRWARN += -_gcc=-Wno-uninitialized
LDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf
LINTFLAGS += -x $(LDLIBS)
LINTSRCS= $(SRCS)
CLEANFILES += $(LINTOUTS)
objs.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