Makefile revision 28c2d953675da84517b5a57c9a8d705180d613c1
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# CDDL HEADER START
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# or http://www.opensolaris.org/os/licensing.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# See the License for the specific language governing permissions
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# CDDL HEADER END
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# ident "%Z%%M% %I% %E% SMI"
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Use is subject to license terms.
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# cmd/sgs/nm/i386/Makefile
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterPROG= nm
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterXPG4PROG= nm
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterARFORMAT= PORTAR
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude ../../../Makefile.cmd
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude ../../Makefile.com
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMOBJS= nm.o
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserOBJS= $(COMOBJS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserXPG4OBJS= objs.xpg4/nm.o
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserSRCS= $(COMOBJS:%.o=../common/%.c)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLLDFLAGS = '-R$$ORIGIN/../../lib'
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterINCLIST= -I../../include -I../../include/i386 \
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox User -I$(SRCBASE)/uts/$(ARCH)/sys
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterDEFLIST= -DTARGET=I386 -DI386=1 -D$(ARFORMAT) -DELF
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox UserLDLIBS += -L ../../sgsdemangler/i386 -ldemangle \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(CONVLIBDIR) $(CONV_LIB) -lelf
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINTFLAGS += -x $(LDLIBS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLINTSRCS= $(SRCS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCLEANFILES += $(LINTOUT)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterobjs.xpg4/%.o := CPPFLAGS += -DXPG4
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater$(DEMOBJS):= DEFLIST = -DELF_OBJ
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Building SUNWonld results in a call to the `package' target. Requirements
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# needed to run this application on older releases are established:
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# i18n support requires libintl.so.1 prior to 2.6
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterpackage := LDLIBS += /usr/lib/libintl.so.1
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterobjs.xpg4/%.o: ../common/%.c
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(COMPILE.c) -o $@ $<
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User%.o: ../common/%.c
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(COMPILE.c) $<
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User.KEEP_STATE:
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterall: $(PROG) $(XPG4)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater$(PROG): $(OBJS) ../../sgsdemangler/i386/libdemangle.a
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(LINK.c) $(OBJS) -o $@ $(LLDFLAGS) $(LDLIBS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(POST_PROCESS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater$(XPG4): $(XPG4OBJS) ../../sgsdemangler/i386/libdemangle.a
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(LINK.c) $(XPG4OBJS) -o $@ $(LDLIBS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(POST_PROCESS)
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User$(XPG4OBJS): objs.xpg4
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterobjs.xpg4:
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater -@mkdir -p $@
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntpackage \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinstall: all $(ROOTCCSBINPROG) $(ROOTXPG4PROG)
b6b8f8a0362da8c749021c4b6376cfb96047912bTinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterclean:
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(RM) $(OBJS) $(XPG4OBJS) $(CLEANFILES)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterlint: $(LINTOUT32) $(SGSLINTOUT)
1700442a7751c2bbdafe2d039cebbd8316496957Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude ../../../Makefile.targ
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinclude ../../Makefile.targ