xref: /illumos-gate/usr/src/cmd/dis/Makefile (revision dc0093f4)
1*dc0093f4Seschrock#
2*dc0093f4Seschrock# CDDL HEADER START
3*dc0093f4Seschrock#
4*dc0093f4Seschrock# The contents of this file are subject to the terms of the
5*dc0093f4Seschrock# Common Development and Distribution License (the "License").
6*dc0093f4Seschrock# You may not use this file except in compliance with the License.
7*dc0093f4Seschrock#
8*dc0093f4Seschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*dc0093f4Seschrock# or http://www.opensolaris.org/os/licensing.
10*dc0093f4Seschrock# See the License for the specific language governing permissions
11*dc0093f4Seschrock# and limitations under the License.
12*dc0093f4Seschrock#
13*dc0093f4Seschrock# When distributing Covered Code, include this CDDL HEADER in each
14*dc0093f4Seschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*dc0093f4Seschrock# If applicable, add the following below this CDDL HEADER, with the
16*dc0093f4Seschrock# fields enclosed by brackets "[]" replaced with your own identifying
17*dc0093f4Seschrock# information: Portions Copyright [yyyy] [name of copyright owner]
18*dc0093f4Seschrock#
19*dc0093f4Seschrock# CDDL HEADER END
20*dc0093f4Seschrock#
21*dc0093f4Seschrock#
22*dc0093f4Seschrock# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*dc0093f4Seschrock# Use is subject to license terms.
24*dc0093f4Seschrock#
25*dc0093f4Seschrock# ident	"%Z%%M%	%I%	%E% SMI"
26*dc0093f4Seschrock
27*dc0093f4SeschrockPROG=	dis
28*dc0093f4SeschrockOBJS=	dis_target.o dis_main.o dis_util.o dis_list.o
29*dc0093f4SeschrockSRCS=	$(OBJS:%.o=%.c)
30*dc0093f4Seschrock
31*dc0093f4Seschrockinclude ../Makefile.cmd
32*dc0093f4Seschrock
33*dc0093f4SeschrockLDLIBS += -ldisasm -luutil -lelf
34*dc0093f4Seschrock
35*dc0093f4Seschrock.KEEP_STATE:
36*dc0093f4Seschrock
37*dc0093f4Seschrockall: $(PROG)
38*dc0093f4Seschrock
39*dc0093f4Seschrock$(PROG): $(OBJS)
40*dc0093f4Seschrock	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
41*dc0093f4Seschrock	$(POST_PROCESS)
42*dc0093f4Seschrock
43*dc0093f4Seschrockinstall: all $(ROOTCCSBINPROG)
44*dc0093f4Seschrock
45*dc0093f4Seschrockclean:
46*dc0093f4Seschrock	$(RM) $(OBJS) $(PROG)
47*dc0093f4Seschrock
48*dc0093f4Seschrocklint: lint_SRCS
49*dc0093f4Seschrock
50*dc0093f4Seschrockinclude ../Makefile.targ
51