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