Makefile revision 67e3a03ed4a2813074d36330f062ed6e593a4937
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# CDDL HEADER START
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# The contents of this file are subject to the terms of the
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Common Development and Distribution License (the "License").
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# You may not use this file except in compliance with the License.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# or http://www.opensolaris.org/os/licensing.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# See the License for the specific language governing permissions
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# and limitations under the License.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# CDDL HEADER END
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Use is subject to license terms.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# ident "%Z%%M% %I% %E% SMI"
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonPROG= sbcp
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninclude ../Makefile.ucbcmd
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCLEANFILES= sysent.s
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonPOFILE=
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonOBJS= sbcp.o sbcp_util.o
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonFILEMODE= 755
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington.KEEP_STATE:
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Preserve the relationship of libraries as they are defined in libc.so.1.9
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLIBBC= ../../lib/libbc/sparc/libc.so.1.9
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLIBUCB= ../../ucblib/libucb/sparc/libucb.so.1
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# need libc/sparc/inc for PIC.h
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonASFLAGS= -P -D_ASM -DPIC -K pic
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLDFLAGS= -R /usr/4lib:/usr/ucblib -e _start -G -t \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(BLOCAL) $(ZNOVERSION) $(ZDEFS) $(ZTEXT) \
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington -I/usr/lib/ld.so.1
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLIBS= $(LDLIBS.lib) -lmapmalloc $(LIBBC) $(LIBUCB) -lnsl -lc
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonall: $(PROG)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninstall: all $(ROOT4LIBPROG)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonclean:
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(RM) $(OBJS) $(CLEANFILES)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington$(PROG): $(OBJS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(LDOPTS) $(LD) $(LDFLAGS) -o sbcp $(OBJS) $(LIBS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington $(POST_PROCESS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington$(OBJS): sysent.s
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonsysent.s: syscalls.list mksysent
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington -$(RM) sysent.s
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington sh ./mksysent > sysent.s
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninclude ../Makefile.ucbtarg
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington