xref: /titanic_44/usr/src/cmd/trapstat/sun4/Makefile (revision 1e49577a7fcde812700ded04431b49d67cc57d6d)
1*1e49577aSRod Evans#
2*1e49577aSRod Evans# CDDL HEADER START
3*1e49577aSRod Evans#
4*1e49577aSRod Evans# The contents of this file are subject to the terms of the
5*1e49577aSRod Evans# Common Development and Distribution License (the "License").
6*1e49577aSRod Evans# You may not use this file except in compliance with the License.
7*1e49577aSRod Evans#
8*1e49577aSRod Evans# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*1e49577aSRod Evans# or http://www.opensolaris.org/os/licensing.
10*1e49577aSRod Evans# See the License for the specific language governing permissions
11*1e49577aSRod Evans# and limitations under the License.
12*1e49577aSRod Evans#
13*1e49577aSRod Evans# When distributing Covered Code, include this CDDL HEADER in each
14*1e49577aSRod Evans# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*1e49577aSRod Evans# If applicable, add the following below this CDDL HEADER, with the
16*1e49577aSRod Evans# fields enclosed by brackets "[]" replaced with your own identifying
17*1e49577aSRod Evans# information: Portions Copyright [yyyy] [name of copyright owner]
18*1e49577aSRod Evans#
19*1e49577aSRod Evans# CDDL HEADER END
20*1e49577aSRod Evans#
21*1e49577aSRod Evans
22*1e49577aSRod Evans#
23*1e49577aSRod Evans# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24*1e49577aSRod Evans#
25*1e49577aSRod Evans
26*1e49577aSRod Evansinclude		$(SRC)/cmd/Makefile.cmd
27*1e49577aSRod Evans
28*1e49577aSRod EvansPROG =		trapstat
29*1e49577aSRod EvansOBJS =		trapstat.o
30*1e49577aSRod Evans
31*1e49577aSRod Evans# Symbol capabilities objects are added for sun4u and sun4v.
32*1e49577aSRod EvansEXTOBJS =	../capabilities/sun4u/symcap.o \
33*1e49577aSRod Evans		../capabilities/sun4v/symcap.o
34*1e49577aSRod Evans
35*1e49577aSRod EvansCPPFLAGS +=	-I$(SRC)/uts/sun4 -I.
36*1e49577aSRod EvansLINTFLAGS +=	-erroff=E_SEC_PRINTF_VAR_FMT
37*1e49577aSRod Evans
38*1e49577aSRod Evans.KEEP_STATE:
39*1e49577aSRod Evans
40*1e49577aSRod Evansall:		$(PROG)
41*1e49577aSRod Evans
42*1e49577aSRod Evansinstall:	$(ROOTUSRSBINPROG)
43*1e49577aSRod Evans
44*1e49577aSRod Evans$(PROG):	$(OBJS) $(EXTOBJS)
45*1e49577aSRod Evans		$(LINK.c) -o $(PROG) $(OBJS) $(EXTOBJS) $(LDLIBS)
46*1e49577aSRod Evans	        $(POST_PROCESS)
47*1e49577aSRod Evans
48*1e49577aSRod Evansclean:
49*1e49577aSRod Evans		$(RM) $(OBJS) $(EXTOBJS)
50*1e49577aSRod Evans
51*1e49577aSRod Evanslint:		lint_PROG
52*1e49577aSRod Evans
53*1e49577aSRod Evansinclude		$(SRC)/cmd/Makefile.targ
54