xref: /titanic_44/usr/src/cmd/prtdiag/sparc/Makefile.targ (revision ae115bc77f6fcde83175c75b4206dc2e50747966)
1*ae115bc7Smrj#
2*ae115bc7Smrj# CDDL HEADER START
3*ae115bc7Smrj#
4*ae115bc7Smrj# The contents of this file are subject to the terms of the
5*ae115bc7Smrj# Common Development and Distribution License (the "License").
6*ae115bc7Smrj# You may not use this file except in compliance with the License.
7*ae115bc7Smrj#
8*ae115bc7Smrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*ae115bc7Smrj# or http://www.opensolaris.org/os/licensing.
10*ae115bc7Smrj# See the License for the specific language governing permissions
11*ae115bc7Smrj# and limitations under the License.
12*ae115bc7Smrj#
13*ae115bc7Smrj# When distributing Covered Code, include this CDDL HEADER in each
14*ae115bc7Smrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*ae115bc7Smrj# If applicable, add the following below this CDDL HEADER, with the
16*ae115bc7Smrj# fields enclosed by brackets "[]" replaced with your own identifying
17*ae115bc7Smrj# information: Portions Copyright [yyyy] [name of copyright owner]
18*ae115bc7Smrj#
19*ae115bc7Smrj# CDDL HEADER END
20*ae115bc7Smrj#
21*ae115bc7Smrj
22*ae115bc7Smrj#
23*ae115bc7Smrj# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*ae115bc7Smrj# Use is subject to license terms.
25*ae115bc7Smrj#
26*ae115bc7Smrj#ident	"%Z%%M%	%I%	%E% SMI"
27*ae115bc7Smrj
28*ae115bc7Smrjinstall: all $(USR_PSM_SBIN_PROG) $(USR_PSM_SBIN_PROG_LINKS)
29*ae115bc7Smrj	$(RM) $(ROOTUSRSBINPROG)
30*ae115bc7Smrj	$(LN) $(PLATEXEC) $(ROOTUSRSBINPROG)
31*ae115bc7Smrj
32*ae115bc7Smrj$(PROG): $(OBJS)
33*ae115bc7Smrj	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
34*ae115bc7Smrj	$(POST_PROCESS)
35*ae115bc7Smrj
36*ae115bc7Smrjclean:
37*ae115bc7Smrj	-$(RM) $(OBJS) $(LINT_OBJS) $(PROG)
38*ae115bc7Smrj
39*ae115bc7Smrjlint: $(LINT_OBJS)
40*ae115bc7Smrj	$(LINT) $(LINT_OBJS) $(LDLIBS)
41*ae115bc7Smrj
42*ae115bc7Smrj$(POFILE):	$(POFILES)
43*ae115bc7Smrj	$(RM)	$@
44*ae115bc7Smrj	cat	$(POFILES) >	$@
45*ae115bc7Smrj
46*ae115bc7Smrj$(LIBPRTDIAG):
47*ae115bc7Smrj	cd $(LIBPRTDIAG); pwd; $(MAKE) install
48*ae115bc7Smrj
49*ae115bc7Smrjinclude $(SRCDIR)/../Makefile.targ
50*ae115bc7Smrjinclude $(SRCDIR)/../../Makefile.psm.targ
51